Sfoglia il codice sorgente

feat:标讯详情页一键绑定功能

yangfeng 8 mesi fa
parent
commit
71a96018fa
1 ha cambiato i file con 14 aggiunte e 5 eliminazioni
  1. 14 5
      apps/mobile/src/components/one-click-binding/index.vue

+ 14 - 5
apps/mobile/src/components/one-click-binding/index.vue

@@ -41,6 +41,7 @@
         <template #button>
           <van-button
             class="send-code"
+            :class="{ active: info.phone }"
             size="small"
             :disabled="sendCodeButtonDisabled"
             @click="sendVerifyCode"
@@ -68,7 +69,8 @@
         </button>
       </div>
       <div class="tip-text" v-if="showBottomTip">
-        根据《中华人民共和国网络安全法》第二十四条及相关法律规定,请您填写正确的手机号进行认证,获取更多网络服务。
+        根据《中华人民共和国网络安全法》要求,为避免非正常使用标讯信息,需完成手机号绑定,
+        保障账户安全和信息的正当使用。
       </div>
     </div>
   </div>
@@ -242,7 +244,7 @@ export default {
       if (state === 1) {
         let newQuery = JSON.parse(JSON.stringify(this.$route.query))
         if (newQuery && newQuery.wxpush) {
-          delete newQuery.type
+          delete newQuery.wxpush
         }
         this.$router.replace({ query: newQuery })
       }
@@ -253,7 +255,7 @@ export default {
       const loading = this.showLoading()
       const params = {
         phone: this.info.phone,
-        code: this.info.picCode,
+        code: this.info.code,
         step: 2
       }
       const {
@@ -288,11 +290,15 @@ export default {
   .bind-form {
     padding: 0 8px;
     .send-code {
+      padding: 0;
       height: unset;
-      color: $color_main;
+      color: #c0c4cc;
       font-size: 14px;
       line-height: 20px;
       border: none;
+      &.active {
+        color: $color_main;
+      }
     }
     ::v-deep {
       .van-cell {
@@ -306,9 +312,12 @@ export default {
         line-height: 22px;
         color: #5f5e64;
       }
-      .van-field__value {
+      .van-field__control {
         font-size: 16px;
       }
+      .van-field__button {
+        display: flex;
+      }
     }
   }
   .fast-login-container {