12345678910111213141516171819202122232425 |
- /**
- *Created by ZHJY on 2020/7/14.
- */
- var payContainer = new Vue({
- el:"#payContainer",
- data: {
- orderInfo:{}
- },
- methods: {
- authRedirect:function () {
- var orderInfo = CAIMEI.getUrlParam('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';
- window.location.href = url;
- }
- },
- created:function () {
- this.authRedirect()
- },
- mounted: function () {
- }
- });
|