@@ -172,6 +172,7 @@ var yhq_id=''; mui.ready(function() {
$("#pro-count").text(dt.data.cartItems.length);
} else {
mui.alert(dt.message);
+ location.href = "shopping-cart.html?dates=" + new Date().getTime(); // 前往购物车
}
},
@@ -66,9 +66,9 @@
<script type="text/javascript" src="//res.wx.qq.com/open/js/jweixin-1.1.0.js"></script>
<script>
//屏蔽分享
- document.addEventListener('WeixinJSBridgeReady', function onBridgeReady() {
- WeixinJSBridge.call('hideOptionMenu');
- });
+// document.addEventListener('WeixinJSBridgeReady', function onBridgeReady() {
+// WeixinJSBridge.call('hideOptionMenu');
+// });
</script>
</head>
<body>
@@ -132,6 +132,7 @@
crossDomain: true,
timeout:15000,
success:function(dt){
+ console.log(dt);
if(dt.isRedirect) {
location.href = dt.redirectURL;
@@ -149,9 +149,9 @@
mui(this.salesUserGiftList).each(function(index) {
var txt_gift = this;
if (index == 0) {
- a += '<h6>赠品:' + txt_gift.giftName + ' 数量:' + txt_gift.userGiftCount*num + '</h6>';
+ a += '<h6>赠品:' + txt_gift.giftName + ' 数量:' + txt_gift.userGiftCount + '</h6>';
- a += '<h6> ' + txt_gift.giftName + ' 数量:' + txt_gift.userGiftCount*num + '</h6>';
+ a += '<h6> ' + txt_gift.giftName + ' 数量:' + txt_gift.userGiftCount + '</h6>';
});
str += a
@@ -335,8 +335,6 @@
-
/*修改订单状态*/
function updateOrderStatus(orderId, status, remark) {
var msg = "";
@@ -257,7 +257,7 @@
a += '</li>';
} else if (txt_order.salesStatus == 2) {
a += ali;
- a += '<button type="button" class="my-order-btn" onclick="warnSend(\'' + txt_order.salesOrderid + '\',\'' + txt_order.salesStatus + '\')">提醒发货</button>';
+ //a += '<button type="button" class="my-order-btn" onclick="warnSend(\'' + txt_order.salesOrderid + '\',\'' + txt_order.salesStatus + '\')">提醒发货</button>';
a += orderDesc;
a += ali2;
} else if (txt_order.salesStatus == 5) {