Browse Source

修改bug

wangxiaoming 7 years ago
parent
commit
ab6e78789c
1 changed files with 4 additions and 17 deletions
  1. 4 17
      aiberle/order-list.html

+ 4 - 17
aiberle/order-list.html

@@ -13,9 +13,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>
 
@@ -432,19 +432,9 @@
             data: dataArgs,
             dataType: 'json',
             type: 'POST',
-            xhrFields: {
-				withCredentials: true
-			},
-			crossDomain: true,
             timeout: 15000,
             success: function(dt) {
-            	
-            	if(dt.resultCode == "500") {
-					mui.alert(dt.message);
-					isPay = true;
-					return;
-				};
-            	
+//              layer.closeAll();
                 if(dt.status) {
                     var str = dt.data.info;
                     var obj = JSON.parse("{" + str + "}");
@@ -462,9 +452,6 @@
                                 data: orderIds,
                                 dataType: 'json',
                                 type: 'post',
-                                xhrFields: {
-									withCredentials: true
-								},
                                 timeout: 15000,
                                 success: function(dt) {
                                     if(dt.status) { // 支付成功