Browse Source

修改提现、充值

master
前端-胡立永 11 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: { methods: {
open() { open() {
this.forgetPass() 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", "success": "Recharge successful",
"moneyEmpty": "Please fill in the recharge amount", "moneyEmpty": "Please fill in the recharge amount",
"AmountThan0": "The recharge amount must be greater than 0", "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": { "withdraw": {
"title": "Withdrawal", "title": "Withdrawal",
@ -163,7 +164,8 @@ export default {
"payPassEmpty": "Please enter the withdrawal amount", "payPassEmpty": "Please enter the withdrawal amount",
"warn": "Warning", "warn": "Warning",
"warn-detail": "Since your funds are large and exceed the withdrawal amount of ordinary users, please consider upgrading your VIP level!", "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": { "login": {
"username": "Username", "username": "Username",


+ 4
- 2
locale/es.js View File

@ -144,7 +144,8 @@ export default {
"success": "recarga exitosa", "success": "recarga exitosa",
"moneyEmpty": "Por favor, ingresa la cantidad de recarga", "moneyEmpty": "Por favor, ingresa la cantidad de recarga",
"AmountThan0": "La cantidad de recarga debe ser mayor a 0", "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": { "withdraw": {
"title": "Retiro", "title": "Retiro",
@ -163,7 +164,8 @@ export default {
"payPassEmpty": "Por favor, ingrese la cantidad de retiro", "payPassEmpty": "Por favor, ingrese la cantidad de retiro",
"warn": "Advertencia", "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!", "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": { "login": {
"username": "Nombre de usuario", "username": "Nombre de usuario",


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

@ -21,11 +21,26 @@
</view> </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"> <view class="input content">
<input @input="moneyChange" v-model="form.money" class="input content" type="number" :placeholder="$t('page.purse.deposit-now')" /> <input @input="moneyChange" v-model="form.money" class="input content" type="number" :placeholder="$t('page.purse.deposit-now')" />
</view> </view>
<view class="input content"> <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> </view>
<!-- 按钮 --> <!-- 按钮 -->
@ -54,7 +69,9 @@
form : { form : {
money : '', money : '',
payPass : '', payPass : '',
id : ''
id : '',
orderId : '',
image : ''
}, },
serverList : [], serverList : [],
showService : false 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){ selectRecharge(index){
this.$play() this.$play()
@ -243,7 +270,6 @@
.input{ .input{
margin: 30rpx auto; margin: 30rpx auto;
input{ input{
border: 1px solid $uni-bg-color-app; border: 1px solid $uni-bg-color-app;
height: 80rpx; height: 80rpx;
@ -252,6 +278,24 @@
text-indent: 15rpx; text-indent: 15rpx;
border-radius: 10rpx; 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{ .btn{


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

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


Loading…
Cancel
Save