1
This commit is contained in:
parent
40caa96cc6
commit
f47d4862ff
@ -176,10 +176,10 @@ $http.dataFactory = async function(res) {
|
||||
errMsg: "【request】" + (httpData.info || httpData.msg)
|
||||
});
|
||||
} else {
|
||||
store.commit("emptyUserInfo");
|
||||
uni.navigateTo({
|
||||
url:'/pages/mine/index'
|
||||
})
|
||||
// store.commit("emptyUserInfo");
|
||||
// uni.navigateTo({
|
||||
// url:'/pages/mine/index'
|
||||
// })
|
||||
//其他错误提示
|
||||
if (res.isPrompt) {
|
||||
uni.showToast({
|
||||
|
@ -9,6 +9,7 @@
|
||||
"buttonDetails": "renew",
|
||||
"nodata": "No data available",
|
||||
"loading": "Data Loading...",
|
||||
"btnClose": "Close",
|
||||
"copy": "Copy",
|
||||
"setIndex":{
|
||||
"title": "setting",
|
||||
@ -254,7 +255,9 @@
|
||||
"text8": "Please do not recharge assets other than USDT to the above address, otherwise it may lead to the loss of assets.",
|
||||
"text9": "Please ensure the security of your mobile device to prevent information from being tampered with or leaked.",
|
||||
"text10": "Please enter the recharge amount",
|
||||
"text11": "The minimum recharge amount is "
|
||||
"text11": "The minimum recharge amount is ",
|
||||
"text12": "Recharge quantity",
|
||||
"text13": "Recharge network"
|
||||
},
|
||||
"wallet":{
|
||||
"title": "My wallet",
|
||||
|
@ -9,6 +9,7 @@
|
||||
"buttonDetails": "更新",
|
||||
"nodata": "暂无数据",
|
||||
"loading": "数据加载...",
|
||||
"btnClose": "关闭",
|
||||
"copy": "复制",
|
||||
"setIndex":{
|
||||
"title": "设置",
|
||||
@ -254,7 +255,9 @@
|
||||
"text8": "请不要将USDT以外的资产充值到上述地址,否则可能导致资产丢失。",
|
||||
"text9": "请确保您的移动设备的安全,防止信息被篡改或泄露。",
|
||||
"text10": "请输入充值金额",
|
||||
"text11": "最小充值金额为 "
|
||||
"text11": "最小充值金额为 ",
|
||||
"text12": "充值金额",
|
||||
"text13": "充值网络"
|
||||
},
|
||||
"wallet":{
|
||||
"title": "我的钱包",
|
||||
|
@ -69,9 +69,9 @@
|
||||
"splashscreen" : {
|
||||
"androidStyle" : "default",
|
||||
"android" : {
|
||||
"hdpi" : "static/images/index1-1.png",
|
||||
"xhdpi" : "static/images/index2-1.png",
|
||||
"xxhdpi" : "static/images/index3-1.png"
|
||||
"hdpi" : "static/images/480_762@1x.png",
|
||||
"xhdpi" : "static/images/720_1242@1x.png",
|
||||
"xxhdpi" : "static/images/1080_1882@1x.png"
|
||||
}
|
||||
},
|
||||
"icons" : {
|
||||
|
@ -6,21 +6,38 @@
|
||||
<image style="width: 40rpx; height: 40rpx;" src="/static/images/r2.png" mode="cover" @click="onTokenJump('/pages/wallet/fundrecords?id=2')"></image>
|
||||
</template>
|
||||
</uni-nav-bar>
|
||||
<view class="rechargeTitle">{{$t('recharge.text1')}}</view>
|
||||
<view class="rechargeNet" @click="onPageJump('/pages/wallet/switchnetwork')">{{rechargeModel.name}}
|
||||
<uni-icons size="20" type="down" style="margin-left: 20rpx;"></uni-icons></view>
|
||||
<view v-if="show==1" style="width: 80vw; margin: 40rpx auto 20rpx auto;">
|
||||
<uni-forms :modelValue="rechargeModel" label-position="left">
|
||||
<uni-forms-item :label="$t('recharge.text2')" labelWidth="280rpx">
|
||||
<view v-if="show==2" style="background-color: #fefefe; width: 90%; margin: 40rpx auto; border: 1px solid #1D61E7; border-radius: 40rpx; padding: 34rpx 60rpx; text-align: center;">
|
||||
<span style="font-weight: 600; line-height: 50rpx; display: block; padding-left: 34%;">
|
||||
<uni-countdown :show-day="false" color="#1D61E7" :font-size="24" :showHour="false" :minute="time" :second="0" style="margin: auto;" />
|
||||
</span>
|
||||
<span style="color: #1D61E7; font-size: 28rpx; font-weight: 400;">Available balance</span>
|
||||
</view>
|
||||
<view v-if="show==1" style="width: 90vw; margin: 40rpx auto 20rpx auto;">
|
||||
<uni-forms :modelValue="rechargeModel" label-position="top">
|
||||
<uni-forms-item :label="$t('recharge.text12')" labelWidth="280rpx">
|
||||
<view>
|
||||
<uni-easyinput type="number" v-model="rechargeModel.amount" :placeholder="$t('putforward.text10', {par: init.recharge_minimum})">
|
||||
<uni-easyinput type="number" style="height: 80rpx;" v-model="rechargeModel.amount" :placeholder="$t('putforward.text10', {par: init.recharge_minimum})">
|
||||
<template #right>
|
||||
<view style="float: left; font-size: 24rpx; margin-right: 20rpx;">USDT</view>
|
||||
</template>
|
||||
</uni-easyinput>
|
||||
</view>
|
||||
</uni-forms-item>
|
||||
<button type="primary" round style="width: 100%;" @click="submit">{{$t('recharge.title')}}</button>
|
||||
<uni-forms-item :label="$t('recharge.text13')" labelWidth="280rpx">
|
||||
<view>
|
||||
<uni-row @click.native="onPageJump('/pages/wallet/switchnetwork')" style="border: 1px solid #eee; height: 80rpx; line-height: 80rpx; border-radius: 10rpx;">
|
||||
<uni-col :span="22" style="padding-top: 20rpx; padding-left: 20rpx;">
|
||||
<image v-if="rechargeModel.network === 'TRC-20'" style="width: 40rpx; height: 40rpx; float: left;" src="/static/images/s1.png" mode="cover"></image>
|
||||
<image v-if="rechargeModel.network === 'BEP-20'" style="width: 40rpx; height: 40rpx; float: left;" src="/static/images/s2.png" mode="cover"></image>
|
||||
<view style="font-weight: 600; line-height: 40rpx; font-size: 28rpx; color: #333333; float:left; margin-left: 20rpx;">{{rechargeModel.name}}</view>
|
||||
</uni-col>
|
||||
<uni-col :span="2">
|
||||
<uni-icons type="right" size="20"></uni-icons>
|
||||
</uni-col>
|
||||
</uni-row>
|
||||
</view>
|
||||
</uni-forms-item>
|
||||
|
||||
</uni-forms>
|
||||
</view>
|
||||
<view v-if="show==2">
|
||||
@ -29,7 +46,8 @@
|
||||
<tki-qrcode ref="qrcode" :val="qrcode" :size="size" :unit="unit" :onval="onval" :load-make="load_make" :show-loading="show_loading" :lv="lv" :background="background" :foreground="foreground" :pdground="pdground" :icon='icon' :iconsize='iconsize' />
|
||||
</view>
|
||||
</view>
|
||||
<view style="font-size: 32rpx; color: #999; text-align: center;">{{$t('recharge.text3')}} {{init.recharge_minimum}} USDT</view>
|
||||
<view style="font-size: 32rpx; color: #999; text-align: center; margin: 20rpx;">{{$t('recharge.text3')}}
|
||||
<span style="color: #1D61E7; font-weight: 600; margin-left: 20rpx;">{{rechargeModel.amount}} USDT</span></view>
|
||||
<view style="width: 92%; margin: 20rpx auto; background-color: #F8F8F8; padding: 30rpx 20rpx;">
|
||||
<view style="width: 70%; float: left;">
|
||||
<view style="color: #999; font-size: 28rpx;">{{$t('recharge.text4')}}</view>
|
||||
@ -41,7 +59,7 @@
|
||||
<view style="clear: both;"></view>
|
||||
</view>
|
||||
</view>
|
||||
<view style="width: 92%; margin: 20rpx auto;">
|
||||
<view style="width: 92%; margin: auto;">
|
||||
<view class="cell_list">
|
||||
<view style="color: #333; font-size: 36rpx; font-weight: 600;">{{$t('recharge.text5')}}</view>
|
||||
</view>
|
||||
@ -52,6 +70,11 @@
|
||||
4. {{$t('recharge.text9')}}
|
||||
</view>
|
||||
</view>
|
||||
<view style="padding-bottom: 20rpx;">
|
||||
<button type="primary" v-if="show==1" round style="width: 90%; margin: 20rpx auto;" @click="submit">{{$t('recharge.title')}}</button>
|
||||
<button type="primary" v-if="show==2" round style="width: 90%; margin: 20rpx auto;" @click="onPageJump('/page/wallet/index')">{{$t('btnClose')}}</button>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
</template>
|
||||
|
||||
@ -73,7 +96,8 @@
|
||||
network: 'TRC-20',
|
||||
amount: '',
|
||||
address:"",
|
||||
images:""
|
||||
images:"",
|
||||
time:"0"
|
||||
},
|
||||
|
||||
init: {},
|
||||
@ -100,7 +124,7 @@
|
||||
this.$http.get('/api/common/init?lang='+this.$i18n.locale).then(res => {
|
||||
this.init = res.data;
|
||||
});
|
||||
if(e.network != typeof(undefined) && e.neetwork != undefined){
|
||||
if(e.network){
|
||||
if(e.network != this.rechargeModel.neetwork){
|
||||
this.rechargeModel.network=e.network;
|
||||
if(this.rechargeModel.network=='TRC-20'){
|
||||
@ -177,6 +201,7 @@
|
||||
this.$http.post('/api/recharge/create', data).then(res => {
|
||||
if(res.code == 0){
|
||||
this.show = 2;
|
||||
this.time = 15;
|
||||
this.qrcode = res.data.order.address;
|
||||
this.icon = this.rechargeModel.network == 'TRC-20' ? '/static/images/s1.png' : '/static/images/s2.png'
|
||||
}else{
|
||||
@ -225,4 +250,8 @@
|
||||
.rechargeNet{
|
||||
font-weight: 600;font-size: 40rpx;color: #333;line-height: 46rpx; text-align: center; margin-top: 40rpx;
|
||||
}
|
||||
::v-deep .uni-input-input{ height: 80rpx; line-height: 80rpx;}
|
||||
::v-deep .uni-input-wrapper{height: 80rpx;line-height: 80rpx;}
|
||||
::v-deep .uni-easyinput__content{height: 80rpx;line-height: 80rpx;}
|
||||
::v-deep .uni-easyinput__content-input{height: 80rpx;line-height: 80rpx;}
|
||||
</style>
|
BIN
static/images/1080_1882@1x.png
Normal file
BIN
static/images/1080_1882@1x.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 26 KiB |
BIN
static/images/480_762@1x.png
Normal file
BIN
static/images/480_762@1x.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 8.1 KiB |
BIN
static/images/720_1242@1x.png
Normal file
BIN
static/images/720_1242@1x.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 16 KiB |
Loading…
x
Reference in New Issue
Block a user