...
|
...
|
@@ -11,7 +11,6 @@ var loading = require('../plugin/loading'), |
|
|
// 点击微信显示加载
|
|
|
var $loadingToast = $(".loading-toast");
|
|
|
var theOrderCode = document.getElementById('ordercode').value;
|
|
|
var weixinOpenId = document.getElementById('openId').value;
|
|
|
|
|
|
var wxPayEl = document.getElementById('weixin'),
|
|
|
wxHammer = wxPayEl && new Hammer(wxPayEl);
|
...
|
...
|
@@ -55,7 +54,7 @@ function jsApiCall(orderCode, jsApiParameters) { |
|
|
'getBrandWCPayRequest',
|
|
|
jsApiParameters,
|
|
|
function(res) {
|
|
|
window.location.href = '/home/orders/detail?order_code=' + orderCode + '&openId=' + weixinOpenId;
|
|
|
window.location.href = '/home/orders/detail?order_code=' + orderCode + '&openId=true';
|
|
|
}
|
|
|
);
|
|
|
}
|
...
|
...
|
@@ -77,8 +76,7 @@ function callpay(orderCode) { |
|
|
type: 'GET',
|
|
|
url: '/shopping/pay/wechatwapapi',
|
|
|
data: {
|
|
|
'order_code': orderCode,
|
|
|
'openId': weixinOpenId,
|
|
|
'order_code': orderCode
|
|
|
},
|
|
|
dataType: 'json',
|
|
|
success: function(res) {
|
...
|
...
|
|