更新h5微信公众号自动授权
This commit is contained in:
parent
fecc184e1a
commit
dcee6e6e15
@ -111,18 +111,18 @@ import { Toast } from "../../libs/uniApi";
|
||||
|
||||
onLoad(opt) {
|
||||
this.mer_id = opt.mer_id;
|
||||
if(this.isWeixin) {
|
||||
this.tips = '加载中...';
|
||||
this.$nextTick(()=>{
|
||||
this.$refs.authRef.toWecahtAuth();
|
||||
})
|
||||
}
|
||||
},
|
||||
onShow() {
|
||||
if (!this.isLogin) {
|
||||
Cache.set("login_back_url_weixin", "/" + getCurrentPages()[0].route + "?mer_id=" + this.mer_id);
|
||||
this.isAuto = true;
|
||||
this.isShowAuth = true;
|
||||
if(this.isWeixin) {
|
||||
this.tips = '加载中...';
|
||||
this.$nextTick(()=>{
|
||||
this.$refs.authRef.toWecahtAuth();
|
||||
})
|
||||
}
|
||||
} else {
|
||||
this.checkForm.cart_id = [];
|
||||
this.getProductInfoByMerid(this.mer_id);
|
||||
|
Loading…
x
Reference in New Issue
Block a user