|
@@ -405,16 +405,16 @@ export default {
|
|
|
// console.log('platform:::', platform)
|
|
|
let appId = uni.getStorageSync('appid');
|
|
|
let openId = this.$store.state.openid;
|
|
|
- // 如果 openId 丢失的话,提示用户回到首页重新进入
|
|
|
- if (openId && openId === 'undefined' || !openId) {
|
|
|
- toLogin()
|
|
|
- return
|
|
|
- }
|
|
|
if (platform === 'miniprogram') {
|
|
|
// appId = 'wx92c3e55fbef6b2af';
|
|
|
// appId = 'wxd830fe4d1e04988e';
|
|
|
appId = this.appId;
|
|
|
}
|
|
|
+ // 如果 openId 丢失的话,提示用户回到首页重新进入
|
|
|
+ if (openId && openId === 'undefined' || !openId || !appId || appId === 'undefined') {
|
|
|
+ toLogin()
|
|
|
+ return
|
|
|
+ }
|
|
|
// console.log('支付宝::', isAlipay())
|
|
|
const params = {
|
|
|
region: 'cn',
|