...
|
...
|
@@ -21,7 +21,7 @@ var appIconPosition = { |
|
|
bank: '-4rem'
|
|
|
};
|
|
|
|
|
|
//隐藏微信分享选项
|
|
|
// 隐藏微信分享选项
|
|
|
if (window.wx) {
|
|
|
wx.hideOptionMenu();
|
|
|
}
|
...
|
...
|
@@ -44,10 +44,10 @@ if (typeof WeixinJSBridge === undefined) { |
|
|
onBridgeReady();
|
|
|
}
|
|
|
|
|
|
//调用微信JS api 支付
|
|
|
// 调用微信JS api 支付
|
|
|
function jsApiCall(orderCode, jsApiParameters) {
|
|
|
|
|
|
//防止重复操作弹框
|
|
|
// 防止重复操作弹框
|
|
|
window.WeixinJSBridge && window.WeixinJSBridge.invoke(
|
|
|
'getBrandWCPayRequest',
|
|
|
jsApiParameters,
|
...
|
...
|
@@ -57,7 +57,7 @@ function jsApiCall(orderCode, jsApiParameters) { |
|
|
);
|
|
|
}
|
|
|
|
|
|
//微信支付
|
|
|
// 微信支付
|
|
|
function callpay(orderCode) {
|
|
|
var jsApiParameters;
|
|
|
|
...
|
...
|
@@ -92,11 +92,7 @@ function callpay(orderCode) { |
|
|
function isWXOpen() {
|
|
|
var ua = window.navigator.userAgent.toLowerCase();
|
|
|
|
|
|
if (ua.indexOf('micromessenger') > 0) {
|
|
|
return true;
|
|
|
} else {
|
|
|
return false;
|
|
|
}
|
|
|
return ua.indexOf('micromessenger') > 0;
|
|
|
}
|
|
|
|
|
|
function hideWeChatPay() {
|
...
|
...
|
@@ -138,9 +134,7 @@ function loadIcon() { |
|
|
}
|
|
|
|
|
|
function showPage() {
|
|
|
var $pageList = $('.payapp-list');
|
|
|
|
|
|
$pageList.css('visibility', 'visible');
|
|
|
$('.payapp-list').css('visibility', 'visible');
|
|
|
}
|
|
|
|
|
|
if (wxHammer) {
|
...
|
...
|
|