更新h5微信公众号自动授权

This commit is contained in:
wpf 2024-03-14 13:39:22 +08:00
parent fecc184e1a
commit dcee6e6e15

View File

@ -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);