This commit is contained in:
xx 2025-06-08 02:12:24 +08:00
parent e3ab320ea5
commit 46a29edb51
15 changed files with 410 additions and 233 deletions

View File

@ -4,6 +4,7 @@
"buttonCancel": "Cancel", "buttonCancel": "Cancel",
"buttonConfirm": "Confirm", "buttonConfirm": "Confirm",
"buttonSubmit": "Submit", "buttonSubmit": "Submit",
"buttonSave": "Save",
"buttonUpgrade": "Upgrade", "buttonUpgrade": "Upgrade",
"buttonDetails": "renew", "buttonDetails": "renew",
"nodata": "No data available", "nodata": "No data available",
@ -53,6 +54,17 @@
"text11": "Re enter the new transaction password", "text11": "Re enter the new transaction password",
"text12": "The transaction passwords entered twice are different" "text12": "The transaction passwords entered twice are different"
}, },
"upgrade":{
"title": "Upgrade",
"text1": "Upgrade VIP& channel partner",
"text2": "Automation tools/AI assistance",
"text3": "Construction of Quality Monitoring System",
"text4": "Operational guidelines for compliance",
"text5": "Gain more accelerated benefit",
"text6": "Available balance",
"text7": "Upgrade now",
"text8": "Insufficient user balance"
},
"Questionnaire":{ "Questionnaire":{
"title": "Questionnaire", "title": "Questionnaire",
"text1": "Data Market", "text1": "Data Market",
@ -91,7 +103,85 @@
"text3": "benefit accelerated to 3x", "text3": "benefit accelerated to 3x",
"text4": "Permanent agent", "text4": "Permanent agent",
"text5": "My wallet", "text5": "My wallet",
"text6": "Computing power" "text6": "Computing power",
"text7": "Address book",
"text8": "Online service",
"text9": "Help Center",
"text10": "About us"
},
"forgot": {
"title": "Forgot password",
"text1": "Don't worry it happens. Please enter the address associate with your account.",
"text2": "Please enter your email address",
"text3": "Send Code",
"text4": "Send after {par}s",
"text5": "Verification code",
"text6": "We have to sent the code verification to Your Email.",
"text7": "Didn't get a code? ",
"text8": "Resend",
"text9": "Change password",
"text10": "Don't be afraid of forgetting the password, you can change it to a password that you can remember.",
"text11": "Password",
"text12": "Please enter your Password",
"text13": "Confirm password",
"text14": "Please enter your confirm Password",
"text15": "You remember your password?",
"text16": "Login",
"text17": "Please input password",
"text18": "Please input Confirm password",
"text19": "Email is empty",
"text20": "Email address error",
"text21": "Please enter a 6-10 digit password",
"text22": "Two passwords are inconsistent"
},
"personal":{
"title": "Personal details",
"text1": "Head portrait",
"text2": "User name",
"text3": "User ID",
"text4": "Account",
"text5": "Identity",
"text6": "Photograph",
"text7": "My Album Selection"
},
"login":{
"title": "Log in",
"text1": "Marsh Questionnaire",
"text2": "Sign in to your Account",
"text3": "Enter your email and password to log in ",
"text4": "Please enter your email address",
"text5": "Please enter your Password",
"text6": "Forgot Password ?",
"text7": "Dont have an account? ",
"text8": "Sign Up",
"text9": "Please enter your email address",
"text10": "Please input a password"
},
"notice": {
"title": "Notice",
"text1": "All read"
},
"noticedetail":{
"title":"Details"
},
"signup":{
"title": "Sign up",
"text1": "Create an account to continue!",
"text2": "Please enter your email address",
"text3": "Verification code",
"text4": "Enter email verification code",
"text5": "Next",
"text6": "PIN Code",
"text7": "Please enter your PIN code",
"text8": "Please enter your confirm PIN code",
"text9": "Please enter invitation code",
"text10": "Confirm PIN Code",
"text11": "Invitation code",
"text12": "Please enter the correct email address",
"text13": "Already have an account?",
"text14": "Please enter a 6-10 digit password",
"text15": "Two passwords are inconsistent"
}, },
"putforward":{ "putforward":{
"title": "Put forward", "title": "Put forward",
@ -200,9 +290,16 @@
}, },
"address":{ "address":{
"title": "Address book", "title": "Address book",
"text1": "Add address",
"add":{ "add":{
"title": "Edit address" "title": "Edit address",
"text1": "Select network",
"text2": "Wallet address",
"text3": "Enter address",
"text4": "Set the name",
"text5": "Select a network",
"text6": "Please input address",
"text7": "Please input name"
} }
}, },
"power":{ "power":{
@ -216,5 +313,41 @@
"text7": "balance", "text7": "balance",
"text8": "Unsettled USDT will be automatically taken out upon continued participation.", "text8": "Unsettled USDT will be automatically taken out upon continued participation.",
"text9": "I got it" "text9": "I got it"
},
"about": {
"title": "About us",
"text1": "Version update",
"text2": "Service Agreement",
"text3": "Company profile"
},
"help":{
"title": "Help Center",
"text1": "Official group",
"text2": "Wallet download"
},
"index":{
"text1": "Search the questionnaire",
"text2": "Total assets",
"text3": "Today's earnings",
"text4": "Cash out",
"text5": " User gets {par} USDT",
"text6": "Surprise reward",
"text7": "Invite friends to get high commission",
"text8": "View details",
"text9": "Answered",
"text10": "reward",
"text11": "View all",
"text12": "Application of new technologies (automation tools/AI assistance)",
"text13": "Intelligent answer engine",
"text14": "Dynamic question bank management system",
"text15": "Multi-mode anti-detection system",
"text16": "Construction of Quality Monitoring System",
"text17": "Doube-blind audit mechanism",
"text18": "Dynamic scoring model",
"text19": "Data traceability",
"text20": "Operational guidelines for compliance",
"text21": "Identity portrait consistency",
"text22": "Behavior pattern simulation",
"text23": "Equipment environment quarantine"
} }
} }

View File

@ -1,14 +1,9 @@
<template> <template>
<view class="page"> <view class="page">
<nav-bar title="Details" bgColor="#fff"></nav-bar> <nav-bar :title="info.title" bgColor="#fff" backState="2000"></nav-bar>
<view style="width: 92%; margin: 20px auto;"> <view style="width: 92%; margin: 20px auto;">
<view style="font-weight: 700;font-size: 20px;color: #3D3D3D;line-height: 28px;text-transform: none;"> <image src='/static/images/Companyprofile.png' mode="widthFix" style="width: 100%;" v-if="title=='aboutus'"></image>
Bitcoin breaks $100,000! <view class="table_content" style="margin-top: 40rpx;"><jyf-parser :html="info.content"></jyf-parser></view>
</view>
<view style="font-size: 12px; font-weight: 400; color: #999; margin-bottom: 20px;">
2025/05/08 22:23:45
</view>
<view class="table_content"><jyf-parser :html="html"></jyf-parser></view>
</view> </view>
</view> </view>
</template> </template>
@ -24,14 +19,26 @@
jyfParser jyfParser
}, },
data() { data() {
return {
info: {},
title: "aboutus"
};
}, },
computed: { computed: {
...mapState(['userInfo']) ...mapState(['userInfo'])
}, },
// //
onLoad(e) { onLoad(e) {
if(e.id){
if(e.id=="aboutus"){
this.title = e.id;
}else{
this.title = '';
}
this.$http.get('/api/article/singpage?name='+e.id+'&lang=' + this.$i18n.locale).then(res => {
this.info = res.data;
});
}
}, },
// //
onShow() {}, onShow() {},

View File

@ -1,66 +1,77 @@
<template> <template>
<view class="page"> <view class="page">
<nav-bar title="Help Center" bgColor="#fff"></nav-bar> <nav-bar :title="$t('help.title')" bgColor="#fff"></nav-bar>
<view style="padding: 20px 15px; font-size: 16px; color: #3d3d3d;"> <view style="padding: 20px 15px; font-size: 16px; color: #3d3d3d;">
Official group {{$t('help.text1')}}
</view> </view>
<view class="cell_list" @click="open('qq_group')"> <!-- <view class="cell_list" @click="open('qq_group')">
<view class="cell_left txt"> <view class="cell_left txt">
<image src="/static/images/h1.png" mode="cover" style="width: 30px; height: 30px; border-radius: 10px; margin-right: 5px;"></image> <image src="/static/images/h1.png" mode="cover"
style="width: 30px; height: 30px; border-radius: 10px; margin-right: 5px;"></image>
QQ group QQ group
</view> </view>
<view class="cell_right arrow"></view> <view class="cell_right arrow"></view>
</view> </view> -->
<view class="cell_list" @click="open('telegram_group')"> <view class="cell_list" @click="open('telegram_group')">
<view class="cell_left txt"> <view class="cell_left txt">
<image src="/static/images/h2.png" mode="cover" style="width: 30px; height: 30px; border-radius: 10px; margin-right: 5px;"></image> <image src="/static/images/h2.png" mode="cover"
Telegram</view> style="width: 30px; height: 30px; border-radius: 10px; margin-right: 5px;"></image>
Telegram
</view>
<view class="cell_right arrow"></view> <view class="cell_right arrow"></view>
</view> </view>
<view class="cell_list" @click="open('sigua_group')"> <!-- <view class="cell_list" @click="open('sigua_group')">
<view class="cell_left txt"> <view class="cell_left txt">
<image src="/static/images/h3.png" mode="cover" style="width: 30px; height: 30px; border-radius: 10px; margin-right: 5px;"></image> <image src="/static/images/h3.png" mode="cover"
Loofah group</view> style="width: 30px; height: 30px; border-radius: 10px; margin-right: 5px;"></image>
Loofah group
</view>
<view class="cell_right arrow"></view> <view class="cell_right arrow"></view>
</view> </view> -->
<view style="padding: 20px 15px; font-size: 16px; color: #3d3d3d;"> <view style="padding: 20px 15px; font-size: 16px; color: #3d3d3d;">
Wallet download {{$t('help.text2')}}
</view> </view>
<view class="cell_list"> <view class="cell_list">
<view class="cell_left txt"> <view class="cell_left txt">
<image src="/static/images/h4.png" mode="cover" style="width: 30px; height: 30px; border-radius: 10px; margin-right: 5px;"></image> <image src="/static/images/h4.png" mode="cover"
Binance Download</view> style="width: 30px; height: 30px; border-radius: 10px; margin-right: 5px;"></image>
Binance Download
</view>
<view class="cell_right" @click="copy(init.wallet_download['Binance'])">Copy URL</view> <view class="cell_right" @click="copy(init.wallet_download['Binance'])">Copy URL</view>
</view> </view>
<view class="cell_list"> <view class="cell_list">
<view class="cell_left txt"> <view class="cell_left txt">
<image src="/static/images/h5.png" mode="cover" style="width: 30px; height: 30px; border-radius: 10px; margin-right: 5px;"></image> <image src="/static/images/h5.png" mode="cover"
style="width: 30px; height: 30px; border-radius: 10px; margin-right: 5px;"></image>
Okex Download Okex Download
</view> </view>
<view class="cell_right" @click="copy(init.wallet_download['Okex'])">Copy URL</view> <view class="cell_right" @click="copy(init.wallet_download['Okex'])">Copy URL</view>
</view> </view>
<view class="cell_list"> <view class="cell_list">
<view class="cell_left txt"> <view class="cell_left txt">
<image src="/static/images/h6.png" mode="cover" style="width: 30px; height: 30px; border-radius: 10px; margin-right: 5px;"></image> <image src="/static/images/h6.png" mode="cover"
style="width: 30px; height: 30px; border-radius: 10px; margin-right: 5px;"></image>
TokenPocket Download TokenPocket Download
</view> </view>
<view class="cell_right" @click="copy(init.wallet_download['TokenPocket'])">Copy URL</view> <view class="cell_right" @click="copy(init.wallet_download['TokenPocket'])">Copy URL</view>
</view> </view>
<view class="cell_list"> <!-- <view class="cell_list">
<view class="cell_left txt"> <view class="cell_left txt">
<image src="/static/images/h3.png" mode="cover" style="width: 30px; height: 30px; border-radius: 10px; margin-right: 5px;"></image> <image src="/static/images/h3.png" mode="cover"
Open Sesame Download style="width: 30px; height: 30px; border-radius: 10px; margin-right: 5px;"></image>
Open Sesame Download
</view> </view>
<view class="cell_right" @click="copy(init.wallet_download['Open Sesame'])">Copy URL</view> <view class="cell_right" @click="copy(init.wallet_download['Open Sesame'])">Copy URL</view>
</view> </view> -->
<uni-popup ref="popup" type="dialog" :is-mask-click="true" background-color="#fff" borderRadius="40rpx"> <uni-popup ref="popup" type="dialog" :is-mask-click="true" background-color="#fff" borderRadius="40rpx">
<view class="dialog"> <view class="dialog">
<view class="title">{{dialogTitle}}</view> <view class="title">{{dialogTitle}}</view>
<view style="padding-bottom: 20px; width: 100%;" v-for="(value, key) in list" :key="key"> <view style="padding-bottom: 20px; width: 100%;" v-for="(value, key) in list" :key="key">
<view class="v1" style="margin-left: 10px;">{{key}}:</view> <view class="v1" style="margin-left: 10px;">{{key}}:</view>
<view class="v1" style="margin-left: 40rpx;">{{value}} </view> <view class="v1" style="margin-left: 40rpx;">{{value}} </view>
<image style="width: 36rpx; height: 30rpx; float: right; margin-left: 20rpx; margin-top: 10rpx;" src="/static/images/copy.png" @click="copy(value)" mode="cover"></image> <image style="width: 36rpx; height: 30rpx; float: right; margin-left: 20rpx; margin-top: 10rpx;"
src="/static/images/copy.png" @click="copy(value)" mode="cover"></image>
<view style="clear: both;"></view> <view style="clear: both;"></view>
</view> </view>
</view> </view>
@ -82,11 +93,10 @@
type: '', type: '',
}; };
}, },
computed: { computed: {},
},
// //
onLoad(e) { 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;
}); });
}, },
@ -94,9 +104,9 @@
onShow() {}, onShow() {},
// //
methods: { methods: {
open(type){ open(type) {
this.type = type; this.type = type;
switch(type){ switch (type) {
case 'qq_group': case 'qq_group':
this.list = this.init[type]; this.list = this.init[type];
this.dialogTitle = 'QQ Group'; this.dialogTitle = 'QQ Group';
@ -127,33 +137,34 @@
handleClose(done) { handleClose(done) {
this.dialogVisible = false; this.dialogVisible = false;
}, },
openQQChat(number){ openQQChat(number) {
// #ifdef APP-PLUS // #ifdef APP-PLUS
if (plus.os.name === "Android") { if (plus.os.name === "Android") {
var main = plus.android.runtimeMainActivity(); var main = plus.android.runtimeMainActivity();
var Intent = plus.android.importClass('android.content.Intent'); var Intent = plus.android.importClass('android.content.Intent');
var Uri = plus.android.importClass('android.net.Uri'); var Uri = plus.android.importClass('android.net.Uri');
var intent = new Intent(Intent.ACTION_VIEW, Uri.parse("mqqwpa://im/chat?chat_type=wpa&uin=" + qqNumber)); var intent = new Intent(Intent.ACTION_VIEW, Uri.parse("mqqwpa://im/chat?chat_type=wpa&uin=" +
main.startActivity(intent); qqNumber));
} else if (plus.os.name === "iOS") { main.startActivity(intent);
plus.runtime.launchApplication({ } else if (plus.os.name === "iOS") {
action: "mqq://im/chat?chat_type=wpa&uin=" + qqNumber + "&version=1&src_type=web" plus.runtime.launchApplication({
}, function(e) { action: "mqq://im/chat?chat_type=wpa&uin=" + qqNumber + "&version=1&src_type=web"
if (e.error) { }, function(e) {
plus.nativeUI.confirm("检查到您未安装qq请先到App Store搜索下载", function(i) { if (e.error) {
if (i.index === 0) { plus.nativeUI.confirm("检查到您未安装qq请先到App Store搜索下载", function(i) {
window.location.href = "https://itunes.apple.com/cn/app/mqq/"; if (i.index === 0) {
} window.location.href = "https://itunes.apple.com/cn/app/mqq/";
}); }
} });
}); }
} });
}
// #endif // #endif
// #ifdef H5 // #ifdef H5
location.href = 'mqqwpa://im/chat?chat_type=wpa&uin='+number+'&version=1&src_type=web'; location.href = 'mqqwpa://im/chat?chat_type=wpa&uin=' + number + '&version=1&src_type=web';
// #endif // #endif
}, },
copy(val = ''){ copy(val = '') {
const textArea = document.createElement('textarea'); const textArea = document.createElement('textarea');
textArea.value = val; textArea.value = val;
document.body.appendChild(textArea); document.body.appendChild(textArea);
@ -199,30 +210,53 @@
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
@import '@/style/mixin.scss'; @import '@/style/mixin.scss';
body{background-color: #F8F8F8;}
.page{min-height: 100vh;position: relative; background-color: #F8F8F8;} body {
background-color: #F8F8F8;
}
.page {
min-height: 100vh;
position: relative;
background-color: #F8F8F8;
}
.cell_list { .cell_list {
padding: 30rpx 30rpx; padding: 30rpx 30rpx;
margin: 0rpx 30rpx; margin: 0rpx 30rpx;
border-bottom: 1px solid #ddd; border-bottom: 1px solid #ddd;
} }
.txt{
.txt {
font-weight: 500; font-weight: 500;
font-size: 16px; font-size: 16px;
color: #3d3d3d color: #3d3d3d
} }
.cell_right image { .cell_right image {
width: 140rpx; width: 140rpx;
height: 140rpx; height: 140rpx;
border-radius: 50%; border-radius: 50%;
} }
.dialog{
width: 80vw; padding: 20rpx 30rpx; border-radius: 40rpx; line-height: 50rpx; .dialog {
width: 80vw;
padding: 20rpx 30rpx;
border-radius: 40rpx;
line-height: 50rpx;
} }
.dialog .title{
font-size: 36rpx; font-weight: bold; text-align: center; margin-bottom: 30rpx; .dialog .title {
font-size: 36rpx;
font-weight: bold;
text-align: center;
margin-bottom: 30rpx;
} }
.dialog .v1{
font-weight: 600;font-size: 16px;color: #1D61E7; float:left; .dialog .v1 {
font-weight: 600;
font-size: 16px;
color: #1D61E7;
float: left;
} }
</style> </style>

View File

@ -1,23 +1,23 @@
<template> <template>
<view class="page"> <view class="page">
<nav-bar title="About us" bgColor="#fff"></nav-bar> <nav-bar :title="$t('about.title')" bgColor="#fff"></nav-bar>
<view style="padding: 30px 10px;"> <view style="padding: 30px 10px;">
<view style="text-align: center;"> <view style="text-align: center;">
<image src="/static/images/w5.png" mode="cover" style="width: 150px; height: 150px; border: 1px solid #fff; border-radius: 10px; margin: auto;"></image> <image src="/static/images/logo1.png" mode="cover" style="width: 150px; height: 150px; border: 1px solid #fff; border-radius: 10px; margin: auto;"></image>
</view> </view>
<view style="font-size: 18px; font-weight: 600; color: #333; text-align: center; line-height: 40px;">MMT</view> <view style="font-size: 18px; font-weight: 600; color: #333; text-align: center; line-height: 40px;">MMT</view>
<view style="font-weight: 500; font-size: 14px; color: #999; text-align: center;">Version: 1.0.1</view> <view style="font-weight: 500; font-size: 14px; color: #999; text-align: center;">Version: {{init.version}}</view>
</view> </view>
<view class="cell_list" @click="onPageJump('/pages/about/Version')"> <view class="cell_list" @click="onPageJump('/pages/about/Version')">
<view class="cell_left txt">Version update</view> <view class="cell_left txt">{{$t('about.text1')}}</view>
<view class="cell_right arrow"></view> <view class="cell_right arrow"></view>
</view> </view>
<view class="cell_list" @click="onPageJump('/pages/about/details?id=1')"> <view class="cell_list" @click="onPageJump('/pages/about/details?id=service_agreement')">
<view class="cell_left txt">Service Agreement</view> <view class="cell_left txt">{{$t("about.text2")}}</view>
<view class="cell_right arrow"></view> <view class="cell_right arrow"></view>
</view> </view>
<view class="cell_list" @click="onPageJump('/pages/about/details?id=2')"> <view class="cell_list" @click="onPageJump('/pages/about/details?id=aboutus')">
<view class="cell_left txt">Company profile</view> <view class="cell_left txt">{{$t("about.text3")}}</view>
<view class="cell_right arrow"></view> <view class="cell_right arrow"></view>
</view> </view>
@ -38,7 +38,8 @@
}, },
data() { data() {
return { return {
list:[] list:[],
init: {}
}; };
}, },
computed: { computed: {
@ -46,6 +47,9 @@
// //
onLoad(e) { onLoad(e) {
this.getabout(); this.getabout();
this.$http.get('/api/common/init?lang=' + this.$i18n.locale).then(res => {
this.init = res.data;
});
}, },
// //
onShow() {}, onShow() {},

View File

@ -3,7 +3,7 @@
<nav-bar :title="$t('address.add.title')" bgColor="#fff"></nav-bar> <nav-bar :title="$t('address.add.title')" bgColor="#fff"></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="model" label-position="top" :rules="rules" ref="model" label-width="50%"> <uni-forms :modelValue="model" label-position="top" :rules="rules" ref="model" label-width="50%">
<uni-forms-item label="Select network"> <uni-forms-item :label="$t('address.add.text1')">
<view class="cell_list" style="padding: 10px; margin: 0px; background-color: #F8F8F8;" @click="open"> <view class="cell_list" style="padding: 10px; margin: 0px; background-color: #F8F8F8;" @click="open">
<view style="color: #333; font-size: 14px; font-weight: 600; line-height: 25px;"> <view style="color: #333; font-size: 14px; font-weight: 600; line-height: 25px;">
<image src="/static/images/s1.png" v-if="model.network == 'TRC-20'" style="width: 25px; height: 25px; float: left;" mode="cover"></image> <image src="/static/images/s1.png" v-if="model.network == 'TRC-20'" style="width: 25px; height: 25px; float: left;" mode="cover"></image>
@ -15,24 +15,24 @@
<view class="cell_right arrow"></view> <view class="cell_right arrow"></view>
</view> </view>
</uni-forms-item> </uni-forms-item>
<uni-forms-item label="Wallet address" name="address"> <uni-forms-item :label="$t('address.add.text2')" name="address">
<uni-easyinput :disabled="model.id != ''" v-model="model.address" placeholder="Enter address" style="background-color: #F5F7FA;"> <uni-easyinput :disabled="model.id != ''" v-model="model.address" :placeholder="$t('address.add.text3')" style="background-color: #F5F7FA;">
<template #right> <template #right>
<image src="/static/images/sm.png" @click="scanCode" style="width: 25px; height: 25px;" mode="cover"></image> <image src="/static/images/sm.png" @click="scanCode" style="width: 25px; height: 25px;" mode="cover"></image>
</template> </template>
</uni-easyinput> </uni-easyinput>
</uni-forms-item> </uni-forms-item>
<uni-forms-item label="Set the name" name="name"> <uni-forms-item :label="$t('address.add.text4')" name="name">
<uni-easyinput v-model="model.title" placeholder="Set the name" style="background-color: #F5F7FA !important;"></uni-easyinput> <uni-easyinput v-model="model.title" :placeholder="$t('address.add.text4')" style="background-color: #F5F7FA !important;"></uni-easyinput>
</uni-forms-item> </uni-forms-item>
</uni-forms> </uni-forms>
</view> </view>
<view style="bottom: 0px; position: absolute; width:100vw; height: 60px;"> <view style="bottom: 0px; position: absolute; width:100vw; height: 60px;">
<button type="primary" round style="width: 90%; margin: auto;" @click="submit">Save</button> <button type="primary" round style="width: 90%; margin: auto;" @click="submit">{{$t('buttonSave')}}</button>
</view> </view>
<uni-popup ref="popup" type="dialog" :is-mask-click="true" background-color="#fff" borderRadius="40rpx"> <uni-popup ref="popup" type="dialog" :is-mask-click="true" background-color="#fff" borderRadius="40rpx">
<view style="width: 80vw; padding: 20rpx 30rpx; border-radius: 40rpx; line-height: 50rpx;"> <view style="width: 80vw; padding: 20rpx 30rpx; border-radius: 40rpx; line-height: 50rpx;">
<view style="font-size: 36rpx; font-weight: bold; text-align: center; margin-bottom: 30rpx;">Select a network</view> <view style="font-size: 36rpx; font-weight: bold; text-align: center; margin-bottom: 30rpx;">{{$t('address.add.text5')}}</view>
<view style="padding-bottom: 20px; width: 100%;"> <view style="padding-bottom: 20px; width: 100%;">
<view @click="switchnetwork('TRC-20')"> <view @click="switchnetwork('TRC-20')">
<uni-row> <uni-row>
@ -79,10 +79,10 @@
}, },
rules: { rules: {
address: { address: {
rules:[{required: true,errorMessage: 'Please input address'}], rules:[{required: true,errorMessage: this.$t('address.add.text6')}],
}, },
title: { title: {
rules:[{required: true,errorMessage: 'Please input name'}], rules:[{required: true,errorMessage: this.$t('address.add.text7')}],
} }
} }
}; };

View File

@ -17,10 +17,10 @@
<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 src="/static/images/w5.png" mode="cover" style="width: 180px; height: 180px; margin: 80px auto 5px auto;"></image> <image src="/static/images/w5.png" mode="cover" style="width: 180px; height: 180px; margin: 80px auto 5px auto;"></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 style="bottom: 0px; position: absolute; width:100vw; height: 60px;"> <view style="bottom: 0px; position: absolute; width:100vw; height: 60px;">
<button type="primary" @click="onPageJump('/pages/address/add')" style="width: 90%; border-radius: 15px; border: 1px solid #fff; margin: auto; ">Add address</button> <button type="primary" @click="onPageJump('/pages/address/add')" style="width: 90%; border-radius: 15px; border: 1px solid #fff; margin: auto; ">{{$t('address.text1')}}</button>
</view> </view>
</view> </view>
</template> </template>

View File

@ -12,10 +12,10 @@
</view> </view>
<view style="margin-top: 20rpx;"> <view style="margin-top: 20rpx;">
<uni-search-bar class="uni-mt-10" radius="10" v-model="kw" <uni-search-bar class="uni-mt-10" radius="10" v-model="kw"
placeholder="Search the questionnaire" clearButton="auto" cancelButton="none" @confirm="search" /> :placeholder="$t('index.text1')" clearButton="auto" cancelButton="none" @confirm="search" />
</view> </view>
<view class="num"> <view class="num">
<view style="font-size: 30rpx; color: #999;">Total assets</view> <view style="font-size: 30rpx; color: #999;">{{$t('index.text2')}}</view>
<view> <view>
<span style="font-size: 60rpx; font-weight: bold; float: left;">{{parseFloat(user.money).toFixed(4)}}</span> <span style="font-size: 60rpx; font-weight: bold; float: left;">{{parseFloat(user.money).toFixed(4)}}</span>
<span style="font-size: 40rpx; font-weight: 600; margin: 20rpx 10rpx auto 10rpx; float: left;">USDT</span> <span style="font-size: 40rpx; font-weight: 600; margin: 20rpx 10rpx auto 10rpx; float: left;">USDT</span>
@ -23,7 +23,7 @@
<view style="clear: both;"></view> <view style="clear: both;"></view>
</view> </view>
<view style="font-size: 30rpx; color: #999;"> <view style="font-size: 30rpx; color: #999;">
<span>Today's earnings</span> <span>{{$t('index.text3')}}</span>
<span style="margin-left: 20rpx;">$ 0.00</span> <span style="margin-left: 20rpx;">$ 0.00</span>
</view> </view>
<view style="clear: both;"></view> <view style="clear: both;"></view>
@ -33,13 +33,13 @@
<uni-col :span="12"> <uni-col :span="12">
<button @click="onTokenJump('/pages/wallet/putforward')" style="background-color: #fff; border: 1px solid #1D61E7; border-radius: 40rpx; width: 93%; margin-top: 30rpx;"> <button @click="onTokenJump('/pages/wallet/putforward')" style="background-color: #fff; border: 1px solid #1D61E7; border-radius: 40rpx; width: 93%; margin-top: 30rpx;">
<image src="/static/images/index4.png" style="width: 30rpx; height: 30rpx; float: left; margin-left: 18%; margin-top: 30rpx;"></image> <image src="/static/images/index4.png" style="width: 30rpx; height: 30rpx; float: left; margin-left: 18%; margin-top: 30rpx;"></image>
<span style="float: left; color: #1D61E7; margin-left: 10rpx;">Cash out</span> <span style="float: left; color: #1D61E7; margin-left: 10rpx;">{{$t('index.text4')}}</span>
</button> </button>
</uni-col> </uni-col>
<uni-col :span="12"> <uni-col :span="12">
<button @click="onTokenJump('/pages/wallet/recharge')" style="background-color: #1D61E7; border: 1px solid #1D61E7; border-radius: 40rpx; width: 93%; float: right; margin-top: 30rpx;"> <button @click="onTokenJump('/pages/wallet/recharge')" style="background-color: #1D61E7; border: 1px solid #1D61E7; border-radius: 40rpx; width: 93%; float: right; margin-top: 30rpx;">
<image src="/static/images/index3.png" style="width: 30rpx; height: 30rpx; float: left; margin-left: 18%; margin-top: 30rpx;"></image> <image src="/static/images/index3.png" style="width: 30rpx; height: 30rpx; float: left; margin-left: 18%; margin-top: 30rpx;"></image>
<span style="float: left; color: #fff; margin-left: 10rpx;">Recharge</span> <span style="float: left; color: #fff; margin-left: 10rpx;">{{$t('recharge.title')}}</span>
</button> </button>
</uni-col> </uni-col>
</uni-row> </uni-row>
@ -52,7 +52,7 @@
{{ getcash(item) }} {{ getcash(item) }}
</swiper-item> </swiper-item>
</swiper> </swiper>
<uni-icons type="right" size="20" color="#999" style="margin-right: 15rpx;" />
</view> </view>
<view style="width: 94%; margin: 60rpx auto;"> <view style="width: 94%; margin: 60rpx auto;">
<uni-row> <uni-row>
@ -60,10 +60,10 @@
<image src="/static/images/index5.png" style="width: 220rpx; height: 180rpx; margin: 10rpx auto;"></image> <image src="/static/images/index5.png" style="width: 220rpx; height: 180rpx; margin: 10rpx auto;"></image>
</uni-col> </uni-col>
<uni-col :span="16"> <uni-col :span="16">
<view style="font-size: 30rpx; color: #999; margin-top: 10rpx;">Surprise reward</view> <view style="font-size: 30rpx; color: #999; margin-top: 10rpx;">{{$t('index.text6')}}</view>
<view style="font-size: 60rpx color: #333; font-weight: 600;">Invite friends to get high commission</view> <view style="font-size: 60rpx color: #333; font-weight: 600;">{{$t('index.text7')}}</view>
<view style="font-size: 30rpx; color: #333; margin-top: 10rpx;"> <view style="font-size: 30rpx; color: #333; margin-top: 10rpx;">
<span style="float: left;">View details</span> <span style="float: left;">{{$t('index.text8')}}</span>
<span style="float: left;"><uni-icons type="arrow-right" color="#333" size="20"></uni-icons></span> <span style="float: left;"><uni-icons type="arrow-right" color="#333" size="20"></uni-icons></span>
<span style="float: right;">1/3</span> <span style="float: right;">1/3</span>
</view> </view>
@ -84,13 +84,13 @@
<slider :value="item.used" :disabled="true" style="height: 16rpx;" min="0" :max="item.stock+item.used" step="100" /> <slider :value="item.used" :disabled="true" style="height: 16rpx;" min="0" :max="item.stock+item.used" step="100" />
</view> </view>
<view style="width: 55%; float: left; line-height: 35px; margin-left: 5%;"> <view style="width: 55%; float: left; line-height: 35px; margin-left: 5%;">
Answered: <span style="color: #1D61E7;">{{item.used}}</span>/{{item.stock+item.used}} {{$t('index.text9')}}: <span style="color: #1D61E7;">{{item.used}}</span>/{{item.stock+item.used}}
</view> </view>
<view style="text-align: left; clear: both;">Period: {{item.billing_cycle}} {{item.cycle_type}}</view> <view style="text-align: left; clear: both;">Period: {{item.billing_cycle}} {{item.cycle_type}}</view>
</view> </view>
<view style="font-size: 12px; font-weight: 400; color: #999; line-height: 20px; te"> <view style="font-size: 12px; font-weight: 400; color: #999; line-height: 20px; te">
<view style="float: left; color: #333; font-size: 16px; font-weight: 500; line-height: 40px;"> <view style="float: left; color: #333; font-size: 16px; font-weight: 500; line-height: 40px;">
reward: <span style="font-size: 20px;">${{parseFloat(item.price).toFixed(2)}} </span> {{$t('index.text10')}}: <span style="font-size: 20px;">${{parseFloat(item.price).toFixed(2)}} </span>
</view> </view>
<view style="float: right;"> <view style="float: right;">
<button type="primary" class="b" @click="onTokenJump('/pages/questionnaire/details?id='+item.id)">To answer</button> <button type="primary" class="b" @click="onTokenJump('/pages/questionnaire/details?id='+item.id)">To answer</button>
@ -100,7 +100,7 @@
</uni-row> </uni-row>
</view> </view>
<view @click="onPageJump1('/pages/questionnaire/index')" style="border: 1px solid #999; border-radius: 45rpx; font-size: 34rpx; margin: 40rpx auto; color: #333; width: 40%; text-align: center; height: 90rpx; line-height: 90rpx;"> <view @click="onPageJump1('/pages/questionnaire/index')" style="border: 1px solid #999; border-radius: 45rpx; font-size: 34rpx; margin: 40rpx auto; color: #333; width: 40%; text-align: center; height: 90rpx; line-height: 90rpx;">
View all <uni-icons type="arrow-right" color="#333" size="20"></uni-icons> {{$t('index.text11')}} <uni-icons type="arrow-right" color="#333" size="20"></uni-icons>
</view> </view>
</uni-section> </uni-section>
</view> </view>
@ -109,34 +109,34 @@
<view class="v2" style="margin-top: 20rpx; padding: 30rpx 20rpx;"> <view class="v2" style="margin-top: 20rpx; padding: 30rpx 20rpx;">
<view><image src="/static/images/index6.png" style="width: 130rpx; height: 130rpx; margin: auto;"></image></view> <view><image src="/static/images/index6.png" style="width: 130rpx; height: 130rpx; margin: auto;"></image></view>
<view style="font-size: 34rpx; font-weight: 600; text-align: center; margin-top: 20rpx;"> <view style="font-size: 34rpx; font-weight: 600; text-align: center; margin-top: 20rpx;">
Application of new technologies (automation tools/AI assistance) {{$t('index.text12')}}
</view> </view>
<view style="text-align: center; margin-top: 20rpx; color: #999; font-size: 26rpx;"> <view style="text-align: center; margin-top: 20rpx; color: #999; font-size: 26rpx;">
1.&nbsp;Intelligent answer engine<br> 1.&nbsp;{{$t('index.text13')}}<br>
2.&nbsp;Dynamic question bank management system<br> 2.&nbsp;{{$t('index.text14')}}<br>
3.&nbsp;Multi-mode anti-detection system 3.&nbsp;{{$t('index.text15')}}
</view> </view>
</view> </view>
<view class="v2"> <view class="v2">
<view><image src="/static/images/index7.png" style="width: 130rpx; height: 130rpx; margin: auto;"></image></view> <view><image src="/static/images/index7.png" style="width: 130rpx; height: 130rpx; margin: auto;"></image></view>
<view style="font-size: 34rpx; font-weight: 600; text-align: center; margin-top: 20rpx;"> <view style="font-size: 34rpx; font-weight: 600; text-align: center; margin-top: 20rpx;">
Construction of Quality Monitoring System {{$t('index.text16')}}
</view> </view>
<view style="text-align: center; margin-top: 20rpx; color: #999; font-size: 26rpx;"> <view style="text-align: center; margin-top: 20rpx; color: #999; font-size: 26rpx;">
1.&nbsp;Doube-blind audit mechanism<br> 1.&nbsp;{{$t('index.text17')}}<br>
2.&nbsp;Dynamic scoring model<br> 2.&nbsp;{{$t('index.text18')}}<br>
3.&nbsp;Data traceability 3.&nbsp;{{$t('index.text19')}}
</view> </view>
</view> </view>
<view class="v2"> <view class="v2">
<view><image src="/static/images/index8.png" style="width: 130rpx; height: 130rpx; margin: auto;"></image></view> <view><image src="/static/images/index8.png" style="width: 130rpx; height: 130rpx; margin: auto;"></image></view>
<view style="font-size: 34rpx; font-weight: 600; text-align: center; margin-top: 20rpx;"> <view style="font-size: 34rpx; font-weight: 600; text-align: center; margin-top: 20rpx;">
Operational guidelines for compliance {{$t('index.text20')}}
</view> </view>
<view style="text-align: center; margin-top: 20rpx; color: #999; font-size: 26rpx;"> <view style="text-align: center; margin-top: 20rpx; color: #999; font-size: 26rpx;">
1.&nbsp;Identity portrait consistency<br> 1.&nbsp;{{$t('index.text21')}}<br>
2.&nbsp;Behavior pattern simulation<br> 2.&nbsp;{{$t('index.text22')}}<br>
3.&nbsp;Equipment environment quarantine 3.&nbsp;{{$t('index.text23')}}
</view> </view>
</view> </view>
</uni-section> </uni-section>
@ -200,7 +200,7 @@
// //
async onLoad(e) { async onLoad(e) {
uni.showLoading({ uni.showLoading({
title:'Data Loading...' title:this.$t('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;
@ -260,7 +260,7 @@
let domain = email.split('@')[1]; // let domain = email.split('@')[1]; //
let midIndex = Math.floor(username.length / 2) - 2; // let midIndex = Math.floor(username.length / 2) - 2; //
let censoredEmail = username.slice(0, midIndex) + "****" + username.slice(midIndex + 4) + '@' + domain; let censoredEmail = username.slice(0, midIndex) + "****" + username.slice(midIndex + 4) + '@' + domain;
return censoredEmail + ' User gets 30 USDT' return censoredEmail + this.$t('index.text5', {par: parseFloat(o.recive_amount).toFixed(2)})
} }
}, },
// //

View File

@ -1,44 +1,44 @@
<template> <template>
<view class="page"> <view class="page">
<nav-bar title="forgot password" bgColor="#fff"></nav-bar> <nav-bar :title="$t('forgot.title')" bgColor="#fff"></nav-bar>
<view style="width: 92%; margin: 10px auto; padding: 15px 10px;" v-if="show==1"> <view style="width: 92%; margin: 10px auto; padding: 15px 10px;" v-if="show==1">
<view style="font-size: 32px; color: #333; font-weight: 700; margin-top: 20px;">Forgot Password</view> <view style="font-size: 32px; color: #333; font-weight: 700; margin-top: 20px;">{{$t('forgot.title')}}</view>
<view style="color: #6C7278; font-weight: 500; font-size: 14px; margin-bottom: 20px; margin-top: 10px;">Don't worry it happens. Please enter the address associate with your account.</view> <view style="color: #6C7278; font-weight: 500; font-size: 14px; margin-bottom: 20px; margin-top: 10px;">{{$t('forgot.text1')}}</view>
<uni-forms label-position="top" label-width="80px" :model="model"> <uni-forms label-position="top" label-width="80px" :model="model">
<uni-forms-item label="Email" name="email"> <uni-forms-item label="Email" name="email">
<uni-easyinput type="text" v-model="model.email" placeholder="Please enter your email address"></uni-easyinput> <uni-easyinput type="text" v-model="model.email" :placeholder="$t('forgot.text2')"></uni-easyinput>
</uni-forms-item> </uni-forms-item>
</uni-forms> </uni-forms>
<button type="primary" round style="width: 100%;" :disabled="isSend" @click="sendcode()">{{sendText}}</button> <button type="primary" round style="width: 100%;" :disabled="isSend" @click="sendcode()">{{sendText}}</button>
</view> </view>
<view style="width: 92%; margin: 10px auto; padding: 15px 10px;" v-if="show==2"> <view style="width: 92%; margin: 10px auto; padding: 15px 10px;" v-if="show==2">
<view style="font-size: 32px; color: #333; font-weight: 700; margin-top: 20px;">Verification code</view> <view style="font-size: 32px; color: #333; font-weight: 700; margin-top: 20px;">{{$t('forgot.text5')}}</view>
<view style="color: #6C7278; font-weight: 500; font-size: 14px; margin-bottom: 20px; margin-top: 10px;">We have to sent the code verification to Your Email.</view> <view style="color: #6C7278; font-weight: 500; font-size: 14px; margin-bottom: 20px; margin-top: 10px;">{{$t('forgot.text6')}}</view>
<uni-easyinput type="number" :maxlength="1" :clearable="false" :focus="show==2" v-model="code1" style="width: 80rpx; float: left;" ref="myInput0"></uni-easyinput> <uni-easyinput type="number" :maxlength="1" :clearable="false" :focus="show==2" v-model="code1" style="width: 80rpx; float: left;" ref="myInput0"></uni-easyinput>
<uni-easyinput type="number" :clearable="false" :focus="code1.length>0" v-model="code2" style="width: 80rpx; float: left; margin-left: 90rpx;" ref="myInput1"></uni-easyinput> <uni-easyinput type="number" :clearable="false" :focus="code1.length>0" v-model="code2" style="width: 80rpx; float: left; margin-left: 90rpx;" ref="myInput1"></uni-easyinput>
<uni-easyinput type="number" :clearable="false" :focus="code2.length>0" v-model="code3" style="width: 80rpx; float: left; margin-left: 90rpx;" ref="myInput2"></uni-easyinput> <uni-easyinput type="number" :clearable="false" :focus="code2.length>0" v-model="code3" style="width: 80rpx; float: left; margin-left: 90rpx;" ref="myInput2"></uni-easyinput>
<uni-easyinput type="number" :clearable="false" :focus="code3.length>0" v-model="code4" style="width: 80rpx; float: left; margin-left: 90rpx;" ref="myInput3"></uni-easyinput> <uni-easyinput type="number" :clearable="false" :focus="code3.length>0" v-model="code4" style="width: 80rpx; float: left; margin-left: 90rpx;" ref="myInput3"></uni-easyinput>
<view style="font-size: 14px; font-weight: 400; color: #6C7278; text-align: right; line-height: 60px;">Didn't get a code? <view style="font-size: 14px; font-weight: 400; color: #6C7278; text-align: right; line-height: 60px;">{{$t('forgot.text7')}}
<span style="color: #1D61E7; margin:0px 10px;">Resend</span></view> <span style="color: #1D61E7; margin:0px 10px;" @click="sendcode">{{$t('forgot.text8')}}</span></view>
<button type="primary" round style="width: 100%;" :disabled="codedisabled" @click="submit()">Submit</button> <button type="primary" round style="width: 100%;" :disabled="codedisabled" @click="submit()">{{$t('buttonSubmit')}}</button>
</view> </view>
<view style="width: 92%; margin: 10px auto; padding: 15px 10px;" v-if="show==3"> <view style="width: 92%; margin: 10px auto; padding: 15px 10px;" v-if="show==3">
<view style="font-size: 32px; color: #333; font-weight: 700; margin-top: 20px;">Change password</view> <view style="font-size: 32px; color: #333; font-weight: 700; margin-top: 20px;">{{$t('forgot.text9')}}</view>
<view style="color: #6C7278; font-weight: 500; font-size: 14px; margin-bottom: 20px; margin-top: 10px;">Don't be afraid of forgetting the password, you can change it to a password that you can remember.</view> <view style="color: #6C7278; font-weight: 500; font-size: 14px; margin-bottom: 20px; margin-top: 10px;">{{$t('forgot.text10')}}</view>
<uni-forms label-position="top" label-width="80px" :model="model" :rules="rules" ref="model"> <uni-forms label-position="top" label-width="80px" :model="model" :rules="rules" ref="model">
<uni-forms-item label="Password" name="password"> <uni-forms-item :label="$t('forgot.text11')" name="password">
<uni-easyinput type="password" :passwordIcon="true" v-model="model.password" placeholder="Please enter your Password" /> <uni-easyinput type="password" :passwordIcon="true" v-model="model.password" :placeholder="$t('forgot.text12')" />
</uni-forms-item> </uni-forms-item>
<uni-forms-item label="Confirm password" name="cpassword" labelWidth="400rpx"> <uni-forms-item :label="$t('forgot.text13')" name="cpassword" labelWidth="400rpx">
<uni-easyinput type="password" :passwordIcon="true" v-model="model.cpassword" placeholder="Please enter your confirm Password" /> <uni-easyinput type="password" :passwordIcon="true" v-model="model.cpassword" :placeholder="$t('forgot.text14')" />
</uni-forms-item> </uni-forms-item>
</uni-forms> </uni-forms>
<button type="primary" round style="width: 100%;" @click="changePossword()">Submit</button> <button type="primary" round style="width: 100%;" @click="changePossword()">{{$t('buttonSubmit')}}</button>
</view> </view>
<view style="bottom: 0px; position: absolute; width:100vw; height: 50px;"> <view style="bottom: 0px; position: absolute; width:100vw; height: 50px;">
<view style="font-size: 12px; color: #6C7278; font-weight: 500; text-align: center;"> <view style="font-size: 12px; color: #6C7278; font-weight: 500; text-align: center;">
You remember your password? {{$t('forgot.text15')}}
<span style="color: #4D81E7; margin-left: 10px;" @click="onPageJump('/pages/mine/login')">Login</span> <span style="color: #4D81E7; margin-left: 10px;" @click="onPageJump('/pages/mine/login')">{{$t('forgot.text16')}}</span>
</view> </view>
</view> </view>
</view> </view>
@ -53,7 +53,7 @@
data() { data() {
return { return {
show: 1, show: 1,
sendText: 'Send Code', sendText: this.$t('forgot.text3'),
isSend: false, isSend: false,
codedisabled: true, codedisabled: true,
shouldFocus: true, shouldFocus: true,
@ -68,8 +68,8 @@
code: '' code: ''
}, },
rules: { rules: {
password: {rules:[{required: true,errorMessage: 'Please input password'}]}, password: {rules:[{required: true,errorMessage: this.$t('forgot.text17')}]},
cpassword: {rules:[{required: true,errorMessage: 'Please input Confirm password'}]}, cpassword: {rules:[{required: true,errorMessage: this.$t('forgot.text18')}]},
} }
}; };
}, },
@ -98,11 +98,11 @@
}, },
sendcode(){ sendcode(){
if (this.model.email == '') { if (this.model.email == '') {
uni.showToast({title: 'Email is empty'}); uni.showToast({title: this.$t('forgot.text19')});
return; return;
} }
if (!this.$base.mailRegular.test(this.model.email)) { if (!this.$base.mailRegular.test(this.model.email)) {
uni.showToast({title: 'Email address error'}); uni.showToast({title: this.$t('forgot.text20')});
return; return;
} }
let s = 120; let s = 120;
@ -117,16 +117,16 @@
this.show=2; this.show=2;
this.isSend = true; this.isSend = true;
uni.showToast({title: 'Successfully sent'}); uni.showToast({title: 'Successfully sent'});
this.sendText = "Send in " + s + "s"; this.sendText = this.$t('forgot.text4',{par: s});
let intervalId = setInterval(() => { let intervalId = setInterval(() => {
s = s-1; s = s-1;
if (s == 0) { if (s == 0) {
clearInterval(intervalId); clearInterval(intervalId);
this.isSend = false; this.isSend = false;
this.sendText = "Get code"; this.sendText = this.$t('forgot.text3');
} }
else{ else{
this.sendText = "Send in " + s + "s"; this.sendText = this.$t('forgot.text4',{par: s});
} }
}, 1000); }, 1000);
} }
@ -143,11 +143,11 @@
changePossword(){ changePossword(){
this.$refs.model.validate().then(res=>{ this.$refs.model.validate().then(res=>{
if (!this.$base.passwordRegular.test(this.model.password)) { if (!this.$base.passwordRegular.test(this.model.password)) {
uni.showToast({title: 'Please enter a 6-10 digit password', icon:'error'}); uni.showToast({title: this.$t('forgot.text21'), icon:'error'});
return; return;
} }
if (this.model.cpassword !== this.model.password) { if (this.model.cpassword !== this.model.password) {
uni.showToast({title: 'Two passwords are inconsistent', icon:'error'}); uni.showToast({title: this.$t('forgot.text22'), icon:'error'});
return; return;
} }
this.$http.post('/api/common/resetpwd', {email: this.model.email, newpassword: this.model.password, code: this.model.code}).then(res => { this.$http.post('/api/common/resetpwd', {email: this.model.email, newpassword: this.model.password, code: this.model.code}).then(res => {

View File

@ -1,6 +1,6 @@
<template> <template>
<view class="minebg"> <view class="minebg">
<nav-bar title="" 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="v1"> <view class="v1">
<uni-badge :text="noticeCount" absolute="rightTop" size="small" class="item" type="error"> <uni-badge :text="noticeCount" absolute="rightTop" size="small" class="item" type="error">
<uni-icons size="20" type="chat" @click="onTokenJump('/pages/mine/notice')"></uni-icons> <uni-icons size="20" type="chat" @click="onTokenJump('/pages/mine/notice')"></uni-icons>
@ -28,7 +28,7 @@
</view> </view>
<view class="sj" v-if="user.role_id == 1"> <view class="sj" v-if="user.role_id == 1">
<view class="sj1">{{$t('mine.text2')}} </view> <view class="sj1">{{$t('mine.text2')}} </view>
<view class="sj2">{{$t('mine.text3')}} </view> <view class="sj2">{{$t('mine.text3')}} 🚀 </view>
</view> </view>
<view class="sj" v-else> <view class="sj" v-else>
<view class="sj1" style="margin-top: 10px;">{{$t('mine.text4')}}</view> <view class="sj1" style="margin-top: 10px;">{{$t('mine.text4')}}</view>
@ -58,7 +58,7 @@
<uni-col :span="24" style="margin-top: 10px;"> <uni-col :span="24" style="margin-top: 10px;">
<view class="wallet" style="padding: 15px 10px 12px 10px;" @click="onTokenJump('/pages/address/index')"> <view class="wallet" style="padding: 15px 10px 12px 10px;" @click="onTokenJump('/pages/address/index')">
<image class="i" src="/static/images/5.png" mode="cover"></image> <image class="i" src="/static/images/5.png" mode="cover"></image>
<span class="s">Address book</span> <span class="s">{{$t('mine.text7')}}</span>
<uni-icons size="20" type="right" style="float: right;"></uni-icons> <uni-icons size="20" type="right" style="float: right;"></uni-icons>
<view style="clear: both;"></view> <view style="clear: both;"></view>
</view> </view>
@ -66,7 +66,7 @@
<uni-col :span="24" style="margin-top: 10px;"> <uni-col :span="24" style="margin-top: 10px;">
<view class="wallet" style="padding: 15px 10px 12px 10px;"> <view class="wallet" style="padding: 15px 10px 12px 10px;">
<image class="i" src="/static/images/m4.png" fit="cover"></image> <image class="i" src="/static/images/m4.png" fit="cover"></image>
<span class="s" @click="onTokenJump1('/pages/im/index')">Online service</span> <span class="s" @click="onTokenJump1('/pages/im/index')">{{$t('mine.text8')}}</span>
<uni-icons size="20" type="right" style="float: right;"></uni-icons> <uni-icons size="20" type="right" style="float: right;"></uni-icons>
<view style="clear: both;"></view> <view style="clear: both;"></view>
</view> </view>
@ -74,7 +74,7 @@
<uni-col :span="24" style="margin-top: 10px;"> <uni-col :span="24" style="margin-top: 10px;">
<view class="wallet" style="padding: 15px 10px 12px 10px;" @click="onPageJump('/pages/about/help')"> <view class="wallet" style="padding: 15px 10px 12px 10px;" @click="onPageJump('/pages/about/help')">
<image class="i" src="/static/images/m6.png" fit="cover"></image> <image class="i" src="/static/images/m6.png" fit="cover"></image>
<span class="s">Help Center</span> <span class="s">{{$t('mine.text9')}}</span>
<uni-icons size="20" type="right" style="float: right;"></uni-icons> <uni-icons size="20" type="right" style="float: right;"></uni-icons>
<view style="clear: both;"></view> <view style="clear: both;"></view>
</view> </view>
@ -82,7 +82,7 @@
<uni-col :span="24" style="margin-top: 10px;"> <uni-col :span="24" style="margin-top: 10px;">
<view class="wallet" style="padding: 15px 10px 12px 10px;" @click="onPageJump('/pages/about/index')"> <view class="wallet" style="padding: 15px 10px 12px 10px;" @click="onPageJump('/pages/about/index')">
<image class="i" src="/static/images/m3.png" fit="cover"></image> <image class="i" src="/static/images/m3.png" fit="cover"></image>
<span class="s">About us</span> <span class="s">{{$t('mine.text10')}}</span>
<uni-icons size="20" type="right" style="float: right;"></uni-icons> <uni-icons size="20" type="right" style="float: right;"></uni-icons>
<view style="clear: both;"></view> <view style="clear: both;"></view>
</view> </view>
@ -144,7 +144,7 @@
}, },
onShow(){ onShow(){
uni.showLoading({ uni.showLoading({
title:'Array loading...' title: this.$t('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;
@ -227,7 +227,6 @@
<style scoped> <style scoped>
.uni-page-body{background-color: #F8F8F8 !important;} .uni-page-body{background-color: #F8F8F8 !important;}
.page{min-height: 93vh;position: relative; background-color: #F8F8F8;} .page{min-height: 93vh;position: relative; background-color: #F8F8F8;}
::v-deep .header_icon{display: none;}
.minebg{ .minebg{
width: 100vw; width: 100vw;
min-height: 93vh; min-height: 93vh;

View File

@ -1,38 +1,38 @@
<template> <template>
<view class="page"> <view class="page">
<nav-bar title="Personal details" bgColor="#F5f5f5"></nav-bar> <nav-bar :title="$t('personal.title')" bgColor="#F5f5f5"></nav-bar>
<view class="cell_list" @click="dialogVisible = true"> <view class="cell_list" @click="dialogVisible = true">
<view class="cell_left txt">Head portrait</view> <view class="cell_left txt">{{$t('personal.text1')}}</view>
<view class="cell_right arrow"> <view class="cell_right arrow">
<image :src="avatar" mode="aspectFill"></image> <image :src="avatar" mode="aspectFill"></image>
</view> </view>
</view> </view>
<z-prompt :value="nickname" options="nickname" text="Please enter a nickname" @confirm="onNameChange" :options="popupOptions"> <z-prompt :value="nickname" options="nickname" text="Please enter a nickname" @confirm="onNameChange" :options="popupOptions">
<view class="cell_list"> <view class="cell_list">
<view class="cell_left txt">User name</view> <view class="cell_left txt">{{$t('personal.text2')}}</view>
<view class="cell_right arrow">{{ nickname }}</view> <view class="cell_right arrow">{{ nickname }}</view>
</view> </view>
</z-prompt> </z-prompt>
<view class="cell_list"> <view class="cell_list">
<view class="cell_left txt">User ID</view> <view class="cell_left txt">{{$t('personal.text3')}}</view>
<view class="cell_right ">{{id}}</view> <view class="cell_right ">{{id}}</view>
</view> </view>
<view class="cell_list"> <view class="cell_list">
<view class="cell_left txt">Account</view> <view class="cell_left txt">{{$t('personal.text4')}}</view>
<view class="cell_right">{{account}}</view> <view class="cell_right">{{account}}</view>
</view> </view>
<view class="cell_list"> <view class="cell_list">
<view class="cell_left txt">Identity</view> <view class="cell_left txt">{{$t('personal.text5')}}</view>
<view class="cell_right">{{identity}}</view> <view class="cell_right">{{identity}}</view>
</view> </view>
<popup v-model="dialogVisible"> <popup v-model="dialogVisible">
<view class="popup_content"> <view class="popup_content">
<view @click="takePhoto">Photograph</view> <view @click="takePhoto">{{$t('personal.text6')}}</view>
<view @click="onUnloadImg">My Album Selection</view> <view @click="onUnloadImg">{{$t('personal.text7')}}</view>
</view> </view>
<view class="popup_content1"> <view class="popup_content1">
<view>Cancel</view> <view>{{$t('buttonCancel')}}</view>
</view> </view>
</popup> </popup>
</view> </view>

View File

@ -1,29 +1,29 @@
<template> <template>
<view class="page"> <view class="page">
<nav-bar title="Log in" bgColor="#fff"></nav-bar> <nav-bar :title="$t('login.title')" bgColor="#fff"></nav-bar>
<view style="width: 92%; margin: 10px auto; padding: 15px 10px;"> <view style="width: 92%; margin: 10px auto; padding: 15px 10px;">
<view> <view>
<image src="/static/images/109.png" style="width: 25px; height: 25px; float: left;" fit="cover"></image> <image src="/static/images/109.png" style="width: 25px; height: 25px; float: left;" fit="cover"></image>
<span style="font-size: 20px; font-weight: 700; float: left; color: #3d3d3d; margin-left: 10px;">Marsh Questionnaire</span> <span style="font-size: 20px; font-weight: 700; float: left; color: #3d3d3d; margin-left: 10px;">{{$t('login.text1')}}</span>
<view style="clear: both;"></view> <view style="clear: both;"></view>
</view> </view>
<view style="font-size: 32px; color: #333; font-weight: 700; margin-top: 20px;">Sign in to your Account</view> <view style="font-size: 32px; color: #333; font-weight: 700; margin-top: 20px;">{{$t('login.text2')}}</view>
<view style="color: #6C7278; font-weight: 500; font-size: 14px; margin-bottom: 20px;">Enter your email and password to log in </view> <view style="color: #6C7278; font-weight: 500; font-size: 14px; margin-bottom: 20px;">{{$t('login.text3')}}</view>
<uni-forms label-position="top" label-width="80px" :model="loginModel" :rules="rules" ref="loginModel"> <uni-forms label-position="top" label-width="80px" :model="loginModel" :rules="rules" ref="loginModel">
<uni-forms-item label="Email" name="username"> <uni-forms-item label="Email" name="username">
<uni-easyinput type="text" v-model="loginModel.username" placeholder="Please enter your email address"></uni-easyinput> <uni-easyinput type="text" v-model="loginModel.username" :placeholder="$t('login.text4')"></uni-easyinput>
</uni-forms-item> </uni-forms-item>
<uni-forms-item label="Password" name="password"> <uni-forms-item :label="$t('forgot.text11')" name="password">
<uni-easyinput type="password" :passwordIcon="true" v-model="loginModel.password" placeholder="Please enter your Password" /> <uni-easyinput type="password" :passwordIcon="true" v-model="loginModel.password" :placeholder="$t('login.text5')" />
</uni-forms-item> </uni-forms-item>
</uni-forms> </uni-forms>
<view style="font-size: 12px; color:#4D81E7; font-weight: 500; text-align: right; margin-bottom: 30px;" @click="onPageJump('/pages/mine/forgotpassword')">Forgot Password ?</view> <view style="font-size: 12px; color:#4D81E7; font-weight: 500; text-align: right; margin-bottom: 30px;" @click="onPageJump('/pages/mine/forgotpassword')">{{$t('login.text6')}}</view>
<button type="primary" round style="width: 100%;" @click="login()">log in</button> <button type="primary" round style="width: 100%;" @click="login()">{{$t('login.title')}}</button>
</view> </view>
<view style="bottom: 0px; position: absolute; width:100vw; height: 50px;"> <view style="bottom: 0px; position: absolute; width:100vw; height: 50px;">
<view style="font-size: 12px; color: #6C7278; font-weight: 500; text-align: center;"> <view style="font-size: 12px; color: #6C7278; font-weight: 500; text-align: center;">
Dont have an account? {{$t('login.text7')}}
<span style="color: #4D81E7; margin-left: 10px;" @click="onPageJump('/pages/mine/signup')">Sign Up</span> <span style="color: #4D81E7; margin-left: 10px;" @click="onPageJump('/pages/mine/signup')">{{$t('login.text8')}}</span>
</view> </view>
</view> </view>
</view> </view>
@ -42,8 +42,8 @@
password: '' password: ''
}, },
rules: { rules: {
username: {rules:[{required: true,errorMessage: 'Please enter your email address'}]}, username: {rules:[{required: true,errorMessage: this.$t('login.text9')}]},
password: {rules:[{required: true,errorMessage: 'Please input a password'}]}, password: {rules:[{required: true,errorMessage: this.$t('login.text10')}]},
} }
}; };
}, },
@ -67,7 +67,7 @@
login(){ login(){
this.$refs.loginModel.validate().then(res=>{ this.$refs.loginModel.validate().then(res=>{
if (!this.$base.mailRegular.test(this.loginModel.username)) { if (!this.$base.mailRegular.test(this.loginModel.username)) {
uni.showToast({title: 'Email address error', icon:'error'}); uni.showToast({title: this.$t('setPasswork.text13'), icon:'error'});
return; return;
} }
this.$http.post('/api/common/login', this.loginModel).then(res => { this.$http.post('/api/common/login', this.loginModel).then(res => {

View File

@ -1,7 +1,7 @@
<template> <template>
<view class="page"> <view class="page">
<nav-bar title="Notice" bgColor="#fff"> <nav-bar :title="$t('notice.title')" bgColor="#fff">
<span slot="right" style="margin-right: 10px; font-size: 14px;" @click="allRead">All read</span> <span slot="right" style="margin-right: 10px; font-size: 14px;" @click="allRead">{{$t('notice.text1')}}</span>
</nav-bar> </nav-bar>
<view style="width: 92%; margin: 10px auto;" v-if="list.length > 0"> <view style="width: 92%; margin: 10px auto;" v-if="list.length > 0">
<view class="cell_list" v-for="item in list" :key="item.id" style="margin-top: 10px; border-radius: 10px;" @click="onPageJump(item.id)"> <view class="cell_list" v-for="item in list" :key="item.id" style="margin-top: 10px; border-radius: 10px;" @click="onPageJump(item.id)">
@ -18,8 +18,8 @@
</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: 180px; height: 180px; margin-top: 80px;" src="/static/images/w5.png" mode="cover"></image> <image style="width: 180px; height: 180px; 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>
</template> </template>

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('noticedetail.title')" bgColor="#fff"></nav-bar>
<view style="width: 92%; margin: 20px auto;"> <view style="width: 92%; margin: 20px auto;">
<view style="font-weight: 700;font-size: 20px;color: #3D3D3D;line-height: 28px;text-transform: none;"> <view style="font-weight: 700;font-size: 20px;color: #3D3D3D;line-height: 28px;text-transform: none;">
{{model.title}} {{model.title}}

View File

@ -1,15 +1,15 @@
<template> <template>
<view class="page"> <view class="page">
<nav-bar title="Sign up" bgColor="#fff"></nav-bar> <nav-bar :title="$t('signup.title')" bgColor="#fff"></nav-bar>
<view style="width: 92%; margin: auto; padding: 15px 10px;" v-if="pageShow==1"> <view style="width: 92%; margin: auto; padding: 15px 10px;" v-if="pageShow==1">
<view style="font-size: 32px; color: #333; font-weight: 700;">Sign up</view> <view style="font-size: 32px; color: #333; font-weight: 700;">{{$t('signup.title')}}</view>
<view style="color: #6C7278; font-weight: 500; font-size: 14px; margin-bottom: 20px; margin-top: 10px;">Create an account to continue!</view> <view style="color: #6C7278; font-weight: 500; font-size: 14px; margin-bottom: 20px; margin-top: 10px;">{{$t('signup.text1')}}</view>
<uni-forms label-position="top" label-width="80px" :modelValue="signupModel" :rules="rules" ref="signupModel"> <uni-forms label-position="top" label-width="80px" :modelValue="signupModel" :rules="rules" ref="signupModel">
<uni-forms-item label="Email" name="email" label-width="400rpx"> <uni-forms-item label="Email" name="email" label-width="400rpx">
<uni-easyinput type="text" v-model="signupModel.email" placeholder="Please enter your email address"></uni-easyinput> <uni-easyinput type="text" v-model="signupModel.email" :placeholder="$t('signup.text2')"></uni-easyinput>
</uni-forms-item> </uni-forms-item>
<uni-forms-item label="Verification code" name="code" label-width="400rpx"> <uni-forms-item :label="$t('signup.text3')" name="code" label-width="400rpx">
<uni-easyinput type="number" v-model="signupModel.code" placeholder="Enter email verification code"> <uni-easyinput type="number" v-model="signupModel.code" :placeholder="$t('signup.text4')">
<template #right> <template #right>
<button type="primary" <button type="primary"
:disabled="isSend" :disabled="isSend"
@ -18,37 +18,37 @@
</template> </template>
</uni-easyinput> </uni-easyinput>
</uni-forms-item> </uni-forms-item>
<uni-forms-item label="Password" name="password" label-width="400rpx"> <uni-forms-item :label="$t('forgot.text11')" name="password" label-width="400rpx">
<uni-easyinput type="password" :passwordIcon="true" v-model="signupModel.password" placeholder="Please enter your Password" /> <uni-easyinput type="password" :passwordIcon="true" v-model="signupModel.password" :placeholder="$t('login.text5')" />
</uni-forms-item> </uni-forms-item>
<uni-forms-item label="Confirm password" name="cpassword" label-width="400rpx"> <uni-forms-item :label="$t('forgot.text13')" name="cpassword" label-width="400rpx">
<uni-easyinput type="password" :passwordIcon="true" v-model="signupModel.cpassword" placeholder="Please enter your confirm password" /> <uni-easyinput type="password" :passwordIcon="true" v-model="signupModel.cpassword" :placeholder="$t('forgot.text14')" />
</uni-forms-item> </uni-forms-item>
</uni-forms> </uni-forms>
<view class="f">Forgot Password ?</view> <view class="f">{{$t('login.text6')}}</view>
<button type="primary" round style="width: 100%;" @click="next">Next</button> <button type="primary" round style="width: 100%;" @click="next">{{$t('signup.text5')}}</button>
</view> </view>
<view style="width: 92%; margin: auto; padding: 15px 10px;" v-if="pageShow==2"> <view style="width: 92%; margin: auto; padding: 15px 10px;" v-if="pageShow==2">
<view style="font-size: 32px; color: #333; font-weight: 700;">Sign up</view> <view style="font-size: 32px; color: #333; font-weight: 700;">{{$t('signup.title')}}</view>
<view style="color: #6C7278; font-weight: 500; font-size: 14px; margin-bottom: 20px; margin-top: 10px;">Create an account to continue!</view> <view style="color: #6C7278; font-weight: 500; font-size: 14px; margin-bottom: 20px; margin-top: 10px;">{{$t('signup.text1')}}</view>
<uni-forms label-position="top" label-width="80px" :modelValue="signupModel1" :rules="rules1" ref="signupModel1"> <uni-forms label-position="top" label-width="80px" :modelValue="signupModel1" :rules="rules1" ref="signupModel1">
<uni-forms-item label="Trade password" name="trade_password" label-width="400rpx"> <uni-forms-item :label="$t('signup.text6')" name="trade_password" label-width="400rpx">
<uni-easyinput type="password" :passwordIcon="true" v-model="signupModel1.trade_password" placeholder="Please enter your trade Password" /> <uni-easyinput type="password" :passwordIcon="true" v-model="signupModel1.trade_password" :placeholder="$t('signup.text7')" />
</uni-forms-item> </uni-forms-item>
<uni-forms-item label="Confirm Trade password" name="ctrade_password" label-width="400rpx"> <uni-forms-item :label="$t('signup.text10')" name="ctrade_password" label-width="400rpx">
<uni-easyinput type="password" :passwordIcon="true" v-model="signupModel1.ctrade_password" placeholder="Please enter your confirm trade Password" /> <uni-easyinput type="password" :passwordIcon="true" v-model="signupModel1.ctrade_password" :placeholder="$t('signup.text8')" />
</uni-forms-item> </uni-forms-item>
<uni-forms-item label="Invitation code" name="invite_code" label-width="400rpx"> <uni-forms-item :label="$t('signup.text11')" name="invite_code" label-width="400rpx">
<uni-easyinput type="text" v-model="signupModel1.invite_code" placeholder="Please enter your invitation code"></uni-easyinput> <uni-easyinput type="text" v-model="signupModel1.invite_code" :placeholder="$t('signup.text9')"></uni-easyinput>
</uni-forms-item> </uni-forms-item>
</uni-forms> </uni-forms>
<view style="font-size: 12px; color:#4D81E7; font-weight: 500; text-align: right; margin-bottom: 30px;">Forgot Password ?</view> <view style="font-size: 12px; color:#4D81E7; font-weight: 500; text-align: right; margin-bottom: 30px;">{{$t('login.text6')}}</view>
<button type="primary" round style="width: 100%;" @click="signup">Sign up</button> <button type="primary" round style="width: 100%;" @click="signup">{{$t('signup.title')}}</button>
</view> </view>
<view style="bottom: 0px; position: absolute; width:100vw; height: 60rpx;"> <view style="bottom: 0px; position: absolute; width:100vw; height: 60rpx;">
<view style="font-size: 12px; color: #6C7278; font-weight: 500; text-align: center;"> <view style="font-size: 12px; color: #6C7278; font-weight: 500; text-align: center;">
Already have an account? {{$t('signup.text13')}}
<span style="color: #4D81E7; margin-left: 10px;" @click="onPageJump('/pages/mine/login')">Login</span> <span style="color: #4D81E7; margin-left: 10px;" @click="onPageJump('/pages/mine/login')">{{$t('forgot.text16')}}</span>
</view> </view>
</view> </view>
</view> </view>
@ -62,7 +62,7 @@
export default { export default {
data() { data() {
return { return {
sendText: "Get code", sendText: this.$t('setPasswork.text8'),
isSend: false, isSend: false,
pageShow: 1, pageShow: 1,
signupModel:{ signupModel:{
@ -77,18 +77,18 @@
ctrade_password:"", ctrade_password:"",
}, },
rules: { rules: {
email: {rules:[{required: true,errorMessage: 'Please enter your email address'}]}, email: {rules:[{required: true,errorMessage: this.$t('forgot.text2')}]},
code:{rules:[{required: true,errorMessage: 'Please input Verification code'}]}, code:{rules:[{required: true,errorMessage: this.$t('setPasswork.text12')}]},
password: {rules:[{required: true,errorMessage: 'Please input a password'}]}, password: {rules:[{required: true,errorMessage: this.$t('login.text10')}]},
cpassword: {rules:[{required: true,errorMessage: 'Please input Confirm password'}]}, cpassword: {rules:[{required: true,errorMessage: this.$t('setPasswork.text11')}]},
}, },
rules1: { rules1: {
trade_password:{ trade_password:{
rules:[{required: true,errorMessage: 'Please input trade password'}, rules:[{required: true,errorMessage: this.$t('putforward.text5')},
{minLength: 6, maxLength: 6, errorMessage: 'Please enter a 6-digit transaction password', }], {minLength: 6, maxLength: 6, errorMessage: this.$t('putforward.text6') }],
}, },
ctrade_password: {rules:[{required: true,errorMessage: 'Please input Trade password'}]}, ctrade_password: {rules:[{required: true,errorMessage: this.$t('putforward.text5')}]},
invite_code: {rules:[{required: true,errorMessage: 'Please input invitation code'}]} invite_code: {rules:[{required: true,errorMessage: this.$t('putforward.text9')}]}
} }
}; };
}, },
@ -111,15 +111,15 @@
next(){ next(){
this.$refs.signupModel.validate().then(res=>{ this.$refs.signupModel.validate().then(res=>{
if (!this.$base.mailRegular.test(this.signupModel.email)) { if (!this.$base.mailRegular.test(this.signupModel.email)) {
uni.showToast({title:'Please enter the correct email address',icon:'error'}); uni.showToast({title:this.$t('signup.text12'),icon:'error'});
return; return;
} }
if(!this.$base.passwordRegular.test(this.signupModel.password)){ if(!this.$base.passwordRegular.test(this.signupModel.password)){
uni.showToast({title:'Please enter a 6-10 digit password',icon:'error'}); uni.showToast({title:this.$t('signup.text14'),icon:'error'});
return; return;
} }
if (this.signupModel.cpassword !== this.signupModel.password) { if (this.signupModel.cpassword !== this.signupModel.password) {
uni.showToast({title:'Two passwords are inconsistent',icon:'error'}); uni.showToast({title:this.$t('signup.text15'),icon:'error'});
return; return;
} }
this.pageShow = 2; this.pageShow = 2;
@ -128,11 +128,11 @@
sendCode(){ sendCode(){
this.isSend = true; this.isSend = true;
if (this.signupModel.email == '') { if (this.signupModel.email == '') {
uni.showToast({title: 'Email is empty', icon:'error'}); uni.showToast({title: this.$t('forgot.text19'), icon:'error'});
return; return;
} }
if (!this.$base.mailRegular.test(this.signupModel.email)) { if (!this.$base.mailRegular.test(this.signupModel.email)) {
uni.showToast({title: 'Email address error', icon:'error'}); uni.showToast({title: this.$t('forgot.text20'), icon:'error'});
return; return;
} }
let s = 120; let s = 120;
@ -145,7 +145,7 @@
this.$http.post('/api/common/captcha', data).then(res => { this.$http.post('/api/common/captcha', data).then(res => {
if(res.code == 0){ if(res.code == 0){
uni.showToast({title: 'Successfully sent'}); uni.showToast({title: 'Successfully sent'});
this.sendText = "Send in " + s + "s"; this.sendText = this.$t('forgot.text4',{par: s});
let intervalId = setInterval(() => { let intervalId = setInterval(() => {
s = s-1; s = s-1;
if (s == 0) { if (s == 0) {
@ -154,7 +154,7 @@
this.sendText = "Get code"; this.sendText = "Get code";
} }
else{ else{
this.sendText = "Send in " + s + "s"; this.sendText = this.$t('forgot.text4',{par: s});
} }
}, 1000); }, 1000);
} }
@ -163,7 +163,7 @@
signup(){ signup(){
this.$refs.signupModel1.validate().then(res=>{ this.$refs.signupModel1.validate().then(res=>{
if (this.signupModel.trade_password !== this.signupModel.ctrade_password) { if (this.signupModel.trade_password !== this.signupModel.ctrade_password) {
uni.showToast({title:'The transaction passwords entered twice are different',icon:'error'}); uni.showToast({title:this.$t('setPin.text12'),icon:'error'});
return; return;
}; };
let data = { let data = {

View File

@ -1,36 +1,36 @@
<template> <template>
<view class="minebg"> <view class="minebg">
<nav-bar title="Upgrade" bgColor="rgba(0,0,0,0,1)"></nav-bar> <nav-bar :title="$t('upgrade.title')" bgColor="rgba(0,0,0,0,1)"></nav-bar>
<view style="font-size: 56rpx; color: #333; font-weight: 700; width: 80%;margin: 30rpx auto; text-align: center;"> <view style="font-size: 56rpx; color: #333; font-weight: 700; width: 80%;margin: 30rpx auto; text-align: center;">
Upgrade VIP& channel partner {{$t('upgrade.text1')}}
</view> </view>
<view class="v4"> <view class="v4">
<uni-row :gutter="10"> <uni-row :gutter="10">
<uni-col :span="24"> <uni-col :span="24">
<view class="wallet" style="padding: 10px ;"> <view class="wallet" style="padding: 10px ;">
<image class="i" src="/static/images/u4.png" mode="cover"></image> <image class="i" src="/static/images/u4.png" mode="cover"></image>
<span class="s">Automation tools/AI assistance</span> <span class="s">{{$t('upgrade.text2')}}</span>
<view style="clear: both;"></view> <view style="clear: both;"></view>
</view> </view>
</uni-col> </uni-col>
<uni-col :span="24"> <uni-col :span="24">
<view class="wallet" style="padding: 10px;"> <view class="wallet" style="padding: 10px;">
<image class="i" src="/static/images/u4.png" mode="cover"></image> <image class="i" src="/static/images/u4.png" mode="cover"></image>
<view class="s" style="line-height: 50rpx; width: 90%;">Construction of Quality Monitoring System</view> <view class="s" style="line-height: 50rpx; width: 90%;">{{$t('upgrade.text3')}}</view>
<view style="clear: both;"></view> <view style="clear: both;"></view>
</view> </view>
</uni-col> </uni-col>
<uni-col :span="24"> <uni-col :span="24">
<view class="wallet" style="padding: 10px;"> <view class="wallet" style="padding: 10px;">
<image class="i" src="/static/images/u4.png" mode="cover"></image> <image class="i" src="/static/images/u4.png" mode="cover"></image>
<span class="s">Operational guidelines for compliance</span> <span class="s">{{$t('upgrade.text4')}}</span>
<view style="clear: both;"></view> <view style="clear: both;"></view>
</view> </view>
</uni-col> </uni-col>
<uni-col :span="24"> <uni-col :span="24">
<view class="wallet" style="padding: 10px;"> <view class="wallet" style="padding: 10px;">
<image class="i" src="/static/images/u4.png" mode="cover"></image> <image class="i" src="/static/images/u4.png" mode="cover"></image>
<span class="s">Gain more accelerated benefit</span> <span class="s">{{$t('upgrade.text5')}}</span>
<view style="clear: both;"></view> <view style="clear: both;"></view>
</view> </view>
</uni-col> </uni-col>
@ -52,15 +52,15 @@
</uni-col> </uni-col>
</uni-row> </uni-row>
<view style="font-weight: 400; font-size: 30rpx; color: #3d3d3d; text-align: right; padding: 40rpx;"> <view style="font-weight: 400; font-size: 30rpx; color: #3d3d3d; text-align: right; padding: 40rpx;">
Available balance: <span style="color: #1D61E7;">{{parseFloat(user.money).toFixed(4)}}</span> USDT {{$t('upgrade.text6')}}: <span style="color: #1D61E7;">{{parseFloat(user.money).toFixed(4)}}</span> USDT
</view> </view>
<button style="background-color: #333333; color: #fff;" @click="open">Upgrade now</button> <button style="background-color: #333333; color: #fff;" @click="open">{{$t('upgrade.text7')}}</button>
</view> </view>
<uni-popup ref="popup" type="dialog" :is-mask-click="true" background-color="#fff" borderRadius="40rpx"> <uni-popup ref="popup" type="dialog" :is-mask-click="true" background-color="#fff" borderRadius="40rpx">
<view style="width: 80vw; padding: 20rpx 30rpx; border-radius: 40rpx; line-height: 50rpx;"> <view style="width: 80vw; padding: 20rpx 30rpx; border-radius: 40rpx; line-height: 50rpx;">
<view style="font-size: 36rpx; font-weight: bold; text-align: center; margin-bottom: 30rpx;">PIN code</view> <view style="font-size: 36rpx; font-weight: bold; text-align: center; margin-bottom: 30rpx;">{{$t('signup.text6')}}</view>
<uni-easyinput type="password" :passwordIcon="true" v-model="pingcode" placeholder="Enter the PIN code" /> <uni-easyinput type="password" :passwordIcon="true" v-model="pingcode" :placeholder="$t('signup.text7')" />
<button style="background-color: #1D61E7; color: #fff; margin: 40rpx auto;" @click="submit">Confirm</button> <button style="background-color: #1D61E7; color: #fff; margin: 40rpx auto;" @click="submit">{{$t('buttonConfirm')}}</button>
</view> </view>
</uni-popup> </uni-popup>
</view> </view>
@ -105,7 +105,7 @@
open(){ open(){
if(parseFloat(this.user.money) < 500){ if(parseFloat(this.user.money) < 500){
uni.showToast({ uni.showToast({
title:'Insufficient user balance', title:this.$t('upgrade.text8'),
icon:'error' icon:'error'
}); });
return return