소스 검색

修复bug

wangxiaoming 7 년 전
부모
커밋
8c62d0b8f7
4개의 변경된 파일8개의 추가작업 그리고 8개의 파일을 삭제
  1. 1 0
      aiberle/clearing.html
  2. 4 3
      aiberle/coupon_list.html
  3. 2 4
      aiberle/order-details.html
  4. 1 1
      aiberle/order-list.html

+ 1 - 0
aiberle/clearing.html

@@ -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(); // 前往购物车
 									}
 								}
 							},

+ 4 - 3
aiberle/coupon_list.html

@@ -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;
                 		} else {

+ 2 - 4
aiberle/order-details.html

@@ -149,9 +149,9 @@
 									mui(this.salesUserGiftList).each(function(index) {
 	                                    var txt_gift = this;
 	                                    if (index == 0) {
-	                                        a += '<h6>赠品:' + txt_gift.giftName + '&nbsp;&nbsp;&nbsp;&nbsp;数量:' + txt_gift.userGiftCount*num + '</h6>';
+	                                        a += '<h6>赠品:' + txt_gift.giftName + '&nbsp;&nbsp;&nbsp;&nbsp;数量:' + txt_gift.userGiftCount + '</h6>';
 	                                    } else {
-	                                        a += '<h6>&nbsp;&nbsp;&nbsp;&nbsp;' + txt_gift.giftName + '&nbsp;&nbsp;&nbsp;&nbsp;数量:' + txt_gift.userGiftCount*num + '</h6>';
+	                                        a += '<h6>&nbsp;&nbsp;&nbsp;&nbsp;' + txt_gift.giftName + '&nbsp;&nbsp;&nbsp;&nbsp;数量:' + txt_gift.userGiftCount + '</h6>';
 	                                    }
 	                                });
 	                                str += a
@@ -335,8 +335,6 @@
 			});
 			
 			
-			
-			
 			/*修改订单状态*/
 			function updateOrderStatus(orderId, status, remark) {
 				var msg = "";

+ 1 - 1
aiberle/order-list.html

@@ -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) {