|
@@ -10,13 +10,10 @@
|
|
|
<link rel="stylesheet" type="text/css" href="css/mui.min.css" />
|
|
|
<link rel="stylesheet" type="text/css" href="css/iconfont.css" />
|
|
|
<link rel="stylesheet" type="text/css" href="css/main.css" />
|
|
|
- <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');
|
|
|
- });
|
|
|
- </script>
|
|
|
+ <script type="text/javascript">
|
|
|
+ // 屏蔽分享
|
|
|
+ window.hiddenAllWechatMenu = true;
|
|
|
+ </script>
|
|
|
</head>
|
|
|
|
|
|
<body>
|
|
@@ -83,6 +80,7 @@
|
|
|
<script src="js/mui.min.js"></script>
|
|
|
<script src="js/jquery-2.1.1.min.js"></script>
|
|
|
<script src="js/main.js"></script>
|
|
|
+ <script src="js/wechat-utils-1.0.js"></script>
|
|
|
<script>
|
|
|
var orderId = getParam("orderId");
|
|
|
var status;
|
|
@@ -362,7 +360,8 @@
|
|
|
if(dt.status) { // 支付成功
|
|
|
window.location.href = "pay-win.html?orderId=" + orderIds.orderId + "&dates=" + new Date().getTime();
|
|
|
} else {
|
|
|
- setTimeout(checkOrderStatus(orderIds), 1000);
|
|
|
+ mui.toast("支付失败,请稍后重试!");
|
|
|
+ //setTimeout(checkOrderStatus(orderIds), 1000);
|
|
|
}
|
|
|
},
|
|
|
error: function(xhr, type, errorThrown) {
|
|
@@ -374,8 +373,8 @@
|
|
|
});
|
|
|
} else {
|
|
|
isPay = true;
|
|
|
- //mui.alert("对不起,支付失败!请稍后重试!" + dt.data.orderId + "支付失败!");
|
|
|
- //window.location.href = "order-details.html?orderId=" + dt.data.orderId; // 前往订单详情
|
|
|
+ mui.alert("对不起,支付失败!请稍后重试!" + dt.data.orderId + "支付失败!");
|
|
|
+ window.location.href = "order-details.html?orderId=" + dt.data.orderId; // 前往订单详情
|
|
|
}
|
|
|
});
|
|
|
} else {
|