Browse Source

修改提现、充值

master
前端-胡立永 8 months ago
parent
commit
ebdd93122d
5 changed files with 71 additions and 11 deletions
  1. +1
    -1
      components/center/center.vue
  2. +4
    -2
      locale/en.js
  3. +4
    -2
      locale/es.js
  4. +47
    -3
      pages/purse/purse.vue
  5. +15
    -3
      pages/withdraw/withdraw.vue

+ 1
- 1
components/center/center.vue View File

@ -242,7 +242,7 @@
methods: {
open() {
this.forgetPass()
this.moneyAddress=this.userInfo.moneyAddress
this.moneyAddress = this.userInfo.moneyAddress
},
//


+ 4
- 2
locale/en.js View File

@ -144,7 +144,8 @@ export default {
"success": "Recharge successful",
"moneyEmpty": "Please fill in the recharge amount",
"AmountThan0": "The recharge amount must be greater than 0",
"payPassEmpty": "Please fill in the payment code"
"payPassEmpty": "Please fill in the payment code",
"orderId" : "Order number"
},
"withdraw": {
"title": "Withdrawal",
@ -163,7 +164,8 @@ export default {
"payPassEmpty": "Please enter the withdrawal amount",
"warn": "Warning",
"warn-detail": "Since your funds are large and exceed the withdrawal amount of ordinary users, please consider upgrading your VIP level!",
"ok": "OK"
"ok": "OK",
"address" : "Withdrawal address"
},
"login": {
"username": "Username",


+ 4
- 2
locale/es.js View File

@ -144,7 +144,8 @@ export default {
"success": "recarga exitosa",
"moneyEmpty": "Por favor, ingresa la cantidad de recarga",
"AmountThan0": "La cantidad de recarga debe ser mayor a 0",
"payPassEmpty": "Por favor, ingresa el código de pago"
"payPassEmpty": "Por favor, ingresa el código de pago",
"orderId" : "Número de pedido"
},
"withdraw": {
"title": "Retiro",
@ -163,7 +164,8 @@ export default {
"payPassEmpty": "Por favor, ingrese la cantidad de retiro",
"warn": "Advertencia",
"warn-detail": "Debido a que sus fondos son grandes y exceden la cantidad de retiro de usuarios comunes, ¡considere actualizar su nivel VIP!",
"ok": "OK"
"ok": "OK",
"address" : "Dirección de retiro"
},
"login": {
"username": "Nombre de usuario",


+ 47
- 3
pages/purse/purse.vue View File

@ -21,11 +21,26 @@
</view>
<!-- 输入框 -->
<view class="input content">
<input v-model="form.orderId" class="input content" type="text" :placeholder="$t('page.purse.orderId')" />
</view>
<view class="input content">
<input @input="moneyChange" v-model="form.money" class="input content" type="number" :placeholder="$t('page.purse.deposit-now')" />
</view>
<view class="input content">
<input v-model="form.payPass" class="input content" type="text" :placeholder="$t('page.purse.security-pin')" />
<input v-model="form.payPass" class="input content" type="password" :placeholder="$t('page.purse.security-pin')" />
</view>
<view class="input content" style="display: flex;">
<image :src="form.image"
v-if="form.image" mode=""
@click="uploadImage"></image>
<view class="image" v-else
@click="uploadImage">
<u-icon name="plus"></u-icon>
</view>
</view>
<!-- 按钮 -->
@ -54,7 +69,9 @@
form : {
money : '',
payPass : '',
id : ''
id : '',
orderId : '',
image : ''
},
serverList : [],
showService : false
@ -72,6 +89,16 @@
})
},
uploadImage(){
let self = this
uni.chooseImage({
success(res) {
console.log(res);
self.form.image = res.tempFilePaths[0]
}
})
},
//
selectRecharge(index){
this.$play()
@ -243,7 +270,6 @@
.input{
margin: 30rpx auto;
input{
border: 1px solid $uni-bg-color-app;
height: 80rpx;
@ -252,6 +278,24 @@
text-indent: 15rpx;
border-radius: 10rpx;
}
image{
width: 150rpx;
height: 150rpx;
border-radius: 10rpx;
margin-left: 10rpx;
border: 1px solid #333;
}
.image{
width: 150rpx;
height: 150rpx;
border: 1px solid #333;
border-radius: 10rpx;
display: flex;
justify-content: center;
align-items: center;
margin-left: 10rpx;
}
}
.btn{


+ 15
- 3
pages/withdraw/withdraw.vue View File

@ -19,6 +19,16 @@
<!-- 输入框组 -->
<view class="inputs content">
<view class="input-item">
<view class="input-top">
<view class="title">{{ $t('page.withdraw.address') }}</view>
</view>
<view style="margin-top: 20rpx;">
{{ userInfo.moneyAddress }}
</view>
</view>
<view class="input-item">
<view class="input-top">
<view class="title">{{ $t('page.withdraw.withdraw-amount') }}</view>
@ -31,7 +41,7 @@
<view class="input-top">
<view class="title">{{ $t('page.withdraw.pin') }}</view>
</view>
<input v-model="form.payPass" type="text"/>
<input v-model="form.payPass" type="password"/>
</view>
</view>
@ -70,7 +80,8 @@
vipInfo : {},
showModal : false, //
serverList : [],
showService : false
showService : false,
userInfo : {}
}
},
onShow() {
@ -89,6 +100,7 @@
getUserInfo(){
this.request('userInfo').then(res => {
if(res.code == 200){
this.userInfo = res.result.userInfo
this.money = res.result.userInfo.money
this.vipInfo = res.result.vip
}
@ -211,7 +223,7 @@
}
.withdraw-content{
color: white;
color: $uni-text-color;
font-size: 24rpx;
}
}


Loading…
Cancel
Save