shish 5 mesi fa
parent
commit
c79ce6163b
1 ha cambiato i file con 12 aggiunte e 9 eliminazioni
  1. 12 9
      mallApp/src/pages/member/rechargeResult.vue

+ 12 - 9
mallApp/src/pages/member/rechargeResult.vue

@@ -12,7 +12,7 @@
           </view>
 
           <view v-if="userName.includes('尾号')" class="name-edit-section">
-            <view class="section-label">请完善真实姓名,以便消费时核对信息</view>
+            <view class="section-label">请完善真实姓名,以便消费时核对</view>
             <view class="input-group">
               <input v-model="form.name" class="input-field" name="name" placeholder="请填写" @focus="clearInputOnFocus" />
               <button class="edit-btn" @click="modifyName">修改</button>
@@ -103,13 +103,15 @@ export default {
       }
     },
     submitNameForm(){
-      updateInfo(this.form).then(res=>{
-        if(res.code == 1){
-          this.$msg('修改成功')
-          setTimeout(() => {
-            this.userName = this.form.name
-          }, 1500)
-        }
+      this.$util.confirmModal({content:'确认修改?'},() => {
+        updateInfo(this.form).then(res=>{
+          if(res.code == 1){
+            this.$msg('修改成功')
+            setTimeout(() => {
+              this.userName = this.form.name
+            }, 1500)
+          }
+        })
       })
     },
     goBack(){
@@ -187,7 +189,8 @@ export default {
 
     .section-label {
       font-size: 30upx;
-      color: #666;
+      color: #535353;
+      font-weight:bold;
       margin-bottom: 20upx;
       line-height: 1.5;
     }