diff --git a/locales/en.json b/locales/en.json
index d7f01d0..8268a1a 100644
--- a/locales/en.json
+++ b/locales/en.json
@@ -8,6 +8,7 @@
"buttonDetails": "renew",
"nodata": "No data available",
"loading": "Data Loading...",
+ "copy": "Copy",
"setIndex":{
"title": "setting",
"text1": "PIN code setting",
@@ -93,24 +94,109 @@
"text6": "Computing power"
},
"putforward":{
+ "title": "Put forward",
"text1":"Please select an address",
"text2":"Please enter the withdrawal amount",
"text3":"The minimum withdrawal amount is {par} USDT",
"text4":"The withdrawal amount plus network fees cannot exceed the balance",
"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": {
"title": "Transfer",
"text1":"Please enter the transfer account",
"text2":"Please enter the transfer amount",
- "text3":"",
+ "text3":"PIN code",
"text4":"The transfer amount cannot exceed the account balance",
"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":{
- "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":{
"title": "Address book",
@@ -120,6 +206,15 @@
}
},
"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"
}
}
\ No newline at end of file
diff --git a/pages/power/index.vue b/pages/power/index.vue
index 1a11332..3d43961 100644
--- a/pages/power/index.vue
+++ b/pages/power/index.vue
@@ -2,26 +2,26 @@
- My Power Value Balance
+ {{$t('power.text1')}}
{{power.score.toFixed(4) }}
- Total Agent
+ {{$t('power.text2')}}
{{power.total.toFixed(4)}}
- Not finished
+ {{$t('power.text3')}}
{{power.notfinished.toFixed(4)}}
- Expired
+ {{$t('power.text4')}}
{{power.expired.toFixed(4)}}
- Power record
- Warm tips
+ {{$t('power.text5')}}
+ {{$t('power.text6')}}
@@ -29,23 +29,23 @@
{{item.type}}{{item.created_at.slice(0, 19)}}
{{item.amount}}
- balance:{{item.after}}
+ {{$t('power.text7')}}:{{item.after}}
- No data available
+ {{$t('nodata')}}
diff --git a/pages/promotion/index.vue b/pages/promotion/index.vue
index 31624a2..2f3f44a 100644
--- a/pages/promotion/index.vue
+++ b/pages/promotion/index.vue
@@ -1,40 +1,40 @@
-
+
- Login/Register
+ {{$t('mine.text1')}}
{{user.username}}
ID:{{user.id}}
+ {{$t('promotion.text1')}}
- My community
+ {{$t('promotion.text2')}}
- Total team Size
+ {{$t('promotion.text3')}}
{{team.total_count}}
- Direct referral headcount
+ {{$t('promotion.text4')}}
{{team.direct_total}}
- KPI Results-Region
+ {{$t('promotion.text5')}}
{{parseFloat(team.resultsRegion).toFixed(4)}}
- KPI Results-Cell
+ {{$t('promotion.text6')}}
{{parseFloat(team.resultsCell).toFixed(4)}}
@@ -42,8 +42,8 @@
- Direct referral list
- View all
+ {{$t('promotion.text7')}}
+ {{$t('promotion.text8')}}
@@ -53,16 +53,16 @@
{{item.username}}
ID:{{item.id}}
- Join date: {{item.created_at}}
- KPI results: {{parseFloat(item.performance_large).toFixed(4)}}
- Total Team Size: {{item.total_count}}
+ {{$t('promotion.text9')}}: {{item.created_at}}
+ {{$t('promotion.text10')}}: {{parseFloat(item.performance_large).toFixed(4)}}
+ {{$t('promotion.text11')}}: {{item.total_count}}
- No data available
+ {{$t('nodata')}}
@@ -107,7 +107,7 @@
//第一次加载
onShow(e) {
uni.showLoading({
- title:'Array loading...'
+ title:'Data Loading...'
})
if(this.userInfo.token === typeof(undefined) || this.userInfo.token === undefined){
this.islogin = false;
@@ -205,7 +205,7 @@
float: right; margin-top: 10upx; padding-right: 20upx;
}
.minebg .v2{
- clear: both; width: 90vw; margin: auto; padding-top: 20px;
+ clear: both; width: 90vw; margin: auto; padding-top: 20rpx;
}
.minebg .v2 .login{
width: 260upx; float: left; font-size: 16pt; font-weight: 700; height:160upx; line-height: 160upx;
diff --git a/pages/promotion/invite.vue b/pages/promotion/invite.vue
index d9e33e2..5a72511 100644
--- a/pages/promotion/invite.vue
+++ b/pages/promotion/invite.vue
@@ -27,11 +27,11 @@
@@ -39,7 +39,7 @@
+ {{$t('invite.text3')}}
@@ -66,10 +66,10 @@
swiperIndex: 0,
posterImgs: [],
shareInfo: {
- shareContent: "商家云系统,点击了解",
+ shareContent: "",
shareImg: "http://qn.kemean.cn/upload/202004/08/15863540965488mlv1qgj.png",
- shareTitle: "商家云",
- shareUrl: "http://kemean.com/download/3jiayunbz/index.html"
+ shareTitle: "",
+ shareUrl: ""
},
h5SaveImg: "",
@@ -85,7 +85,7 @@
icon: '', //二维码图标
iconsize: 30, //二维码图标大小
lv: 3, //二维码容错级别
- loadingText: '加载中', //loading内容,
+ loadingText: 'Loading', //loading内容,
result: ''
}
},
@@ -108,7 +108,7 @@
methods: {
copy() {
this.$copyText(this.qrcode).then(res => {
- uni.showToast({title: '复制成功', icon: 'none'});
+ uni.showToast({title: this.$t('copySuccess'), icon: 'none'});
});
},
qrResult(e) {
@@ -234,7 +234,7 @@
success: () => {
uni.hideLoading();
uni.showToast({
- title: '保存成功'
+ title: 'Successfully'
});
}
});
@@ -244,7 +244,7 @@
// #endif
// #ifdef APP-PLUS
uni.showLoading({
- title: 'Poster download in progress'
+ title: this.$t('invite.text4')
});
uni.saveImageToPhotosAlbum({
filePath: imgUrl,
diff --git a/pages/promotion/list.vue b/pages/promotion/list.vue
index 6506faf..9ef5e0c 100644
--- a/pages/promotion/list.vue
+++ b/pages/promotion/list.vue
@@ -1,10 +1,10 @@
-
+
- Direct referral headcount
+ {{$t('promotionList.text1')}}
{{parseFloat(this.team.direct_total).toFixed(4)}}
@@ -21,9 +21,9 @@
{{item.username}}
ID:{{item.id}}
- Join date: {{item.created_at}}
- KPI results: {{parseFloat(item.performance_large).toFixed(4)}}
- Total Team Size: {{item.total_count}}
+ {{$t('promotion.text9')}}: {{item.created_at}}
+ {{$t('promotion.text10')}}: {{parseFloat(item.performance_large).toFixed(4)}}
+ {{$t('promotion.text11')}}: {{item.total_count}}
diff --git a/pages/wallet/ExtractResults.vue b/pages/wallet/ExtractResults.vue
index abeaeb0..893cb8f 100644
--- a/pages/wallet/ExtractResults.vue
+++ b/pages/wallet/ExtractResults.vue
@@ -1,6 +1,6 @@
-
+
-{{parseFloat(info.recive_amount).toFixed(4)}} USDT
@@ -9,15 +9,15 @@
- Network
+ {{$t('results.text1')}}
{{info.network}}
- Expected arrival
- Put forward
+ {{$t('results.text2')}}
+ {{$t('putforward.title')}}
- Address title
+ {{$t('results.text3')}}
{{info.address}}
@@ -25,15 +25,15 @@
-->
- Service charge
+ {{$t('results.text4')}}
{{parseFloat(info.fee).toFixed(2)}} USDT
- Time
+ {{$t('results.text5')}}
{{info.created_at}}
- Reference number
+ {{$t('results.text6')}}
{{info.id}}
@@ -58,8 +58,8 @@
return {
network:'trc20',
resultsModel:{
- status:"Under review",
- txt:"Under review, please be patient",
+ status: this.$t('results.text7'),
+ txt: this.$t('results.text8'),
images:"/static/images/p1.png",
statuscolor:'#1D61E7'
},
@@ -79,32 +79,32 @@
case 0:
case 1: //审核
this.resultsModel={
- status:"Under review",
- txt:"Under review, please be patient",
+ status: this.$t('results.text7'),
+ txt: this.$t('results.text8'),
images:"/static/images/p1.png",
statuscolor:'#1D61E7'
}
break;
case 2: //完成
this.resultsModel={
- status:"Done",
- txt:"Extraction succeeded",
+ status: this.$t('results.text9'),
+ txt: this.$t('results.text10'),
images:"/static/images/p3.png",
statuscolor:'#333333'
}
break;
case -1: //驳回
this.resultsModel={
- status:"Return",
- txt:"Reason: " + res.data.memo,
+ status: this.$t('results.text11'),
+ txt: this.$t('results.text12') + res.data.memo,
images:"/static/images/p4.png",
statuscolor:'#F03F61'
}
break;
case -2: //失败
this.resultsModel={
- status:"Failure",
- txt:"Reason: " + res.data.memo,
+ status: this.$t('results.text13'),
+ txt: this.$t('results.text12') + res.data.memo,
images:"/static/images/p2.png",
statuscolor:'#F03F61'
}
diff --git a/pages/wallet/fundrecords.vue b/pages/wallet/fundrecords.vue
index 8388caf..b2581c7 100644
--- a/pages/wallet/fundrecords.vue
+++ b/pages/wallet/fundrecords.vue
@@ -1,7 +1,7 @@
-
+
@@ -38,7 +38,7 @@
-
+
{{n.name}}{{n.created_at}}
@@ -48,7 +48,7 @@
{{ recharge_status_list[n.status]}}
-
+
{{n.name}}{{ n.created_at}}
@@ -69,7 +69,7 @@
- No data available
+ {{$t('nodata')}}
@@ -94,11 +94,11 @@
index: 0,
currentindex:0,
category:[
- {id:1,name:'All',},
- {id:2,name:'Earnings',},
- {id:3,name:'Recharge',},
- {id:4,name:'Put forward',},
- {id:5,name:'Transfer',}
+ {id:1,name: this.$t('fundrecords.text1'),},
+ {id:2,name: this.$t('fundrecords.text2'),},
+ {id:3,name: this.$t('recharge.title'),},
+ {id:4,name: this.$t('putforward.title'),},
+ {id:5,name: this.$t('transfer.title'),}
],
contentScrollW: 0, // 导航区宽度
scrollLeft: 0, // 横向滚动条位置
@@ -138,7 +138,7 @@
//第一次加载
onLoad(e) {
uni.showLoading({
- title: 'Array loading...'
+ title: 'Data Loading...'
});
if(e.id != typeof(undefined) && e.id != undefined){
this.isActive = e.id;
@@ -148,7 +148,7 @@
this.init = res.data;
this.withdrawl_status_list = res.data.withdrawl_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']]
entries.forEach(([key, value]) => {
this.items.push(value);
@@ -195,7 +195,7 @@
}
this.isload = true;
uni.showLoading({
- title: 'Array loading...'
+ title: this.$t('loading')
});
this.isActive = index;
this.scrollLeft = 0;
@@ -231,7 +231,7 @@
},
onPickerChange(e) {
uni.showLoading({
- title: 'Array loading...'
+ title: this.$t('loading')
});
this.list = [];
this.selectedItem = this.items[e.detail.value];
@@ -241,14 +241,14 @@
this.select.type = key;
}
});
- if(this.selectedItem == '全部'){
+ if(this.selectedItem == this.$t('fundrecords.text1')){
this.select.type = '';
}
this.getList();
},
datachange(e){
uni.showLoading({
- title: 'Array loading...'
+ title: this.$t('loading')
});
this.list = [];
if(e.length > 1){
@@ -299,7 +299,7 @@
this.$http.post('/api/recharge/list', this.select).then(res => {
if(res.code == 0){
res.data.data.forEach(item => {
- item.name = 'Recharge';
+ item.name = this.$t('recharge.title');
this.list.push(item);
});
this.last_page = res.data.last_page;
@@ -315,7 +315,7 @@
this.$http.post('/api/withdrawl/list', this.select).then(res => {
if(res.code == 0){
res.data.data.forEach(item => {
- item.name = 'Put forward';
+ item.name = this.$t('putforward.title');
this.list.push(item);
});
this.last_page = res.data.last_page;
diff --git a/pages/wallet/index.vue b/pages/wallet/index.vue
index e350c1e..62c7963 100644
--- a/pages/wallet/index.vue
+++ b/pages/wallet/index.vue
@@ -1,15 +1,15 @@
-
+
- My USDT
+ {{$t('wallet.text1')}}
{{user.money.toFixed(4)}}
- Accumulated earnings
+ {{$t('wallet.text2')}}
{{user.income_total.toFixed(4)}}
- Cash withdrawn
+ {{$t('wallet.text3')}}
{{user.withdrawl_total.toFixed(4)}}
@@ -19,26 +19,26 @@
- Recharge
+ {{$t('recharge.title')}}
- Put forward
+ {{$t('putforward.title')}}
- Transfer
+ {{$t('transfer.title')}}
- Wallet fund records
- View details
+ {{$t('wallet.text4')}}
+ {{$t('wallet.text5')}}
{{item.type}}{{item.created_at.slice(0, 19)}}
@@ -51,7 +51,7 @@
- No data available
+ {{$t('nodata')}}
diff --git a/pages/wallet/putforward.vue b/pages/wallet/putforward.vue
index 2e42caf..2f53197 100644
--- a/pages/wallet/putforward.vue
+++ b/pages/wallet/putforward.vue
@@ -1,13 +1,13 @@
-
+
- Address
+ {{$t('putforward.text7')}}
Tron(TRC20)
@@ -18,7 +18,7 @@
-
+
@@ -27,9 +27,9 @@
-
+
-
+
USDT
@@ -37,25 +37,25 @@
- Available balance:
+ {{$t('putforward.text11')}}:
{{user.money }} USDT
-
+
- Network costs
+ {{$t('putforward.text13')}}
{{costs}} USDT
- Expected arrival
+ {{$t('putforward.text14')}}
{{totalAmount}} USDT
-
+
@@ -118,7 +118,7 @@
}
},
//第一次加载
- async onLoad(e) {
+ async onLoad(e) {
this.$http.get('/api/common/init?lang='+this.$i18n.locale).then(res => {
this.init = res.data;
if(e.network != typeof(undefined) && e.network != undefined){
diff --git a/pages/wallet/recharge.vue b/pages/wallet/recharge.vue
index 73052cf..7b1cb33 100644
--- a/pages/wallet/recharge.vue
+++ b/pages/wallet/recharge.vue
@@ -1,23 +1,23 @@
-
+
- Network
+ {{$t('recharge.text1')}}
{{rechargeModel.name}}
-
+
-
+
USDT
-
+
@@ -26,27 +26,27 @@
- Single latest recharge amount {{init.recharge_minimum}} USDT
+ {{$t('recharge.text3')}} {{init.recharge_minimum}} USDT
- Receiving Address
+ {{$t('recharge.text4')}}
{{qrcode}}
-
+
- Warm tips
+ {{$t('recharge.text5')}}
- 1. Minimum recharge 1 USDT;
- 2. Recharge confirmation: 10 times of network confirmation;
- 3. Please do not recharge assets other than USDT to the above address, otherwise it may lead to the loss of assets.
- 4. Please ensure the security of your mobile device to prevent information from being tampered with or leaked.
+ 1. {{$t('recharge.text6')}}
+ 2. {{$t('recharge.text7')}}
+ 3. {{$t('recharge.text8')}}
+ 4. {{$t('recharge.text9')}}
@@ -130,14 +130,14 @@
if(this.rechargeModel.amount == ''){
uni.showToast({
icon: 'error',
- title: 'Please enter the recharge amount'
+ title: this.$t('recharge.text10')
});
return;
}
if (parseFloat(this.rechargeModel.amount) < parseFloat(this.init.recharge_minimum)) {
uni.showToast({
icon: 'error',
- title: 'The minimum recharge amount is ' + this.init.recharge_minimum
+ title: this.$t('recharge.text11') + this.init.recharge_minimum
});
return;
}
diff --git a/pages/wallet/switchnetwork.vue b/pages/wallet/switchnetwork.vue
index 0e81a12..a7f8526 100644
--- a/pages/wallet/switchnetwork.vue
+++ b/pages/wallet/switchnetwork.vue
@@ -1,6 +1,6 @@
-
+
@@ -8,7 +8,7 @@
- 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')}}
@@ -22,8 +22,9 @@
Tron(TRC20)
- Minimum recharge: 0. 001 USDT
- Expected to arrive in about 10 minutes
+ {{$t('SelectNetwork.text2')}}: {{recharge_minimum}} USDT
+ {{$t('SelectNetwork.text3')}}: {{withdrawl_minimum['TRC-20']}} USDT
+ {{$t('SelectNetwork.text4')}}
@@ -37,8 +38,9 @@
BSC-BNB Smart Chain(BEP20)
- Minimum recharge: 0. 001 USDT
- Expected to arrive in about 10 minutes
+ {{$t('SelectNetwork.text2')}}: {{recharge_minimum}} USDT
+ {{$t('SelectNetwork.text3')}}: {{withdrawl_minimum['BEP-20']}} USDT
+ {{$t('SelectNetwork.text4')}}
@@ -65,7 +67,8 @@
return {
onchick:'TRC-20',
page:"",
-
+ withdrawl_minimum: 0,
+ recharge_minimum: 0,
};
},
computed: {
@@ -77,6 +80,13 @@
this.onchick=e.network;
}
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() {},
diff --git a/pages/wallet/transfer.vue b/pages/wallet/transfer.vue
index c41e7b9..2c9fd9c 100644
--- a/pages/wallet/transfer.vue
+++ b/pages/wallet/transfer.vue
@@ -1,16 +1,16 @@
-
+
-
-
+
+
-
+
-
+
USDT
@@ -18,21 +18,21 @@
- Available balance:
+ {{$t('transfer.text11')}}:
{{user.money }} USDT
-
-
+
+
- Expected arrival
+ {{$t('transfer.text12')}}
{{transferModel.amount}} USDT
-
+