Pārlūkot izejas kodu

fix:赠送好友绑定手机号弹框&弹框样式层级

yangfeng 4 mēneši atpakaļ
vecāks
revīzija
206fc2328e

+ 16 - 3
apps/mobile/src/components/mine/MineHeader.vue

@@ -197,7 +197,12 @@
         <span class="gift-guide-text"
           >支持送好友超级订阅,快快送给好友吧!</span
         >
-        <span class="gift-guide-btn" @click="sendToFriend">送给朋友</span>
+        <span
+          class="gift-guide-btn"
+          @click="sendToFriend"
+          v-bound-phone="bindPhoneSendToFriend()"
+          >送给朋友</span
+        >
       </div>
     </div>
     <!--    订单tab-->
@@ -522,8 +527,6 @@ export default {
     },
     // 送好友
     sendToFriend() {
-      const nowTime = Date.now()
-      const expireTime = this.activeAccountType.vipEntTime
       if (!this.accountInfo.hasVip) {
         // 非超级订阅
         return this.$dialog
@@ -659,6 +662,16 @@ export default {
           this.renewConsult()
         }
       }
+    },
+    bindPhoneSendToFriend() {
+      return {
+        props: {
+          name: '我的-送好友'
+        },
+        next: () => {
+          this.sendToFriend()
+        }
+      }
     }
   }
 }

+ 1 - 0
plugins/bind-phone-mobile/src/assets/style.css

@@ -1,6 +1,7 @@
 .bind-phone-dialog {
   width: 343px !important;
   border-radius: 16px !important;
+  z-index: 3010 !important;
 }
 .bind-phone-dialog .bind-header {
   position: relative;