|
|
@ -3,6 +3,8 @@ |
|
|
|
<view class="modify-user"> |
|
|
|
<navbar :leftClick="leftClick"></navbar> |
|
|
|
|
|
|
|
|
|
|
|
<!-- 修改钱包地址 --> |
|
|
|
<view class="edit-user content" v-if="$route.query.type == 2"> |
|
|
|
<view class="edit-list"> |
|
|
|
<view class="edit-item"> |
|
|
@ -10,9 +12,17 @@ |
|
|
|
<input type="text" disabled value="USDT-TRC20" /> |
|
|
|
</view> |
|
|
|
|
|
|
|
<view class="edit-item"> |
|
|
|
<view class="edit-item" v-if="userInfo.moneyAddress"> |
|
|
|
<view class="title">{{ $t('page.center.wallet') }}</view> |
|
|
|
<input type="text" |
|
|
|
disabled |
|
|
|
:placeholder="$t('page.modifyUser.wallet-placeholder')" |
|
|
|
v-model="form.moneyAddress" /> |
|
|
|
</view> |
|
|
|
<view class="edit-item" v-else> |
|
|
|
<view class="title">{{ $t('page.center.wallet') }}</view> |
|
|
|
<input type="text" :placeholder="$t('page.modifyUser.wallet-placeholder')" |
|
|
|
<input type="text" |
|
|
|
:placeholder="$t('page.modifyUser.wallet-placeholder')" |
|
|
|
v-model="form.moneyAddress" /> |
|
|
|
</view> |
|
|
|
|
|
|
@ -58,7 +68,9 @@ |
|
|
|
</view> --> |
|
|
|
|
|
|
|
<!-- 提交按钮 --> |
|
|
|
<view class="confirm content" @click="submit">{{ $t('page.modifyUser.confirm') }}</view> |
|
|
|
<view class="confirm content" |
|
|
|
v-if="!userInfo.moneyAddress || $route.query.type != 2" |
|
|
|
@click="submit">{{ $t('page.modifyUser.confirm') }}</view> |
|
|
|
|
|
|
|
<!-- 提示信息 --> |
|
|
|
<!-- <view class="tips content">{{ $t(`page.modifyUser.${tips[$route.query.type]}`) }}</view> --> |
|
|
@ -81,9 +93,15 @@ |
|
|
|
newPassword: '', |
|
|
|
confirmNewPassword: '', |
|
|
|
moneyAddress : '' |
|
|
|
} |
|
|
|
}, |
|
|
|
userInfo: { |
|
|
|
moneyAddress : '123' |
|
|
|
}, |
|
|
|
} |
|
|
|
}, |
|
|
|
onShow() { |
|
|
|
this.getUserInfo() |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
leftClick() { |
|
|
|
uni.navigateTo({ |
|
|
@ -91,6 +109,17 @@ |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
//获取用户信息 |
|
|
|
getUserInfo() { |
|
|
|
this.request('userInfo').then(res => { |
|
|
|
if (res.code == 200) { |
|
|
|
this.userInfo = res.result.userInfo |
|
|
|
this.vipInfo = res.result.vip |
|
|
|
this.form.moneyAddress = this.userInfo.moneyAddress |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
//提交 |
|
|
|
submit() { |
|
|
|
this.$play() |
|
|
|