This commit is contained in:
xx 2025-06-07 23:12:35 +08:00
parent d8dcbfa57c
commit e3ab320ea5
12 changed files with 240 additions and 135 deletions

View File

@ -8,6 +8,7 @@
"buttonDetails": "renew", "buttonDetails": "renew",
"nodata": "No data available", "nodata": "No data available",
"loading": "Data Loading...", "loading": "Data Loading...",
"copy": "Copy",
"setIndex":{ "setIndex":{
"title": "setting", "title": "setting",
"text1": "PIN code setting", "text1": "PIN code setting",
@ -93,24 +94,109 @@
"text6": "Computing power" "text6": "Computing power"
}, },
"putforward":{ "putforward":{
"title": "Put forward",
"text1":"Please select an address", "text1":"Please select an address",
"text2":"Please enter the withdrawal amount", "text2":"Please enter the withdrawal amount",
"text3":"The minimum withdrawal amount is {par} USDT", "text3":"The minimum withdrawal amount is {par} USDT",
"text4":"The withdrawal amount plus network fees cannot exceed the balance", "text4":"The withdrawal amount plus network fees cannot exceed the balance",
"text5":"Please input PIN code", "text5":"Please input PIN code",
"text6":"Please enter a 6-digit PIN code" "text6":"Please enter a 6-digit PIN code",
"text7": "Address",
"text8": "Enter address",
"text9": "Withdrawal amount",
"text10": "At least {par} U",
"text11": "Available balance",
"text12": "Enter PIN code",
"text13": "Network costs",
"text14": "Expected arrival"
}, },
"transfer": { "transfer": {
"title": "Transfer", "title": "Transfer",
"text1":"Please enter the transfer account", "text1":"Please enter the transfer account",
"text2":"Please enter the transfer amount", "text2":"Please enter the transfer amount",
"text3":"", "text3":"PIN code",
"text4":"The transfer amount cannot exceed the account balance", "text4":"The transfer amount cannot exceed the account balance",
"text5":"Please input PIN code", "text5":"Please input PIN code",
"text6":"Please enter a 6-digit PIN code" "text6":"Please enter a 6-digit PIN code",
"text7": "Other email",
"text8": "Enter email address",
"text9": "Transfer amount",
"text10": "At least 1U",
"text11": "Available balance",
"text12": "Expected arrival"
},
"SelectNetwork":{
"title": "Select a network",
"text1": "Please make sure that the recharge network you choose is the same as the network you choose when withdrawing coins, otherwise it may cause loss of assets!",
"text2": "Minimum recharge",
"text3": "inimum Put Forward",
"text4": "Expected to arrive in about 10 minutes"
}, },
"recharge":{ "recharge":{
"title":"Recharge" "title":"Recharge",
"text1": "Network",
"text2": "Rcharge amount",
"text3": "Single latest recharge amount",
"text4": "Receiving Address",
"text5": "Warm tips",
"text6": "Minimum recharge 1 USDT;",
"text7": "Recharge confirmation: 10 times of network confirmation;",
"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 "
},
"wallet":{
"title": "My wallet",
"text1": "My USDT",
"text2": "Accumulated earnings",
"text3": "Cash withdrawn",
"text4": "Wallet fund records",
"text5": "View details"
},
"fundrecords":{
"title": "Wallet fund records",
"text1": "All",
"text2": "Earnings"
},
"results":{
"title": "Results",
"text1": "Network",
"text2": "Expected arrival",
"text3": "Address title",
"text4": "Service charge",
"text5": "Time",
"text6": "Reference number",
"text7": "Under review",
"text8": "Under review, please be patient",
"text9": "Done",
"text10": "Extraction succeeded",
"text11": "Return",
"text12": "Reason:",
"text13": "Failure"
},
"promotion": {
"text1": "Invite",
"text2": "My community",
"text3": "Total team Size",
"text4": "Direct referral headcount",
"text5": "KPI Results-Region",
"text6": "KPI Results-Cell",
"text7": "Direct referral list",
"text8": "View all",
"text9": "Join date",
"text10": "KPI results",
"text11": "Total Team Size"
},
"invite": {
"text1": "Save",
"text2": "Share",
"text3": "Long press to save",
"text4": "Poster download in progress"
},
"promotionList": {
"title": "Direct referral list",
"text1": "Direct referral headcount"
}, },
"address":{ "address":{
"title": "Address book", "title": "Address book",
@ -120,6 +206,15 @@
} }
}, },
"power":{ "power":{
"title":"Computing power" "title": "Computing power",
"text1": "My Power Value Balance",
"text2": "Total Agent",
"text3": "Not finished",
"text4": "Expired",
"text5": "Power record",
"text6": "Warm tips",
"text7": "balance",
"text8": "Unsettled USDT will be automatically taken out upon continued participation.",
"text9": "I got it"
} }
} }

View File

@ -2,26 +2,26 @@
<view class="page"> <view class="page">
<nav-bar :title="$t('power.title')" bgColor="#F5f5f5"></nav-bar> <nav-bar :title="$t('power.title')" bgColor="#F5f5f5"></nav-bar>
<view class="wallet1"> <view class="wallet1">
<view style="width: 400; font-size: 12px; color: #fff;">My Power Value Balance</view> <view style="width: 400; font-size: 12px; color: #fff;">{{$t('power.text1')}}</view>
<view style="width: 500; font-size: 24px; color: #fff; line-height: 55px;">{{power.score.toFixed(4) }}</view> <view style="width: 500; font-size: 24px; color: #fff; line-height: 55px;">{{power.score.toFixed(4) }}</view>
<view style="float: left; width: 30%;"> <view style="float: left; width: 30%;">
<view style="width: 400; font-size: 12px; color: #fff;">Total Agent</view> <view style="width: 400; font-size: 12px; color: #fff;">{{$t('power.text2')}}</view>
<view style="width: 400; font-size: 16px; color: #fff; line-height: 35px;">{{power.total.toFixed(4)}}</view> <view style="width: 400; font-size: 16px; color: #fff; line-height: 35px;">{{power.total.toFixed(4)}}</view>
</view> </view>
<view style="width: 30%; float: left; margin-left: 5%;"> <view style="width: 30%; float: left; margin-left: 5%;">
<view style="width: 400; font-size: 12px; color: #fff; text-align: center;">Not finished</view> <view style="width: 400; font-size: 12px; color: #fff; text-align: center;">{{$t('power.text3')}}</view>
<view style="width: 400; font-size: 16px; color: #fff; line-height: 35px; text-align: center;">{{power.notfinished.toFixed(4)}}</view> <view style="width: 400; font-size: 16px; color: #fff; line-height: 35px; text-align: center;">{{power.notfinished.toFixed(4)}}</view>
</view> </view>
<view style="width: 30%; float: left; margin-left: 5%;"> <view style="width: 30%; float: left; margin-left: 5%;">
<view style="width: 400; font-size: 12px; color: #fff; text-align: right;">Expired</view> <view style="width: 400; font-size: 12px; color: #fff; text-align: right;">{{$t('power.text4')}}</view>
<view style="width: 400; font-size: 16px; color: #fff; line-height: 35px; text-align: right;">{{power.expired.toFixed(4)}}</view> <view style="width: 400; font-size: 16px; color: #fff; line-height: 35px; text-align: right;">{{power.expired.toFixed(4)}}</view>
</view> </view>
<view style="clear: both;"></view> <view style="clear: both;"></view>
</view> </view>
<view style="width: 92%; margin: 10px auto;"> <view style="width: 92%; margin: 10px auto;">
<view class="cell_list"> <view class="cell_list">
<view style="color: #333; font-size: 18px; font-weight: 600;">Power record</view> <view style="color: #333; font-size: 18px; font-weight: 600;">{{$t('power.text5')}}</view>
<view class="cell_right" @click="dialogVisible=true">Warm tips <view class="cell_right" @click="dialogVisible=true">{{$t('power.text6')}}
<uni-icons size="20" type="help-filled" style="float: right; margin-left: 5px;"></uni-icons> <uni-icons size="20" type="help-filled" style="float: right; margin-left: 5px;"></uni-icons>
</view> </view>
</view> </view>
@ -29,23 +29,23 @@
<view class="cell_list" style="border-bottom: 1px solid #ddd;" v-for="item in list" :key="item.id"> <view class="cell_list" style="border-bottom: 1px solid #ddd;" v-for="item in list" :key="item.id">
<view class="t">{{item.type}}<view class="d">{{item.created_at.slice(0, 19)}}</view></view> <view class="t">{{item.type}}<view class="d">{{item.created_at.slice(0, 19)}}</view></view>
<view class=" u1" style="color: #1D61E7; text-align: right;">{{item.amount}} <view class=" u1" style="color: #1D61E7; text-align: right;">{{item.amount}}
<view class="d" style="text-align: right; ">balance{{item.after}}</view></view> <view class="d" style="text-align: right; ">{{$t('power.text7')}}{{item.after}}</view></view>
</view> </view>
<view style="text-align: center; padding-bottom: 80px;" v-if="list.length <= 0"> <view style="text-align: center; padding-bottom: 80px;" v-if="list.length <= 0">
<image style="width: 360rpx; height: 360rpx; margin: 160rpx auto 0rpx auto;" src="/static/images/w5.png" mode="cover"></image> <image style="width: 360rpx; height: 360rpx; margin: 160rpx auto 0rpx auto;" src="/static/images/w5.png" mode="cover"></image>
<view style="color: #999; font-size: 14px; font-weight: 400;">No data available</view> <view style="color: #999; font-size: 14px; font-weight: 400;">{{$t('nodata')}}</view>
</view> </view>
</view> </view>
<Popup v-model="dialogVisible" type="2000" @change="handleClose"> <Popup v-model="dialogVisible" type="2000" @change="handleClose">
<view class="popup_box"> <view class="popup_box">
<view class="popup_title"> <view class="popup_title">
<view style="text-align: center; width: 100%; font-weight: bold;">Warm tips</view> <view style="text-align: center; width: 100%; font-weight: bold;">{{$t('power.text6')}}</view>
</view> </view>
<view class="popup_content" style="margin-top: -3px;"> <view class="popup_content" style="margin-top: -3px;">
<view style="border-bottom: 1px solid #ddd; padding-bottom: 20px; line-height: 25px; text-align: left;">Unsettled USDT will be automatically taken out upon continued participation.</view> <view style="border-bottom: 1px solid #ddd; padding-bottom: 20px; line-height: 25px; text-align: left;">{{$t('power.text8')}}</view>
<view style="margin-top: 10px;"> <view style="margin-top: 10px;">
<view style="width: 100%; text-align: center; color: #1D61E7; font-size: 16px;" @click="onPageJump('/pages/questionnaire/index')">I got it</view> <view style="width: 100%; text-align: center; color: #1D61E7; font-size: 16px;" @click="onPageJump('/pages/questionnaire/index')">{{$t('power.text9')}}</view>
</view> </view>
</view> </view>
</view> </view>

View File

@ -1,40 +1,40 @@
<template> <template>
<view class="minebg"> <view class="minebg">
<nav-bar title="Promotion" bgColor="rgba(255, 0, 0, 0.9);"></nav-bar> <uni-nav-bar title="" backgroundColor="rgba(0, 0, 0, 1);" :shadow="false" :border="false" height="50rpx"></uni-nav-bar>
<view class="v2"> <view class="v2">
<view style="width: 200upx; float: left;" @click="onTokenJump('/pages/mine/info')"> <view style="width: 200upx; float: left;" @click="onTokenJump('/pages/mine/info')">
<image style="width: 80px; height: 80px" :src="url" fit="cover"></image> <image style="width: 80px; height: 80px" :src="url" fit="cover"></image>
</view> </view>
<view class="login" @click="onPageJump('/pages/mine/login')" v-if="!islogin"> <view class="login" @click="onPageJump('/pages/mine/login')" v-if="!islogin">
Login/Register {{$t('mine.text1')}}
</view> </view>
<view class="login1" v-else> <view class="login1" v-else>
<view><span @click="onTokenJump('/pages/mine/info')" class="s">{{user.username}}</span></view> <view><span @click="onTokenJump('/pages/mine/info')" class="s">{{user.username}}</span></view>
<span style="font-size: 14px; font-weight: 400; float: left;">ID{{user.id}}</span> <span style="font-size: 14px; font-weight: 400; float: left;">ID{{user.id}}</span>
<button @click="onTokenJump('/pages/promotion/invite')" style="background-color: #1677FF; color: #fff; font-size: 30rpx; height: 70rpx; line-height: 70rpx; width: 200rpx; float: right;"> <button @click="onTokenJump('/pages/promotion/invite')" style="background-color: #1677FF; color: #fff; font-size: 30rpx; height: 70rpx; line-height: 70rpx; width: 200rpx; float: right;">
<uni-icons size="20" type="gift" style="color: #fff;"></uni-icons>Invite</button> <uni-icons size="20" type="gift" style="color: #fff;"></uni-icons>{{$t('promotion.text1')}}</button>
<image class="i" src="/static/images/copy.png" @click="copy(user.id)" mode="cover"></image> <image class="i" src="/static/images/copy.png" @click="copy(user.id)" mode="cover"></image>
</view> </view>
<view style="clear: both;"></view> <view style="clear: both;"></view>
</view> </view>
<view class="v3"> <view class="v3">
<view style="padding: 0rpx 20rpx;"> <view style="padding: 0rpx 20rpx;">
<view style="font-size: 16px; font-weight: 500; color: #3d3d3d;">My community</view> <view style="font-size: 16px; font-weight: 500; color: #3d3d3d;">{{$t('promotion.text2')}}</view>
<view style="font-weight: 500; padding: 10px 0px; font-size: 14px; color: #999; margin-top: 10px; text-align: center; background-color: #EDF1F3;"> <view style="font-weight: 500; padding: 10px 0px; font-size: 14px; color: #999; margin-top: 10px; text-align: center; background-color: #EDF1F3;">
<view class="cell_list" style="background-color: #EDF1F3; padding: 10px;"> <view class="cell_list" style="background-color: #EDF1F3; padding: 10px;">
<view class="cell_left txt">Total team Size</view> <view class="cell_left txt">{{$t('promotion.text3')}}</view>
<view class="cell_right" style="font-size: 18px; font-weight: 500;">{{team.total_count}}</view> <view class="cell_right" style="font-size: 18px; font-weight: 500;">{{team.total_count}}</view>
</view> </view>
<view class="cell_list" style="background-color: #EDF1F3; padding: 10px;"> <view class="cell_list" style="background-color: #EDF1F3; padding: 10px;">
<view class="cell_left txt">Direct referral headcount</view> <view class="cell_left txt">{{$t('promotion.text4')}}</view>
<view class="cell_right" style="font-size: 18px; font-weight: 500;">{{team.direct_total}}</view> <view class="cell_right" style="font-size: 18px; font-weight: 500;">{{team.direct_total}}</view>
</view> </view>
<view class="cell_list" style="background-color: #EDF1F3; padding: 10px;"> <view class="cell_list" style="background-color: #EDF1F3; padding: 10px;">
<view class="cell_left txt">KPI Results-Region</view> <view class="cell_left txt">{{$t('promotion.text5')}}</view>
<view class="cell_right" style="font-size: 18px; font-weight: 500;">{{parseFloat(team.resultsRegion).toFixed(4)}}</view> <view class="cell_right" style="font-size: 18px; font-weight: 500;">{{parseFloat(team.resultsRegion).toFixed(4)}}</view>
</view> </view>
<view class="cell_list" style="background-color: #EDF1F3; padding: 10px;"> <view class="cell_list" style="background-color: #EDF1F3; padding: 10px;">
<view class="cell_left txt">KPI Results-Cell</view> <view class="cell_left txt">{{$t('promotion.text6')}}</view>
<view class="cell_right" style="font-size: 18px; font-weight: 500;">{{parseFloat(team.resultsCell).toFixed(4)}}</view> <view class="cell_right" style="font-size: 18px; font-weight: 500;">{{parseFloat(team.resultsCell).toFixed(4)}}</view>
</view> </view>
</view> </view>
@ -42,8 +42,8 @@
</view> </view>
<view style="width: 94%; margin: 0px auto;"> <view style="width: 94%; margin: 0px auto;">
<view class="cell_list" style="padding: 15px 10px;"> <view class="cell_list" style="padding: 15px 10px;">
<view style="color: #3d3d3d; font-size: 16px; font-weight: 500;">Direct referral list</view> <view style="color: #3d3d3d; font-size: 16px; font-weight: 500;">{{$t('promotion.text7')}}</view>
<view class="cell_right arrow" style="color: #999;" @click="onPageJump('/pages/promotion/list')">View all</view> <view class="cell_right arrow" style="color: #999;" @click="onPageJump('/pages/promotion/list')">{{$t('promotion.text8')}}</view>
</view> </view>
<uni-row :gutter="10" v-for="(item, index) in list" :key="index" :style="index==0 ? '' : 'margin-top: 30px;'"> <uni-row :gutter="10" v-for="(item, index) in list" :key="index" :style="index==0 ? '' : 'margin-top: 30px;'">
<uni-col :span="6" style="text-align: center;"> <uni-col :span="6" style="text-align: center;">
@ -53,16 +53,16 @@
<view style="font-weight: 500; font-size: 16px; color: #3d3d3d;">{{item.username}}</view> <view style="font-weight: 500; font-size: 16px; color: #3d3d3d;">{{item.username}}</view>
<view style="font-size: 12px; font-weight: 400; color: #999; line-height: 40rpx;"> <view style="font-size: 12px; font-weight: 400; color: #999; line-height: 40rpx;">
ID{{item.id}}<br> ID{{item.id}}<br>
Join date: {{item.created_at}}<br> {{$t('promotion.text9')}}: {{item.created_at}}<br>
KPI results: <span style="color: #333; font-weight: 500; margin-left: 6rpx;"> {{parseFloat(item.performance_large).toFixed(4)}}</span><br> {{$t('promotion.text10')}}: <span style="color: #333; font-weight: 500; margin-left: 6rpx;"> {{parseFloat(item.performance_large).toFixed(4)}}</span><br>
Total Team Size: <span style="color: #333; font-weight: 500; margin-left: 6rpx;"> {{item.total_count}}</span> {{$t('promotion.text11')}}: <span style="color: #333; font-weight: 500; margin-left: 6rpx;"> {{item.total_count}}</span>
</view> </view>
</uni-col> </uni-col>
</uni-row> </uni-row>
<view style="text-align: center; padding-bottom: 80px;" v-if="list.length <= 0"> <view style="text-align: center; padding-bottom: 80px;" v-if="list.length <= 0">
<image style="width: 360rpx; height: 180px; margin: 50rpx auto 0rpx auto;" src="/static/images/w5.png" fit="cover"></image> <image style="width: 360rpx; height: 180px; margin: 50rpx auto 0rpx auto;" src="/static/images/w5.png" fit="cover"></image>
<view style="color: #999; font-size: 14px; font-weight: 400;">No data available</view> <view style="color: #999; font-size: 14px; font-weight: 400;">{{$t('nodata')}}</view>
</view> </view>
</view> </view>
</view> </view>
@ -107,7 +107,7 @@
// //
onShow(e) { onShow(e) {
uni.showLoading({ uni.showLoading({
title:'Array loading...' title:'Data Loading...'
}) })
if(this.userInfo.token === typeof(undefined) || this.userInfo.token === undefined){ if(this.userInfo.token === typeof(undefined) || this.userInfo.token === undefined){
this.islogin = false; this.islogin = false;
@ -205,7 +205,7 @@
float: right; margin-top: 10upx; padding-right: 20upx; float: right; margin-top: 10upx; padding-right: 20upx;
} }
.minebg .v2{ .minebg .v2{
clear: both; width: 90vw; margin: auto; padding-top: 20px; clear: both; width: 90vw; margin: auto; padding-top: 20rpx;
} }
.minebg .v2 .login{ .minebg .v2 .login{
width: 260upx; float: left; font-size: 16pt; font-weight: 700; height:160upx; line-height: 160upx; width: 260upx; float: left; font-size: 16pt; font-weight: 700; height:160upx; line-height: 160upx;

View File

@ -27,11 +27,11 @@
<view style="padding: 0px 10%;"> <view style="padding: 0px 10%;">
<button type="primary" class="b1" @click="onSaveImg"> <button type="primary" class="b1" @click="onSaveImg">
<uni-icons type="download" size="20" color="#fff"></uni-icons> <uni-icons type="download" size="20" color="#fff"></uni-icons>
<text style="margin-left: 10rpx;">Save</text> <text style="margin-left: 10rpx;">{{$t('invite.text1')}}</text>
</button> </button>
<button type="primary" class="b2" @click="copy()"> <button type="primary" class="b2" @click="copy()">
<uni-icons type="undo" size="20" color="#000"></uni-icons> <uni-icons type="undo" size="20" color="#000"></uni-icons>
<text style="margin-left: 10rpx;">Share</text> <text style="margin-left: 10rpx;">{{$t('invite.text2')}}</text>
</button> </button>
</view> </view>
</view> </view>
@ -39,7 +39,7 @@
<view class="h5_press_save" v-if="h5SaveImg" @click="h5SaveImg = ''"> <view class="h5_press_save" v-if="h5SaveImg" @click="h5SaveImg = ''">
<image :src="h5SaveImg" mode="widthFix"></image> <image :src="h5SaveImg" mode="widthFix"></image>
<button class="download"><uni-icons type="download" size="20" color="#fff"></uni-icons> <button class="download"><uni-icons type="download" size="20" color="#fff"></uni-icons>
长按图片保存图片</button> {{$t('invite.text3')}}</button>
</view> </view>
<!-- #endif --> <!-- #endif -->
</view> </view>
@ -66,10 +66,10 @@
swiperIndex: 0, swiperIndex: 0,
posterImgs: [], posterImgs: [],
shareInfo: { shareInfo: {
shareContent: "商家云系统,点击了解", shareContent: "",
shareImg: "http://qn.kemean.cn/upload/202004/08/15863540965488mlv1qgj.png", shareImg: "http://qn.kemean.cn/upload/202004/08/15863540965488mlv1qgj.png",
shareTitle: "商家云", shareTitle: "",
shareUrl: "http://kemean.com/download/3jiayunbz/index.html" shareUrl: ""
}, },
h5SaveImg: "", h5SaveImg: "",
@ -85,7 +85,7 @@
icon: '', // icon: '', //
iconsize: 30, // iconsize: 30, //
lv: 3, // lv: 3, //
loadingText: '加载中', //loading, loadingText: 'Loading', //loading,
result: '' result: ''
} }
}, },
@ -108,7 +108,7 @@
methods: { methods: {
copy() { copy() {
this.$copyText(this.qrcode).then(res => { this.$copyText(this.qrcode).then(res => {
uni.showToast({title: '复制成功', icon: 'none'}); uni.showToast({title: this.$t('copySuccess'), icon: 'none'});
}); });
}, },
qrResult(e) { qrResult(e) {
@ -234,7 +234,7 @@
success: () => { success: () => {
uni.hideLoading(); uni.hideLoading();
uni.showToast({ uni.showToast({
title: '保存成功' title: 'Successfully'
}); });
} }
}); });
@ -244,7 +244,7 @@
// #endif // #endif
// #ifdef APP-PLUS // #ifdef APP-PLUS
uni.showLoading({ uni.showLoading({
title: 'Poster download in progress' title: this.$t('invite.text4')
}); });
uni.saveImageToPhotosAlbum({ uni.saveImageToPhotosAlbum({
filePath: imgUrl, filePath: imgUrl,

View File

@ -1,10 +1,10 @@
<template> <template>
<view class="page"> <view class="page">
<nav-bar title="Direct referral list" bgColor="#F5f5f5"></nav-bar> <nav-bar :title="$t('promotionList.title')" bgColor="#F5f5f5"></nav-bar>
<uni-row :gutter="0"> <uni-row :gutter="0">
<uni-col :span="24"> <uni-col :span="24">
<view class="wallet1"> <view class="wallet1">
<view style="width: 400; font-size: 12px; color: #fff;">Direct referral headcount</view> <view style="width: 400; font-size: 12px; color: #fff;">{{$t('promotionList.text1')}}</view>
<view style="width: 500; font-size: 24px; color: #fff; line-height: 55px;">{{parseFloat(this.team.direct_total).toFixed(4)}}</view> <view style="width: 500; font-size: 24px; color: #fff; line-height: 55px;">{{parseFloat(this.team.direct_total).toFixed(4)}}</view>
</view> </view>
</uni-col> </uni-col>
@ -21,9 +21,9 @@
<view style="font-weight: 500; font-size: 16px; color: #3d3d3d;">{{item.username}}</view> <view style="font-weight: 500; font-size: 16px; color: #3d3d3d;">{{item.username}}</view>
<view style="font-size: 12px; font-weight: 400; color: #999; line-height: 40rpx;"> <view style="font-size: 12px; font-weight: 400; color: #999; line-height: 40rpx;">
ID{{item.id}}<br> ID{{item.id}}<br>
Join date: {{item.created_at}}<br> {{$t('promotion.text9')}}: {{item.created_at}}<br>
KPI results: <span style="color: #333; font-weight: 500; margin-left: 6rpx;">{{parseFloat(item.performance_large).toFixed(4)}}</span><br> {{$t('promotion.text10')}}: <span style="color: #333; font-weight: 500; margin-left: 6rpx;">{{parseFloat(item.performance_large).toFixed(4)}}</span><br>
Total Team Size: <span style="color: #333; font-weight: 500; margin-left: 6rpx;">{{item.total_count}}</span> {{$t('promotion.text11')}}: <span style="color: #333; font-weight: 500; margin-left: 6rpx;">{{item.total_count}}</span>
</view> </view>
</uni-col> </uni-col>
</uni-row> </uni-row>

View File

@ -1,6 +1,6 @@
<template> <template>
<view class="page"> <view class="page">
<nav-bar title="Details" bgColor="#fff"></nav-bar> <nav-bar :title="$t('results.title')" bgColor="#fff"></nav-bar>
<view style="width: 92%; margin: 10px auto; padding: 15px 10px; text-align: center;"> <view style="width: 92%; margin: 10px auto; padding: 15px 10px; text-align: center;">
<image style="width: 100px; height: 100px; margin: 10px auto;" :src="resultsModel.images" mode="cover"></image> <image style="width: 100px; height: 100px; margin: 10px auto;" :src="resultsModel.images" mode="cover"></image>
<view style="font-size: 28px; font-weight: 600; color: #333; margin-top: 10px;">-{{parseFloat(info.recive_amount).toFixed(4)}} USDT</view> <view style="font-size: 28px; font-weight: 600; color: #333; margin-top: 10px;">-{{parseFloat(info.recive_amount).toFixed(4)}} USDT</view>
@ -9,15 +9,15 @@
</view> </view>
<view style=" width:100vw;"> <view style=" width:100vw;">
<view class="cell_list"> <view class="cell_list">
<view class="cell_left txt">Network</view> <view class="cell_left txt">{{$t('results.text1')}}</view>
<view class="cell_right ">{{info.network}}</view> <view class="cell_right ">{{info.network}}</view>
</view> </view>
<view class="cell_list"> <view class="cell_list">
<view class="cell_left txt">Expected arrival</view> <view class="cell_left txt">{{$t('results.text2')}}</view>
<view class="cell_right">Put forward</view> <view class="cell_right">{{$t('putforward.title')}}</view>
</view> </view>
<view class="cell_list"> <view class="cell_list">
<view class="cell_left txt">Address title</view> <view class="cell_left txt">{{$t('results.text3')}}</view>
<view class="cell_right" style="padding-left: 15%;"> <view class="cell_right" style="padding-left: 15%;">
<span style="float: right; right: 0; white-space: pre-wrap; word-break: break-all; text-align: right;"> <span style="float: right; right: 0; white-space: pre-wrap; word-break: break-all; text-align: right;">
{{info.address}}</span> {{info.address}}</span>
@ -25,15 +25,15 @@
--> </view> --> </view>
</view> </view>
<view class="cell_list"> <view class="cell_list">
<view class="cell_left txt">Service charge</view> <view class="cell_left txt">{{$t('results.text4')}}</view>
<view class="cell_right">{{parseFloat(info.fee).toFixed(2)}} USDT</view> <view class="cell_right">{{parseFloat(info.fee).toFixed(2)}} USDT</view>
</view> </view>
<view class="cell_list"> <view class="cell_list">
<view class="cell_left txt">Time</view> <view class="cell_left txt">{{$t('results.text5')}}</view>
<view class="cell_right">{{info.created_at}}</view> <view class="cell_right">{{info.created_at}}</view>
</view> </view>
<view class="cell_list"> <view class="cell_list">
<view class="cell_left txt">Reference number</view> <view class="cell_left txt">{{$t('results.text6')}}</view>
<view class="cell_right" style="text-align: right;">{{info.id}} <view class="cell_right" style="text-align: right;">{{info.id}}
<image style="width: 30rpx; height: 30rpx;" src="/static/images/copy.png" @click="copy(info.id)" mode="cover"></image> <image style="width: 30rpx; height: 30rpx;" src="/static/images/copy.png" @click="copy(info.id)" mode="cover"></image>
</view> </view>
@ -58,8 +58,8 @@
return { return {
network:'trc20', network:'trc20',
resultsModel:{ resultsModel:{
status:"Under review", status: this.$t('results.text7'),
txt:"Under review, please be patient", txt: this.$t('results.text8'),
images:"/static/images/p1.png", images:"/static/images/p1.png",
statuscolor:'#1D61E7' statuscolor:'#1D61E7'
}, },
@ -79,32 +79,32 @@
case 0: case 0:
case 1: // case 1: //
this.resultsModel={ this.resultsModel={
status:"Under review", status: this.$t('results.text7'),
txt:"Under review, please be patient", txt: this.$t('results.text8'),
images:"/static/images/p1.png", images:"/static/images/p1.png",
statuscolor:'#1D61E7' statuscolor:'#1D61E7'
} }
break; break;
case 2: // case 2: //
this.resultsModel={ this.resultsModel={
status:"Done", status: this.$t('results.text9'),
txt:"Extraction succeeded", txt: this.$t('results.text10'),
images:"/static/images/p3.png", images:"/static/images/p3.png",
statuscolor:'#333333' statuscolor:'#333333'
} }
break; break;
case -1: // case -1: //
this.resultsModel={ this.resultsModel={
status:"Return", status: this.$t('results.text11'),
txt:"Reason: " + res.data.memo, txt: this.$t('results.text12') + res.data.memo,
images:"/static/images/p4.png", images:"/static/images/p4.png",
statuscolor:'#F03F61' statuscolor:'#F03F61'
} }
break; break;
case -2: // case -2: //
this.resultsModel={ this.resultsModel={
status:"Failure", status: this.$t('results.text13'),
txt:"Reason: " + res.data.memo, txt: this.$t('results.text12') + res.data.memo,
images:"/static/images/p2.png", images:"/static/images/p2.png",
statuscolor:'#F03F61' statuscolor:'#F03F61'
} }

View File

@ -1,7 +1,7 @@
<template> <template>
<view class="page"> <view class="page">
<nav-bar title="Wallet fund records" bgColor="#F3F3F3"></nav-bar> <nav-bar :title="$t('fundrecords.title')" bgColor="#F3F3F3"></nav-bar>
<view class="content"> <view class="content">
<view class="nav"> <view class="nav">
<!-- 选项卡水平方向滑动scroll-with-animation是滑动到下一个选项时有一个延时效果 --> <!-- 选项卡水平方向滑动scroll-with-animation是滑动到下一个选项时有一个延时效果 -->
@ -38,7 +38,7 @@
</view> </view>
<view style="width: 92%; margin: auto;"> <view style="width: 92%; margin: auto;">
<view class="cell_list" style="border-bottom: 1px solid #ddd;" v-if="list.length > 0" v-for="(n, index) in list" v-bind:key="index"> <view class="cell_list" style="border-bottom: 1px solid #ddd;" v-if="list.length > 0" v-for="(n, index) in list" v-bind:key="index">
<template v-if="n.name == 'Recharge'"> <template v-if="n.name == $t('recharge.title')">
<view class="d"> <view class="d">
{{n.name}}<view class="d1">{{n.created_at}}</view> {{n.name}}<view class="d1">{{n.created_at}}</view>
</view> </view>
@ -48,7 +48,7 @@
<view class="d" style="text-align: right; color: #1D61E7;">{{ recharge_status_list[n.status]}}</view> <view class="d" style="text-align: right; color: #1D61E7;">{{ recharge_status_list[n.status]}}</view>
</view> </view>
</template> </template>
<template v-else-if="n.name == 'Put forward'"> <template v-else-if="n.name == $t('putforward.title')">
<view class="d"> <view class="d">
{{n.name}}<view class="d1">{{ n.created_at}}</view> {{n.name}}<view class="d1">{{ n.created_at}}</view>
</view> </view>
@ -69,7 +69,7 @@
</view> </view>
<view style="text-align: center; padding-bottom: 80px;" v-if="list.length <= 0"> <view style="text-align: center; padding-bottom: 80px;" v-if="list.length <= 0">
<image style="width: 360rpx; height: 180px; margin: 160rpx auto 0rpx auto;" src="/static/images/w5.png" fit="cover"></image> <image style="width: 360rpx; height: 180px; margin: 160rpx auto 0rpx auto;" src="/static/images/w5.png" fit="cover"></image>
<view style="color: #999; font-size: 14px; font-weight: 400;">No data available</view> <view style="color: #999; font-size: 14px; font-weight: 400;">{{$t('nodata')}}</view>
</view> </view>
</view> </view>
</view> </view>
@ -94,11 +94,11 @@
index: 0, index: 0,
currentindex:0, currentindex:0,
category:[ category:[
{id:1,name:'All',}, {id:1,name: this.$t('fundrecords.text1'),},
{id:2,name:'Earnings',}, {id:2,name: this.$t('fundrecords.text2'),},
{id:3,name:'Recharge',}, {id:3,name: this.$t('recharge.title'),},
{id:4,name:'Put forward',}, {id:4,name: this.$t('putforward.title'),},
{id:5,name:'Transfer',} {id:5,name: this.$t('transfer.title'),}
], ],
contentScrollW: 0, // contentScrollW: 0, //
scrollLeft: 0, // scrollLeft: 0, //
@ -138,7 +138,7 @@
// //
onLoad(e) { onLoad(e) {
uni.showLoading({ uni.showLoading({
title: 'Array loading...' title: 'Data Loading...'
}); });
if(e.id != typeof(undefined) && e.id != undefined){ if(e.id != typeof(undefined) && e.id != undefined){
this.isActive = e.id; this.isActive = e.id;
@ -148,7 +148,7 @@
this.init = res.data; this.init = res.data;
this.withdrawl_status_list = res.data.withdrawl_status_list; this.withdrawl_status_list = res.data.withdrawl_status_list;
this.recharge_status_list = res.data.recharge_status_list; this.recharge_status_list = res.data.recharge_status_list;
this.items.push('全部'); this.items.push(this.$t('fundrecords.text1'));
const entries = Object.entries(res.data.balance_type_list); // [['key1', 'value1'], ['key2', 'value2'], ['key3', 'value3']] const entries = Object.entries(res.data.balance_type_list); // [['key1', 'value1'], ['key2', 'value2'], ['key3', 'value3']]
entries.forEach(([key, value]) => { entries.forEach(([key, value]) => {
this.items.push(value); this.items.push(value);
@ -195,7 +195,7 @@
} }
this.isload = true; this.isload = true;
uni.showLoading({ uni.showLoading({
title: 'Array loading...' title: this.$t('loading')
}); });
this.isActive = index; this.isActive = index;
this.scrollLeft = 0; this.scrollLeft = 0;
@ -231,7 +231,7 @@
}, },
onPickerChange(e) { onPickerChange(e) {
uni.showLoading({ uni.showLoading({
title: 'Array loading...' title: this.$t('loading')
}); });
this.list = []; this.list = [];
this.selectedItem = this.items[e.detail.value]; this.selectedItem = this.items[e.detail.value];
@ -241,14 +241,14 @@
this.select.type = key; this.select.type = key;
} }
}); });
if(this.selectedItem == '全部'){ if(this.selectedItem == this.$t('fundrecords.text1')){
this.select.type = ''; this.select.type = '';
} }
this.getList(); this.getList();
}, },
datachange(e){ datachange(e){
uni.showLoading({ uni.showLoading({
title: 'Array loading...' title: this.$t('loading')
}); });
this.list = []; this.list = [];
if(e.length > 1){ if(e.length > 1){
@ -299,7 +299,7 @@
this.$http.post('/api/recharge/list', this.select).then(res => { this.$http.post('/api/recharge/list', this.select).then(res => {
if(res.code == 0){ if(res.code == 0){
res.data.data.forEach(item => { res.data.data.forEach(item => {
item.name = 'Recharge'; item.name = this.$t('recharge.title');
this.list.push(item); this.list.push(item);
}); });
this.last_page = res.data.last_page; this.last_page = res.data.last_page;
@ -315,7 +315,7 @@
this.$http.post('/api/withdrawl/list', this.select).then(res => { this.$http.post('/api/withdrawl/list', this.select).then(res => {
if(res.code == 0){ if(res.code == 0){
res.data.data.forEach(item => { res.data.data.forEach(item => {
item.name = 'Put forward'; item.name = this.$t('putforward.title');
this.list.push(item); this.list.push(item);
}); });
this.last_page = res.data.last_page; this.last_page = res.data.last_page;

View File

@ -1,15 +1,15 @@
<template> <template>
<view class="page"> <view class="page">
<nav-bar title="My wallet" bgColor="#F5f5f5"></nav-bar> <nav-bar :title="$t('wallet.title')" bgColor="#F5f5f5"></nav-bar>
<view class="wallet1"> <view class="wallet1">
<view class="txt">My USDT</view> <view class="txt">{{$t('wallet.text1')}}</view>
<view style="width: 500; font-size: 24px; color: #fff; line-height: 55px;">{{user.money.toFixed(4)}}</view> <view style="width: 500; font-size: 24px; color: #fff; line-height: 55px;">{{user.money.toFixed(4)}}</view>
<view style="width: 47%; float: left;"> <view style="width: 47%; float: left;">
<view class="txt">Accumulated earnings</view> <view class="txt">{{$t('wallet.text2')}}</view>
<view class="txt1">{{user.income_total.toFixed(4)}}</view> <view class="txt1">{{user.income_total.toFixed(4)}}</view>
</view> </view>
<view style="width: 47%; float: left; margin-left: 6%;"> <view style="width: 47%; float: left; margin-left: 6%;">
<view class="txt">Cash withdrawn</view> <view class="txt">{{$t('wallet.text3')}}</view>
<view class="txt1">{{user.withdrawl_total.toFixed(4)}}</view> <view class="txt1">{{user.withdrawl_total.toFixed(4)}}</view>
</view> </view>
<view style="clear: both;"></view> <view style="clear: both;"></view>
@ -19,26 +19,26 @@
<view class="w" @click="onTokenJump('/pages/wallet/recharge')"> <view class="w" @click="onTokenJump('/pages/wallet/recharge')">
<view style="text-align: center;"> <view style="text-align: center;">
<image style="width: 25px; height: 25px; margin: auto;" src="/static/images/w3.png" mode="cover"></image></view> <image style="width: 25px; height: 25px; margin: auto;" src="/static/images/w3.png" mode="cover"></image></view>
<view class="t">Recharge</view> <view class="t">{{$t('recharge.title')}}</view>
</view> </view>
</view> </view>
<view style="width: 30%; float: left; margin-left: 5%;"> <view style="width: 30%; float: left; margin-left: 5%;">
<view class="w" @click="onTokenJump('/pages/wallet/putforward')"> <view class="w" @click="onTokenJump('/pages/wallet/putforward')">
<view style="text-align: center;"><image style="width: 25px; height: 25px; margin: auto;" src="/static/images/w2.png" mode="cover"></image></view> <view style="text-align: center;"><image style="width: 25px; height: 25px; margin: auto;" src="/static/images/w2.png" mode="cover"></image></view>
<view class="t">Put forward</view> <view class="t">{{$t('putforward.title')}}</view>
</view> </view>
</view> </view>
<view style="width: 30%; float: left; margin-left: 5%;"> <view style="width: 30%; float: left; margin-left: 5%;">
<view class="w" @click="onTokenJump('/pages/wallet/transfer')"> <view class="w" @click="onTokenJump('/pages/wallet/transfer')">
<view style="text-align: center;"><image style="width: 25px; height: 25px; margin: auto;" src="/static/images/w4.png" fit="cover"></image></view> <view style="text-align: center;"><image style="width: 25px; height: 25px; margin: auto;" src="/static/images/w4.png" fit="cover"></image></view>
<view class="t">Transfer</view> <view class="t">{{$t('transfer.title')}}</view>
</view> </view>
</view> </view>
</view> </view>
<view style="width: 92%; margin: 10px auto;"> <view style="width: 92%; margin: 10px auto;">
<view class="cell_list"> <view class="cell_list">
<view style="color: #333; font-size: 18px; font-weight: 600;">Wallet fund records</view> <view style="color: #333; font-size: 18px; font-weight: 600;">{{$t('wallet.text4')}}</view>
<view class="cell_right arrow" @click="onTokenJump('/pages/wallet/fundrecords')">View details</view> <view class="cell_right arrow" @click="onTokenJump('/pages/wallet/fundrecords')">{{$t('wallet.text5')}}</view>
</view> </view>
<view class="cell_list" style="border-bottom: 1px solid #ddd;" v-if="list.length > 0" v-for="item in list" :key="item.id"> <view class="cell_list" style="border-bottom: 1px solid #ddd;" v-if="list.length > 0" v-for="item in list" :key="item.id">
<view class="t">{{item.type}}<view class="d1">{{item.created_at.slice(0, 19)}}</view></view> <view class="t">{{item.type}}<view class="d1">{{item.created_at.slice(0, 19)}}</view></view>
@ -51,7 +51,7 @@
<view style="width: 360rpx; height: 360rpx; margin: 160rpx auto 0rpx auto;"> <view style="width: 360rpx; height: 360rpx; margin: 160rpx auto 0rpx auto;">
<image src="/static/images/w5.png" style="width: 360rpx; height: 360rpx; " mode="cover"></image> <image src="/static/images/w5.png" style="width: 360rpx; height: 360rpx; " mode="cover"></image>
</view> </view>
<view style="color: #999; font-size: 14px; font-weight: 400;">No data available</view> <view style="color: #999; font-size: 14px; font-weight: 400;">{{$t('nodata')}}</view>
</view> </view>
</view> </view>
</view> </view>

View File

@ -1,13 +1,13 @@
<template> <template>
<view class="page"> <view class="page">
<nav-bar title="Put forward" bgColor="#fff"> <nav-bar :title="$t('putforward.title')" bgColor="#fff">
<image slot="right" style="width: 40rpx; height: 40rpx; margin-right: 20px;" src="/static/images/r2.png" mode="cover" @click="onTokenJump('/pages/wallet/fundrecords?id=3')"></image> <image slot="right" style="width: 40rpx; height: 40rpx; margin-right: 20px;" src="/static/images/r2.png" mode="cover" @click="onTokenJump('/pages/wallet/fundrecords?id=3')"></image>
</nav-bar> </nav-bar>
<view style="width: 92%; margin: 10px auto; padding: 15px 10px;"> <view style="width: 92%; margin: 10px auto; padding: 15px 10px;">
<uni-forms :modelValue="putmodel" label-position="top" :rules="rules" ref="form"> <uni-forms :modelValue="putmodel" label-position="top" :rules="rules" ref="form">
<uni-forms-item name="address"> <uni-forms-item name="address">
<view style="padding-bottom: 10px;"> <view style="padding-bottom: 10px;">
<view style="float: left; font-size: 16px; color: #333; font-weight: 400;">Address</view> <view style="float: left; font-size: 16px; color: #333; font-weight: 400;">{{$t('putforward.text7')}}</view>
<view style="float: right; font-size: 14px; color: #333; font-weight: 400;" @click="onPageJump('/pages/wallet/switchnetwork')"> <view style="float: right; font-size: 14px; color: #333; font-weight: 400;" @click="onPageJump('/pages/wallet/switchnetwork')">
<image style="width: 18px; height: 18px; float: left;" v-if="network=='TRC-20'" src="/static/images/s1.png" mode="cover"></image> <image style="width: 18px; height: 18px; float: left;" v-if="network=='TRC-20'" src="/static/images/s1.png" mode="cover"></image>
<span style="margin-left: 10px; float: left;" v-if="network=='TRC-20'">Tron(TRC20)</span> <span style="margin-left: 10px; float: left;" v-if="network=='TRC-20'">Tron(TRC20)</span>
@ -18,7 +18,7 @@
<view style="clear: both;"></view> <view style="clear: both;"></view>
</view> </view>
<view> <view>
<uni-easyinput type="text" v-model="putmodel.address" placeholder="Enter address"> <uni-easyinput type="text" v-model="putmodel.address" :placeholder="$t('putforward.text8')">
<template #right> <template #right>
<picker :range="formattedItems" mode="selector" @change="onPickerChange"> <picker :range="formattedItems" mode="selector" @change="onPickerChange">
<image src="/static/images/r4.png" style="float: left; width: 40rpx; height: 40rpx; margin-right: 20rpx;"></image> <image src="/static/images/r4.png" style="float: left; width: 40rpx; height: 40rpx; margin-right: 20rpx;"></image>
@ -27,9 +27,9 @@
</uni-easyinput> </uni-easyinput>
</view> </view>
</uni-forms-item> </uni-forms-item>
<uni-forms-item label="Withdrawal amount" labelWidth="400rpx" name="amount"> <uni-forms-item :label="$t('putforward.text9')" labelWidth="400rpx" name="amount">
<view> <view>
<uni-easyinput type="number" v-model="putmodel.amount" :placeholder="'At least ' + withdrawlminimum + ' U'"> <uni-easyinput type="number" v-model="putmodel.amount" :placeholder="$t('putforward.text10', {par: withdrawlminimum})">
<template #right> <template #right>
<view style="float: left; font-size: 12px;">USDT</view> <view style="float: left; font-size: 12px;">USDT</view>
<view style="margin:20rpx; float: right;"> <view style="margin:20rpx; float: right;">
@ -37,25 +37,25 @@
</template> </template>
</uni-easyinput> </uni-easyinput>
</view> </view>
<view style="font-size: 14px; color: #999; font-weight: 500; line-height: 50upx;">Available balance <view style="font-size: 14px; color: #999; font-weight: 500; line-height: 50upx;">{{$t('putforward.text11')}}
<span style="color: #1D61E7;">{{user.money }} USDT</span></view> <span style="color: #1D61E7;">{{user.money }} USDT</span></view>
</uni-forms-item> </uni-forms-item>
<uni-forms-item label="PIN code" name="pincode"> <uni-forms-item label="PIN code" name="pincode">
<uni-easyinput type="password" :passwordIcon="true" v-model="putmodel.pincode" placeholder="Enter PIN code" /> <uni-easyinput type="password" :passwordIcon="true" v-model="putmodel.pincode" :placeholder="$t('putforward.text12')" />
</uni-forms-item> </uni-forms-item>
</uni-forms> </uni-forms>
</view> </view>
<view style="bottom: 0px; position: absolute; width:100vw; height: 180px;"> <view style="bottom: 0px; position: absolute; width:100vw; height: 180px;">
<view class="cell_list"> <view class="cell_list">
<view class="cell_left txt">Network costs</view> <view class="cell_left txt">{{$t('putforward.text13')}}</view>
<view class="cell_right ">{{costs}} USDT</view> <view class="cell_right ">{{costs}} USDT</view>
</view> </view>
<view class="cell_list"> <view class="cell_list">
<view class="cell_left txt">Expected arrival</view> <view class="cell_left txt">{{$t('putforward.text14')}}</view>
<view class="cell_right" style="font-size: 18px; font-weight: 600;">{{totalAmount}} USDT</view> <view class="cell_right" style="font-size: 18px; font-weight: 600;">{{totalAmount}} USDT</view>
</view> </view>
<view class="cell_list"> <view class="cell_list">
<button type="primary" round style="width: 100%;" @click="submit">Submit</button> <button type="primary" round style="width: 100%;" @click="submit">{{$t('buttonSubmit')}}</button>
</view> </view>
</view> </view>
</view> </view>
@ -118,7 +118,7 @@
} }
}, },
// //
async onLoad(e) { async onLoad(e) {
this.$http.get('/api/common/init?lang='+this.$i18n.locale).then(res => { this.$http.get('/api/common/init?lang='+this.$i18n.locale).then(res => {
this.init = res.data; this.init = res.data;
if(e.network != typeof(undefined) && e.network != undefined){ if(e.network != typeof(undefined) && e.network != undefined){

View File

@ -1,23 +1,23 @@
<template> <template>
<view class="page"> <view class="page">
<nav-bar title="Recharge" bgColor="#fff"> <nav-bar :title="$t('recharge.title')" bgColor="#fff">
<image slot="right" style="width: 40rpx; height: 40rpx; margin-right: 20px;" src="/static/images/r2.png" mode="cover" @click="onTokenJump('/pages/wallet/fundrecords?id=2')"></image> <image slot="right" style="width: 40rpx; height: 40rpx; margin-right: 20px;" src="/static/images/r2.png" mode="cover" @click="onTokenJump('/pages/wallet/fundrecords?id=2')"></image>
</nav-bar> </nav-bar>
<view class="rechargeTitle">Network</view> <view class="rechargeTitle">{{$t('recharge.text1')}}</view>
<view class="rechargeNet" @click="onPageJump('/pages/wallet/switchnetwork')">{{rechargeModel.name}} <view class="rechargeNet" @click="onPageJump('/pages/wallet/switchnetwork')">{{rechargeModel.name}}
<uni-icons size="20" type="down" style="margin-left: 10px;"></uni-icons></view> <uni-icons size="20" type="down" style="margin-left: 10px;"></uni-icons></view>
<view v-if="show==1" style="width: 80vw; margin: 40rpx auto 20rpx auto;"> <view v-if="show==1" style="width: 80vw; margin: 40rpx auto 20rpx auto;">
<uni-forms :modelValue="rechargeModel" label-position="left"> <uni-forms :modelValue="rechargeModel" label-position="left">
<uni-forms-item label="Rcharge amount" labelWidth="250rpx"> <uni-forms-item :label="$t('recharge.text2')" labelWidth="250rpx">
<view> <view>
<uni-easyinput type="number" v-model="rechargeModel.amount" :placeholder="'At least'+ init.recharge_minimum +'U'"> <uni-easyinput type="number" v-model="rechargeModel.amount" :placeholder="$t('putforward.text10', {par: init.recharge_minimum})">
<template #right> <template #right>
<view style="float: left; font-size: 12px; margin-right: 20rpx;">USDT</view> <view style="float: left; font-size: 12px; margin-right: 20rpx;">USDT</view>
</template> </template>
</uni-easyinput> </uni-easyinput>
</view> </view>
</uni-forms-item> </uni-forms-item>
<button type="primary" round style="width: 100%;" @click="submit">Recharge</button> <button type="primary" round style="width: 100%;" @click="submit">{{$t('recharge.title')}}</button>
</uni-forms> </uni-forms>
</view> </view>
<view v-if="show==2"> <view v-if="show==2">
@ -26,27 +26,27 @@
<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' /> <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> </view>
<view style="font-size: 16px; color: #999; text-align: center;">Single latest recharge amount {{init.recharge_minimum}} USDT</view> <view style="font-size: 16px; color: #999; text-align: center;">{{$t('recharge.text3')}} {{init.recharge_minimum}} USDT</view>
<view style="width: 92%; margin: 10px auto; background-color: #F8F8F8; padding: 15px 10px;"> <view style="width: 92%; margin: 10px auto; background-color: #F8F8F8; padding: 15px 10px;">
<view style="width: 70%; float: left;"> <view style="width: 70%; float: left;">
<view style="color: #999; font-size: 14px;">Receiving Address</view> <view style="color: #999; font-size: 14px;">{{$t('recharge.text4')}}</view>
<view style="width: 100%; font-size: 16px; color: #333; font-weight: 600; margin-top: 10px; white-space: pre-wrap; word-break: break-all;">{{qrcode}}</view> <view style="width: 100%; font-size: 16px; color: #333; font-weight: 600; margin-top: 10px; white-space: pre-wrap; word-break: break-all;">{{qrcode}}</view>
</view> </view>
<view> <view>
<button type="primary" @click="copy(qrcode)" style="background-color: #1D61E7; margin-top: 25px; padding: 0px 20px; line-height: 35px; border-radius: 10px; color: #fff; float: right;">Copy</button> <button type="primary" @click="copy(qrcode)" style="background-color: #1D61E7; margin-top: 25px; padding: 0px 20px; line-height: 35px; border-radius: 10px; color: #fff; float: right;">{{$t('copy')}}</button>
</view> </view>
<view style="clear: both;"></view> <view style="clear: both;"></view>
</view> </view>
</view> </view>
<view style="width: 92%; margin: 10px auto;"> <view style="width: 92%; margin: 10px auto;">
<view class="cell_list"> <view class="cell_list">
<view style="color: #333; font-size: 18px; font-weight: 600;">Warm tips</view> <view style="color: #333; font-size: 18px; font-weight: 600;">{{$t('recharge.text5')}}</view>
</view> </view>
<view style="color: #999; line-height: 30px; font-size: 16px; font-weight: 400; padding: 5px 10px;"> <view style="color: #999; line-height: 30px; font-size: 16px; font-weight: 400; padding: 5px 10px;">
1. Minimum recharge 1 USDT;<br> 1. {{$t('recharge.text6')}}<br>
2. Recharge confirmation: 10 times of network confirmation;<br> 2. {{$t('recharge.text7')}}<br>
3. Please do not recharge assets other than USDT to the above address, otherwise it may lead to the loss of assets.<br> 3. {{$t('recharge.text8')}}<br>
4. Please ensure the security of your mobile device to prevent information from being tampered with or leaked. 4. {{$t('recharge.text9')}}
</view> </view>
</view> </view>
</view> </view>
@ -130,14 +130,14 @@
if(this.rechargeModel.amount == ''){ if(this.rechargeModel.amount == ''){
uni.showToast({ uni.showToast({
icon: 'error', icon: 'error',
title: 'Please enter the recharge amount' title: this.$t('recharge.text10')
}); });
return; return;
} }
if (parseFloat(this.rechargeModel.amount) < parseFloat(this.init.recharge_minimum)) { if (parseFloat(this.rechargeModel.amount) < parseFloat(this.init.recharge_minimum)) {
uni.showToast({ uni.showToast({
icon: 'error', icon: 'error',
title: 'The minimum recharge amount is ' + this.init.recharge_minimum title: this.$t('recharge.text11') + this.init.recharge_minimum
}); });
return; return;
} }

View File

@ -1,6 +1,6 @@
<template> <template>
<view class="page"> <view class="page">
<nav-bar title="Select a network" bgColor="#fff"></nav-bar> <nav-bar :title="$t('SelectNetwork.title')" bgColor="#fff"></nav-bar>
<view style="width: 92%; margin: 10px auto; background-color: #F8F8F8; padding: 15px 10px;"> <view style="width: 92%; margin: 10px auto; background-color: #F8F8F8; padding: 15px 10px;">
<uni-row :gutter="0"> <uni-row :gutter="0">
<uni-col :span="2"> <uni-col :span="2">
@ -8,7 +8,7 @@
</uni-col> </uni-col>
<uni-col :span="22"> <uni-col :span="22">
<view style="color: #999; font-size: 14px;"> <view style="color: #999; font-size: 14px;">
Please make sure that the recharge network you choose is the same as the network you choose when withdrawing coins, otherwise it may cause loss of assets! {{$t('SelectNetwork.text1')}}
</view> </view>
</uni-col> </uni-col>
</uni-row> </uni-row>
@ -22,8 +22,9 @@
<uni-col :span="18"> <uni-col :span="18">
<view style="color: #999; font-size: 14px;"> <view style="color: #999; font-size: 14px;">
<view style="font-weight: 600;font-size: 16px;color: #333333;">Tron(TRC20)</view> <view style="font-weight: 600;font-size: 16px;color: #333333;">Tron(TRC20)</view>
<view style="font-weight: 400;font-size: 14px;color: #999;" v-if="page=='recharge'">Minimum recharge: 0. 001 USDT</view> <view style="font-weight: 400;font-size: 14px;color: #999;" v-if="page=='recharge'">{{$t('SelectNetwork.text2')}}: {{recharge_minimum}} USDT</view>
<view style="font-weight: 400;font-size: 14px;color: #999;">Expected to arrive in about 10 minutes</view> <view style="font-weight: 400;font-size: 14px;color: #999;" v-if="page=='putforward'">{{$t('SelectNetwork.text3')}}: {{withdrawl_minimum['TRC-20']}} USDT</view>
<view style="font-weight: 400;font-size: 14px;color: #999;">{{$t('SelectNetwork.text4')}}</view>
</view> </view>
</uni-col> </uni-col>
<uni-col :span="2"> <uni-col :span="2">
@ -37,8 +38,9 @@
<uni-col :span="18"> <uni-col :span="18">
<view style="color: #999; font-size: 14px;"> <view style="color: #999; font-size: 14px;">
<view style="font-weight: 600;font-size: 16px;color: #333333;">BSC-BNB Smart Chain(BEP20)</view> <view style="font-weight: 600;font-size: 16px;color: #333333;">BSC-BNB Smart Chain(BEP20)</view>
<view style="font-weight: 400;font-size: 14px;color: #999;" v-if="page=='recharge'">Minimum recharge: 0. 001 USDT</view> <view style="font-weight: 400;font-size: 14px;color: #999;" v-if="page=='recharge'">{{$t('SelectNetwork.text2')}}: {{recharge_minimum}} USDT</view>
<view style="font-weight: 400;font-size: 14px;color: #999;">Expected to arrive in about 10 minutes</view> <view style="font-weight: 400;font-size: 14px;color: #999;" v-if="page=='putforward'">{{$t('SelectNetwork.text3')}}: {{withdrawl_minimum['BEP-20']}} USDT</view>
<view style="font-weight: 400;font-size: 14px;color: #999;">{{$t('SelectNetwork.text4')}}</view>
</view> </view>
</uni-col> </uni-col>
<uni-col :span="2"> <uni-col :span="2">
@ -65,7 +67,8 @@
return { return {
onchick:'TRC-20', onchick:'TRC-20',
page:"", page:"",
withdrawl_minimum: 0,
recharge_minimum: 0,
}; };
}, },
computed: { computed: {
@ -77,6 +80,13 @@
this.onchick=e.network; this.onchick=e.network;
} }
this.page=e.page; this.page=e.page;
this.$http.get('/api/common/init?lang='+this.$i18n.locale).then(res => {
if(this.page=='recharge'){
this.recharge_minimum = res.data.recharge_minimum;
}else if(this.page=="putforward"){
this.withdrawl_minimum = res.data.withdrawl_minimum;
}
});
}, },
// //
onShow() {}, onShow() {},

View File

@ -1,16 +1,16 @@
<template> <template>
<view class="page"> <view class="page">
<nav-bar title="Transfer" bgColor="#fff"> <nav-bar :title="$t('transfer.title')" bgColor="#fff">
<image slot="right" style="width: 40rpx; height: 40rpx; margin-right: 20px;" src="/static/images/r2.png" mode="cover" @click="onTokenJump('/pages/wallet/fundrecords?id=4')"></image> <image slot="right" style="width: 40rpx; height: 40rpx; margin-right: 20px;" src="/static/images/r2.png" mode="cover" @click="onTokenJump('/pages/wallet/fundrecords?id=4')"></image>
</nav-bar> </nav-bar>
<view style="width: 92%; margin: 10px auto; padding: 15px 10px;"> <view style="width: 92%; margin: 10px auto; padding: 15px 10px;">
<uni-forms :modelValue="transferModel" label-position="top" :rules="rules" ref="form"> <uni-forms :modelValue="transferModel" label-position="top" :rules="rules" ref="form">
<uni-forms-item label="Other email" name="email" labelWidth="400rpx"> <uni-forms-item :label="$t('transfer.text7')" name="email" labelWidth="400rpx">
<uni-combox :candidates="formattedItems" placeholder="Enter email" v-model="transferModel.email"></uni-combox> <uni-combox :candidates="formattedItems" :placeholder="$t('transfer.text8')" v-model="transferModel.email"></uni-combox>
</uni-forms-item> </uni-forms-item>
<uni-forms-item label="Transfer amount" labelWidth="400rpx" name="amount"> <uni-forms-item :label="$t('transfer.text9')" labelWidth="400rpx" name="amount">
<view> <view>
<uni-easyinput type="number" v-model="transferModel.amount" placeholder="At least 1U"> <uni-easyinput type="number" v-model="transferModel.amount" :placeholder="$t('transfer.text10')">
<template #right> <template #right>
<view style="float: left; font-size: 12px;">USDT</view> <view style="float: left; font-size: 12px;">USDT</view>
<view style="margin:20rpx; float: right;"> <view style="margin:20rpx; float: right;">
@ -18,21 +18,21 @@
</template> </template>
</uni-easyinput> </uni-easyinput>
</view> </view>
<view style="font-size: 14px; color: #999; font-weight: 500; line-height: 50upx; margin-top: 10rpx;">Available balance <view style="font-size: 14px; color: #999; font-weight: 500; line-height: 50upx; margin-top: 10rpx;">{{$t('transfer.text11')}}
<span style="color: #1D61E7;">{{user.money }} USDT</span></view> <span style="color: #1D61E7;">{{user.money }} USDT</span></view>
</uni-forms-item> </uni-forms-item>
<uni-forms-item label="PIN code" name="pincode"> <uni-forms-item :label="$t('transfer.text3')" name="pincode">
<uni-easyinput type="password" :passwordIcon="true" v-model="transferModel.pincode" placeholder="Enter PIN code" /> <uni-easyinput type="password" :passwordIcon="true" v-model="transferModel.pincode" :placeholder="$t('transfer.text5')" />
</uni-forms-item> </uni-forms-item>
</uni-forms> </uni-forms>
</view> </view>
<view style="bottom: 0px; position: absolute; width:100vw; height: 150px;"> <view style="bottom: 0px; position: absolute; width:100vw; height: 150px;">
<view class="cell_list"> <view class="cell_list">
<view class="cell_left txt">Expected arrival</view> <view class="cell_left txt">{{$t('transfer.text12')}}</view>
<view class="cell_right" style="font-size: 18px; font-weight: 600;">{{transferModel.amount}} USDT</view> <view class="cell_right" style="font-size: 18px; font-weight: 600;">{{transferModel.amount}} USDT</view>
</view> </view>
<view class="cell_list"> <view class="cell_list">
<button type="primary" round style="width: 100%;" @click="submit">Submit</button> <button type="primary" round style="width: 100%;" @click="submit">{{$t('buttonSubmit')}}</button>
</view> </view>
</view> </view>
</view> </view>