微信公众号隐藏弹窗

This commit is contained in:
wpf 2024-03-14 11:43:55 +08:00
parent 76fc202512
commit fecc184e1a

View File

@ -1,10 +1,11 @@
<template>
<view class="container">
<view class="v-navbar">
<view v-if="!isWeixin" class="v-navbar">
<u-navbar title="提货付款" :safeAreaInsetTop="false" :fixed="false" @leftClick="leftClick" bgColor="transparent"
leftIconColor="#fff" :titleStyle="{color:'#fff',fontWeight:'bold',fontSize:'32rpx'}">
</u-navbar>
</view>
<view style="height: 150rpx;"></view>
<view v-if="merchantInfo && !isEmpty">
<view class="v-desc">
<view>
@ -51,7 +52,7 @@
<image src="/static/images/no_thing.png"></image>
<text style="margin-top: 60rpx;">{{tips}}</text>
<!-- 登陆 -->
<authorize :isAuto="isAuto" :isGoIndex="false" :isShowAuth="isShowAuth" @authColse="authColse"
<authorize v-show="!isWeixin" ref="authRef" :isAuto="isAuto" :isGoIndex="false" :isShowAuth="isShowAuth" @authColse="authColse"
@onLoadFun="onLoadFun">
</authorize>
</view>
@ -80,6 +81,7 @@ import { Toast } from "../../libs/uniApi";
data() {
return {
isEmpty: false,
isWeixin: this.$wechat.isWeixin(),
cartForm: {
product_id: '',
product_attr_unique: '',
@ -109,6 +111,12 @@ 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) {
@ -254,7 +262,7 @@ import { Toast } from "../../libs/uniApi";
}
.empty {
margin: 130rpx 0 150rpx;
margin: 0;
text-align: center;
image,