| | |
| | | }, |
| | | onShow() { |
| | | let redirect_uri = `${config.webURL}/pay/scanpay?cid=${this.opt.cid||''}&shopId=${this.opt.shopId||''}&activityQrcodeId=${this.opt.activityQrcodeId||''}&smoney=${this.opt.smoney||''}` |
| | | if(this.platform==2&&uni.getStorageSync('OPENID'+this.platform)){ |
| | | if(this.platform==2&&uni.getStorageSync('OPENID')){ |
| | | window.location.href = redirect_uri |
| | | return |
| | | } |
| | | if(this.platform==5&&uni.getStorageSync('ALIUSERID'+this.platform)){ |
| | | if(this.platform==5&&uni.getStorageSync('ALIUSERID')){ |
| | | window.location.href = redirect_uri |
| | | return |
| | | } |
| | | if(this.platform==15&&uni.getStorageSync('UNIONPAYID')){ |
| | | window.location.href = redirect_uri |
| | | return |
| | | } |