Browse Source

feat(): 微信端-我的,充值页面手机号码客户要求不允许修改

Joeshu 5 months ago
parent
commit
0e249066cf
1 changed files with 7 additions and 1 deletions
  1. 7 1
      src/views/home/index.vue

+ 7 - 1
src/views/home/index.vue

@@ -5,7 +5,13 @@
       <div class="field-label">
         请输入手机号:
       </div>
-      <van-field v-model="userMobile" maxlength="11" type="number" placeholder="请输入手机号" />
+      <van-field
+        v-model="userMobile"
+        :readonly="platform !== 'PC'"
+        maxlength="11"
+        type="number"
+        placeholder="请输入手机号"
+      />
     </div>
     <van-button class="btn-submit" block @click="onNext">下一步</van-button>
     <!-- <div v-if="platform === 'H5'" class="toptips">