|
|
|
@ -145,9 +145,15 @@ |
|
|
|
|
key: "token", |
|
|
|
|
data: res.return_data.uniqueCode |
|
|
|
|
}) |
|
|
|
|
location.href = |
|
|
|
|
'https://open.weixin.qq.com/connect/oauth2/authorize?appid=wxa075e8509802f826&redirect_uri=https%3A%2F%2Fhsgcs.dctpay.com%2FH5%2Findex.html%23%2F&response_type=code&scope=snsapi_base&state=1#wechat_redirect' |
|
|
|
|
|
|
|
|
|
if (this.isWeiXinLogin()) { |
|
|
|
|
//微信内核支付 |
|
|
|
|
location.href ='https://open.weixin.qq.com/connect/oauth2/authorize?appid=wxa075e8509802f826&redirect_uri=https%3A%2F%2Fhsgcs.dctpay.com%2FH5%2Findex.html%23%2F&response_type=code&scope=snsapi_base&state=1#wechat_redirect' |
|
|
|
|
}else{ |
|
|
|
|
uni.reLaunch({ |
|
|
|
|
url: '/pages/tabBar/home/home' |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} else { |
|
|
|
|
uni.showToast({ |
|
|
|
|
title: res.return_msg, |
|
|
|
@ -184,6 +190,15 @@ |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
//微信内核浏览器 |
|
|
|
|
isWeiXinLogin() { |
|
|
|
|
var ua = navigator.userAgent.toLowerCase(); |
|
|
|
|
if (ua.search(/MicroMessenger/i) > -1) { |
|
|
|
|
return true; |
|
|
|
|
} else { |
|
|
|
|
return false; |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
//微信登录 |
|
|
|
|
openWx() { |
|
|
|
|
location.href = |
|
|
|
|