|
@@ -8,21 +8,11 @@ var payContainer = new Vue({
|
|
|
},
|
|
|
methods: {
|
|
|
authRedirect:function (orderInfo) {
|
|
|
- console.log('orderInfo=====>',orderInfo)
|
|
|
- var wechatPayUrl = 'https://open.weixin.qq.com/connect/oauth2/authorize'
|
|
|
- var appId = 'wx91c4152b60ca91a3'
|
|
|
- var redirect_uri = 'https://www-b.caimei365.com/pay/wechatpay.html'
|
|
|
- var url =
|
|
|
- wechatPayUrl +
|
|
|
- '?appid=' +
|
|
|
- appId +
|
|
|
- '&redirect_uri=' +
|
|
|
- redirect_uri +
|
|
|
- '&response_type=code&scope=snsapi_base&state=' +
|
|
|
- orderInfo +
|
|
|
- '#wechat_redirect'
|
|
|
- console.log('url=====>',url)
|
|
|
- window.location.href = url
|
|
|
+ var wechatPayUrl = 'https://open.weixin.qq.com/connect/oauth2/authorize';
|
|
|
+ var appId = 'wx91c4152b60ca91a3';
|
|
|
+ var redirect_uri = 'https://www-b.caimei365.com/pay/wechatpay.html';
|
|
|
+ var url = wechatPayUrl + '?appid=' + appId + '&redirect_uri=' + redirect_uri + '&response_type=code&scope=snsapi_base&state='+ orderInfo +'#wechat_redirect';
|
|
|
+ window.location.href = url;
|
|
|
}
|
|
|
},
|
|
|
mounted: function () {
|