Преглед на файлове

商户信息审核中提示

zhaoxiaohai преди 3 години
родител
ревизия
e942562796

+ 5 - 0
components/My_showModel/index.js

@@ -35,6 +35,11 @@ Component({
         /* 按钮回调 */
         callBack: {
             type: Function
+        },
+        /* 是否tabbar页面 */
+        ifTabBar: {
+            type: Boolean,
+            value: false
         }
     },
 

+ 1 - 1
components/My_showModel/index.wxml

@@ -1,6 +1,6 @@
 <van-transition show="{{ isShow }}" custom-class="block">
     <view class="showmodel-bg" catchtouchmove="catchtouchmove">
-        <view class="showmodel-box">
+        <view class="showmodel-box" style="top:{{ifTabBar?'48%':'40%'}};">
             <view class="model-title">{{title}}</view>
             <view class="model-content" style="word-break:break-all;">{{content}}</view>
             <view class="model-but" catchtap="butClick">

+ 0 - 1
components/My_showModel/index.wxss

@@ -14,7 +14,6 @@
     background: #FFFFFF;
     border-radius: 20rpx;
     z-index: 999999999;
-    top: 40%;
     left: 50%;
     transform: translate(-50%, -50%);
     padding: 0 30rpx;

+ 4 - 5
pages/tabbar-pages/user/index.js

@@ -28,6 +28,7 @@ Page({
             icon: 'https://bwj.obs.cn-east-2.myhuaweicloud.com/resources/WeChat/userCenter/icon-01.png'
         }],
         userMessage: {}, //用户信息
+        myShowModel: false, //显示弹出窗
     },
 
     /**
@@ -65,10 +66,8 @@ Page({
                 });
                 if (data.fisauthenticating == 1) {
                     //正在审核中
-                    return wx.showModal({
-                        title: "提示",
-                        content: '商户信息正在审核中',
-                        showCancel: false
+                    return this.setData({
+                        myShowModel: true
                     })
                 } else {
                     //无商户信息子账号
@@ -104,7 +103,7 @@ Page({
                 wx.showToast({
                     title: '退出成功',
                 })
-                
+
                 setTimeout(() => {
                     wx.reLaunch({
                         url: '/pages/login/index',

+ 4 - 1
pages/tabbar-pages/user/index.wxml

@@ -37,4 +37,7 @@
 <!-- 注销按钮 -->
 <view class="logout">
     <van-button bindtap="userLogout" custom-class="custom-class" round size="normal" color="rgba(103, 207, 220, 0.15);">退出登录</van-button>
-</view>
+</view>
+
+<!-- 自定义model -->
+<My_showModel ifTabBar isShow='{{myShowModel}}' content="商户信息正在审核中" hideCancel />