Browse Source

提现地址默认

xiaomei 6 months ago
parent
commit
3e0b3d7524
1 changed files with 8 additions and 2 deletions
  1. 8 2
      src/views/mine/withdraw.vue

+ 8 - 2
src/views/mine/withdraw.vue

@@ -48,7 +48,7 @@
             </div>
             <div class="box_item">
               <span class="left">{{ $t('lang125') }}</span>
-              <van-field v-model="out_address" type="textarea" style="height: 46px" :placeholder="$t('lang118')" class="input" input-align="right" />
+              <van-field v-model="out_address" type="textarea" style="height: 48px" disabled class="input" input-align="right" />
             </div>
           </div>
         </div>
@@ -117,6 +117,7 @@ export default {
       homeApi.getUserInfo().then(res => {
         if (res.code == 200) {
           this.assets = res.data.balance;
+          this.out_address = res.data.address;
         } else {
         }
       });
@@ -186,7 +187,7 @@ export default {
                   _this.show = false;
                   if (res.code == 200) {
                     _this.amount = '';
-                    _this.out_address = '';
+                    // _this.out_address = '';
                     _this.getUserInfo();
                     Notify({ type: 'success', message: res.msg });
                   } else {
@@ -384,6 +385,11 @@ export default {
         .input {
           width: 180px;
         }
+
+        /deep/ .van-field__control:disabled {
+          color: #000 !important;
+          -webkit-text-fill-color: #000 !important;
+        }
       }
     }
   }