瀏覽代碼

开发联调

bayi 1 年之前
父節點
當前提交
0ef6c14180
共有 3 個文件被更改,包括 22 次插入2 次删除
  1. 14 0
      components/buyVip/index.js
  2. 4 1
      components/buyVip/index.less
  3. 4 1
      components/buyVip/index.wxss

+ 14 - 0
components/buyVip/index.js

@@ -21,6 +21,14 @@ Component({
                 this.setData({
                     qrCode: qrCode.ticketUrl
                 })
+                console.log(typeof this.getTabBar === 'function' &&
+                    this.getTabBar());
+                if (typeof this.getTabBar === 'function' &&
+                    this.getTabBar()) {
+                    this.getTabBar().setData({
+                        mask: true
+                    })
+                }
                 this.setData({
                     show: true,
                 })
@@ -30,6 +38,12 @@ Component({
             this.setData({
                 show: false
             })
+            if (typeof this.getTabBar === 'function' &&
+                this.getTabBar()) {
+                this.getTabBar().setData({
+                    mask: false
+                })
+            }
         },
     }
 })

+ 4 - 1
components/buyVip/index.less

@@ -5,11 +5,14 @@
     top: 0rpx;
     width: 100vw;
     height: 100vh;
+    display: flex;
+    align-items: center;
+    justify-content: center;
+    flex-direction: column;
     background: rgba(0, 0, 0, 0.7);
 
     .modal {
         position: relative;
-        margin: 140rpx auto 0rpx;
         border-radius: 20rpx;
         text-align: center;
         overflow: hidden;

+ 4 - 1
components/buyVip/index.wxss

@@ -5,11 +5,14 @@
   top: 0rpx;
   width: 100vw;
   height: 100vh;
+  display: flex;
+  align-items: center;
+  justify-content: center;
+  flex-direction: column;
   background: rgba(0, 0, 0, 0.7);
 }
 .buyVip .modal {
   position: relative;
-  margin: 140rpx auto 0rpx;
   border-radius: 20rpx;
   text-align: center;
   overflow: hidden;