|
@@ -94,6 +94,32 @@
|
|
|
}
|
|
|
});
|
|
|
mui.ready(function() {
|
|
|
+ /* 查询价格,一年内的购买次数 */
|
|
|
+ $.ajax(base_path + '/wechat/receive/select_charg_price?dates=' + new Date().getTime(), {
|
|
|
+ data: {},
|
|
|
+ dataType: 'json',
|
|
|
+ xhrFields: {
|
|
|
+ withCredentials: true
|
|
|
+ },
|
|
|
+ crossDomain: true,
|
|
|
+ type: 'post',
|
|
|
+ timeout: 15000,
|
|
|
+ success: function(dt) {
|
|
|
+ if(dt.isRedirect) {
|
|
|
+ location.href = dt.redirectURL;
|
|
|
+ } else {
|
|
|
+ console.log(dt)
|
|
|
+
|
|
|
+ }
|
|
|
+ },
|
|
|
+ error: function(xhr, type, errorThrown) {
|
|
|
+ console.log(xhr);
|
|
|
+ }
|
|
|
+ });
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
$.ajax(base_path + '/wechat/receive/select_color?dates=' + new Date().getTime(), {
|
|
|
data: {},
|
|
|
dataType: 'json',
|
|
@@ -181,7 +207,7 @@
|
|
|
}
|
|
|
if(isPay) {
|
|
|
isPay = false; // 锁定请求按钮
|
|
|
- $.ajax(base_path + '/wechat/cart/addProductToCart?dates=' + new Date().getTime(), {
|
|
|
+ $.ajax(base_path + '/wechat/receive/charger_receive?dates=' + new Date().getTime(), {
|
|
|
data: {
|
|
|
colorId:$("#my-pull>.active").attr("name"),
|
|
|
colorName:$("#my-pull>.active").text(),
|