diff --git a/components/KeyValueRow/KeyValueRow.vue b/components/KeyValueRow/KeyValueRow.vue
index 592e824..fde355d 100644
--- a/components/KeyValueRow/KeyValueRow.vue
+++ b/components/KeyValueRow/KeyValueRow.vue
@@ -1,9 +1,11 @@
-
+
+ {{ keyName }}
+ {{ value }}
@@ -38,26 +40,19 @@ export default {
size: {
type: String | Number,
default() {
- return '28rpx'
+ return ''
}
},
-
- /**
- * date 日期格式化 , name姓名脱敏 张*三, price 显示金额
- */
- mode: {
- type: String,
+ leftSize: {
+ type: String | Number,
default() {
- return ''
+ return '28rpx'
}
},
- /**
- * 超出隐藏
- */
- lines: {
+ rightSize: {
type: String | Number,
default() {
- return '1'
+ return '28rpx'
}
},
},
diff --git a/components/language-popups/language-popups.vue b/components/language-popups/language-popups.vue
new file mode 100644
index 0000000..681d208
--- /dev/null
+++ b/components/language-popups/language-popups.vue
@@ -0,0 +1,94 @@
+
+
+
+
+
+
+
+
+
diff --git a/main.js b/main.js
index cb66f03..18b371b 100644
--- a/main.js
+++ b/main.js
@@ -7,8 +7,9 @@ import axios from './utils/axios.js'
import store from './store'
// 多国语言
-import EN from './utils/language/en.js'
-import ZH from './utils/language/zh.js'
+import EN from './utils/language/en_US.js'
+import ZH from './utils/language/zh_TW.js'
+import VI from './utils/language/vi_VN.js'
// 自定义底部导航栏
@@ -21,11 +22,12 @@ uni.$u.config.unit = 'rpx'
Vue.use(VueI18n);
const i18n = new VueI18n({
- // locale: store.state.language, // 默认选择的语言
- locale: 'en', // 默认选择的语言
+ locale: store.state.language, // 默认选择的语言
+ // locale: 'en_US', // 默认选择的语言
messages: {
- 'en': EN,
- 'zh': ZH,
+ 'en_US': EN,
+ 'zh_TW': ZH,
+ 'vi_VN': VI,
}
})
diff --git a/pages.json b/pages.json
index 1a30061..580f03a 100644
--- a/pages.json
+++ b/pages.json
@@ -80,6 +80,72 @@
"style": {
"navigationStyle": "custom"
}
+ },
+ {
+ "path": "pages/me/inviteFriends",
+ "style": {
+ "navigationStyle": "custom"
+ }
+ },
+ {
+ "path": "pages/me/accountInfo",
+ "style": {
+ "navigationStyle": "custom"
+ }
+ },
+ {
+ "path": "pages/me/changeLoginPassword",
+ "style": {
+ "navigationStyle": "custom"
+ }
+ },
+ {
+ "path": "pages/me/changeWithdrawalPassword",
+ "style": {
+ "navigationStyle": "custom"
+ }
+ },
+ {
+ "path": "pages/me/myTeam",
+ "style": {
+ "navigationStyle": "custom"
+ }
+ },
+ {
+ "path": "pages/me/walletHistory",
+ "style": {
+ "navigationStyle": "custom"
+ }
+ },
+ {
+ "path": "pages/me/notification",
+ "style": {
+ "navigationStyle": "custom"
+ }
+ },
+ {
+ "path": "pages/me/notificationDetails",
+ "style": {
+ "navigationStyle": "custom"
+ }
+ },
+ {
+ "path": "pages/me/donateRecord",
+ "style": {
+ "navigationStyle": "custom"
+ }
+ },
+ {
+ "path": "pages/me/language",
+ "style": {
+ "navigationStyle": "custom"
+ }
+ },
+ {
+ "path": "pages/me/transfer",
+ "style": {
+ "navigationStyle": "custom"
+ }
}
],
diff --git a/pages/index/index.vue b/pages/index/index.vue
index 378ee42..9976147 100644
--- a/pages/index/index.vue
+++ b/pages/index/index.vue
@@ -2,9 +2,18 @@
- {{ i18n.HOME }}
- {{ i18n.customerService }}
+ {{ i18n.customerService }}
+
+ {{ langTrue }}
+
+
+
+
+
+
+
+
@@ -62,14 +71,20 @@
+
+
diff --git a/pages/me/changeLoginPassword.vue b/pages/me/changeLoginPassword.vue
new file mode 100644
index 0000000..109c208
--- /dev/null
+++ b/pages/me/changeLoginPassword.vue
@@ -0,0 +1,78 @@
+
+
+
+ {{ i18n.ChangeLoginPassword }}
+
+
+
+
+
+
+
+
+ {{ i18n.Confirm }}
+
+
+
+
+
+
+
+
diff --git a/pages/me/changeWithdrawalPassword.vue b/pages/me/changeWithdrawalPassword.vue
new file mode 100644
index 0000000..ca5ed8d
--- /dev/null
+++ b/pages/me/changeWithdrawalPassword.vue
@@ -0,0 +1,78 @@
+
+
+
+ {{ i18n.ModifyWithdrawalPassword }}
+
+
+
+
+
+
+
+
+ {{ i18n.Confirm }}
+
+
+
+
+
+
+
+
diff --git a/pages/me/donateRecord.vue b/pages/me/donateRecord.vue
new file mode 100644
index 0000000..7de9ece
--- /dev/null
+++ b/pages/me/donateRecord.vue
@@ -0,0 +1,97 @@
+
+
+
+ {{ i18n.DonateRecord }}
+
+
+
+
+
+
+ 2022/08/06 14:50:34
+
+
+
+
+
+
+
+
+
diff --git a/pages/me/index.vue b/pages/me/index.vue
index f9ae1fb..23a80de 100644
--- a/pages/me/index.vue
+++ b/pages/me/index.vue
@@ -1,32 +1,79 @@
+
ID:984934
- {{i18n.account}}:348798457498579
+ {{ i18n.account }}:348798457498579
-
+
+
+
+
+ {{ i18n.Recharge }}
+
+
+
+
+ {{ i18n.Withdrawal }}
+
+
+
+
+ {{ i18n.Transfer }}
+
+
+
+
+
-
- {{ i18n.Recharge }}
+ 0
+ {{ i18n.Balance }}
+
-
- {{ i18n.Withdrawal }}
+ 0
+ {{ i18n.Pledge }}
+
-
- {{ i18n.Subcription }}
+ 0
+ {{ i18n.Contarct }}
+
+
+ {{ i18n.General }}
+
+
+ {{ i18n.InviteFriends }}
+
+ {{ i18n.AccountInfo }}
+
+ {{ i18n.MyTeam }}
+
+ {{ i18n.WalletHistory }}
+
+ {{ i18n.Notification }}
+
+ {{ i18n.DonateRecord }}
+
+ {{ i18n.Language }}
+
+ {{ i18n.AboutUs }}
+
+
+
+
+
+ {{ i18n.LogOut }}
+
+
@@ -57,11 +104,48 @@ export default {
}
},
methods: {
- gotoDetails(index) {
- if (this.pageState !== 'product') return
- uni.navigateTo({
- url: `/pages/subscription/details?id=${index}`
- });
+ goto(e) {
+ // console.log(e.target);
+ // console.log(e.target.id);
+ const id = e.target.id;
+ let url = '';
+ switch (id) {
+ case 'transfer':
+ url = '/pages/me/transfer'
+ break;
+ case 'InviteFriends':
+ url = '/pages/me/inviteFriends'
+ break;
+ case 'AccountInfo':
+ url = '/pages/me/accountInfo'
+ break;
+ case 'MyTeam':
+ url = '/pages/me/myTeam'
+ break;
+ case 'WalletHistory':
+ url = '/pages/me/walletHistory'
+ break;
+ case 'Notification':
+ url = '/pages/me/notification'
+ break;
+ case 'DonateRecord':
+ url = '/pages/me/donateRecord'
+ break;
+ case 'Language':
+ url = '/pages/me/language'
+ break;
+ case 'AboutUs':
+ break;
+ default:
+ break;
+ }
+ if (url) {
+ // console.log(url);
+ uni.navigateTo({
+ url,
+ });
+ }
+
}
}
}
@@ -137,17 +221,145 @@ export default {
}
.btnDiv {
- margin: 32rpx 48rpx;
+ margin: 32rpx 0;
.item {
display: inline-block;
- width: 218rpx;
+ width: 200rpx;
+ height: 190rpx;
text-align: center;
+ background: #323045;
+ border-radius: 52rpx;
+ box-sizing: border-box;
.img {
- margin: 0 36rpx 16rpx;
+ height: 64rpx;
+ width: 64rpx;
+ margin: 32rpx auto;
+ background-image: url(../../static/me/ic_u_recharge.png);
+ background-repeat: no-repeat;
+ background-size: 64rpx;
+
+ }
+
+ &:nth-child(2) {
+ margin: 0 26rpx;
+
+ .img {
+ background-image: url(../../static/me/ic_u_withdrawal.png);
+ }
+ }
+
+ &:nth-child(3) .img {
+ background-image: url(../../static/me/ic_u_transfer.png);
+ }
+
+ .title {
+ font-size: 26rpx;
}
+
+
}
+
+
+ }
+
+ .balanceRow {
+ margin: 32rpx 0;
+ background: #323045;
+ border-radius: 52rpx;
+ box-sizing: border-box;
+
+ .item {
+ display: inline-block;
+ width: 218rpx;
+ height: 200rpx;
+ text-align: center;
+
+
+ .number {
+ margin: 32rpx auto;
+ font-size: 48rpx;
+
+
+ }
+
+
+
+ .title {
+ font-size: 28rpx;
+ }
+
+
+ }
+
+
+ }
+
+ .GeneralPart {
+ .General {
+ font-size: 28rpx;
+ color: #A1A0A8;
+ }
+
+ .list {
+ font-size: #fff;
+
+ .item {
+ position: relative;
+ height: 116rpx;
+ font-size: 32rpx;
+ line-height: 116rpx;
+ border-bottom: 2rpx solid #323045;
+
+ &::after {
+ display: block;
+ position: absolute;
+ content: '';
+ background-image: url(../../static/me/arrow-right.png);
+ background-repeat: no-repeat;
+ background-size: 48rpx;
+ width: 48rpx;
+ height: 48rpx;
+ top: 32rpx;
+ right: 0rpx;
+ }
+
+ &:last-child {
+ border-bottom: none;
+ }
+ }
+ }
+ }
+
+ .logOutButton {
+ position: relative;
+ margin-top: 14rpx;
+ height: 112rpx;
+ line-height: 112rpx;
+ border-radius: 32rpx;
+ font-size: 36rpx;
+ color: #A1A0A8 !important;
+
+
+ .title {
+ padding-left: 80rpx;
+
+ &::before {
+ display: block;
+ position: absolute;
+ content: '';
+ background-image: url(../../static/me/ic_logout.png);
+ background-repeat: no-repeat;
+ background-size: 48rpx;
+ width: 48rpx;
+ height: 48rpx;
+ top: 30rpx;
+ left: 220rpx;
+ }
+ }
+
+
}
}
diff --git a/pages/me/inviteFriends.vue b/pages/me/inviteFriends.vue
new file mode 100644
index 0000000..c36f0c8
--- /dev/null
+++ b/pages/me/inviteFriends.vue
@@ -0,0 +1,121 @@
+
+
+
+ {{ i18n.InviteFriends }}
+
+ {{ i18n.ShareWithFriends }}
+ {{ i18n.ScanTheCode }}
+
+
+
+
+ {{ i18n.MyReferralID }}{{referralID}}
+
+ {{
+ i18n.CopyID
+ }}
+
+
+
+
+
+
+
+
+
+
diff --git a/pages/me/language.vue b/pages/me/language.vue
new file mode 100644
index 0000000..d4ea430
--- /dev/null
+++ b/pages/me/language.vue
@@ -0,0 +1,102 @@
+
+
+
+ {{ i18n.Language }}
+
+
+
+
+
+
+
+
+
+
+
diff --git a/pages/me/myTeam.vue b/pages/me/myTeam.vue
new file mode 100644
index 0000000..5f0f4f9
--- /dev/null
+++ b/pages/me/myTeam.vue
@@ -0,0 +1,94 @@
+
+
+
+ {{ i18n.MyTeam }}
+
+
+
+
+ krichjmadif0985@gmail.com
+ 2022/08/06
+ {{ i18n.Fresh }}
+
+
+
+
+
+
+
+
+
diff --git a/pages/me/notification.vue b/pages/me/notification.vue
new file mode 100644
index 0000000..9349447
--- /dev/null
+++ b/pages/me/notification.vue
@@ -0,0 +1,114 @@
+
+
+
+ {{ i18n.Notification }}
+
+
+
+
+
+ Please contact customer service on the top-left corner for identity verification
+ on your firstPlease contactservice on firstPlease contact customer service on the top-left
+ corner for identity Please contact customer service on the top-left corner for identity
+ verification on your firstPlease contactservice on firstPlease contact customer service on the
+ top-left corner for identity Please contact customer service on the top-left corner for identity
+ verification on your firstPlease contactservice on firstPlease contact customer ser
+ {{ i18n.Release }}: 2022/08/06 14:51:34
+
+
+
+
+
+
+
+
+
diff --git a/pages/me/notificationDetails.vue b/pages/me/notificationDetails.vue
new file mode 100644
index 0000000..8bf5f64
--- /dev/null
+++ b/pages/me/notificationDetails.vue
@@ -0,0 +1,100 @@
+
+
+
+ {{ i18n.NotificationDetails }}
+
+
+
+ Please contact customer service on the top-left corner for identity verification
+ on your firstPlease contactservice on firstPlease contact customer service on the top-left
+ corner for identity Please contact customer service on
+ Please contact customer service on the top-left corner for identity
+ verification on your firstPlease contactservice on firstPlease contact customer service on the
+ top-left corner for identity Please contact customer service on the top-left corner for identity
+ verification on your firstPlease contactservice on firstPlease contact customer service on the
+ top-left corner for identity Please contact customer service on the top-left corner for identity
+ verification on your firstPlease contactservice on firstPlease contact customer ser
+
+ {{ i18n.Release }}: 2022/08/06 14:51:34
+
+
+
+
+
+
+
+
+
diff --git a/pages/me/transfer.vue b/pages/me/transfer.vue
new file mode 100644
index 0000000..b89a051
--- /dev/null
+++ b/pages/me/transfer.vue
@@ -0,0 +1,355 @@
+
+
+
+ {{ i18n.WalletHistory }}
+
+
+
+ {{ i18n.SelectCurrency }}
+
+
+
+
+
+
+ {{ i18n.From }}
+
+
+
+
+
+
+ {{ i18n.To }}
+
+
+
+
+
+
+ {{ i18n.TransferNumber }}
+
+
+
+ USDT ALL
+
+
+ {{ i18n.Usable }} 560878.90000000
+
+
+
+
+ {{
+ i18n.Transfer
+ }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/pages/me/walletHistory.vue b/pages/me/walletHistory.vue
new file mode 100644
index 0000000..bb2a610
--- /dev/null
+++ b/pages/me/walletHistory.vue
@@ -0,0 +1,137 @@
+
+
+
+ {{ i18n.WalletHistory }}
+
+
+
+ {{ i18n.Balance }}
+
+
+ {{ i18n.Contarct }}
+
+
+
+
+
+
+
+
+
+
+
+ Postscript : ontact customer service on the top-left corner for identity verific
+
+
+
+
+
+
+
+
+
+ Postscript : ontact customer service on the top-left corner for identity verific
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/static/home/map.png b/static/home/map.png
new file mode 100644
index 0000000..56ac906
Binary files /dev/null and b/static/home/map.png differ
diff --git a/static/home/pull-down.png b/static/home/pull-down.png
new file mode 100644
index 0000000..99ede09
Binary files /dev/null and b/static/home/pull-down.png differ
diff --git a/static/me/QR-code.png b/static/me/QR-code.png
new file mode 100644
index 0000000..e16f22a
Binary files /dev/null and b/static/me/QR-code.png differ
diff --git a/static/me/arrow-right.png b/static/me/arrow-right.png
new file mode 100644
index 0000000..a7a61a2
Binary files /dev/null and b/static/me/arrow-right.png differ
diff --git a/static/me/ic_input_arrow_down.png b/static/me/ic_input_arrow_down.png
new file mode 100644
index 0000000..75d9f33
Binary files /dev/null and b/static/me/ic_input_arrow_down.png differ
diff --git a/static/me/img_accountinfo01.png b/static/me/img_accountinfo01.png
index a28707e..317d062 100644
Binary files a/static/me/img_accountinfo01.png and b/static/me/img_accountinfo01.png differ
diff --git a/static/me/img_accountinfo02.png b/static/me/img_accountinfo02.png
index 317d062..2ca113b 100644
Binary files a/static/me/img_accountinfo02.png and b/static/me/img_accountinfo02.png differ
diff --git a/static/me/img_accountinfo03.png b/static/me/img_accountinfo03.png
index 2ca113b..0d13774 100644
Binary files a/static/me/img_accountinfo03.png and b/static/me/img_accountinfo03.png differ
diff --git a/static/me/img_accountinfo04.png b/static/me/img_accountinfo04.png
index 0d13774..17c7e54 100644
Binary files a/static/me/img_accountinfo04.png and b/static/me/img_accountinfo04.png differ
diff --git a/static/me/img_accountinfo05.png b/static/me/img_accountinfo05.png
deleted file mode 100644
index 17c7e54..0000000
Binary files a/static/me/img_accountinfo05.png and /dev/null differ
diff --git a/static/me/img_accountinfo06.png b/static/me/img_accountinfo06.png
new file mode 100644
index 0000000..a28707e
Binary files /dev/null and b/static/me/img_accountinfo06.png differ
diff --git a/static/tongyonh/America_icon.png b/static/tongyonh/America_icon.png
deleted file mode 100644
index f44bf96..0000000
Binary files a/static/tongyonh/America_icon.png and /dev/null differ
diff --git a/static/tongyonh/Belarus_icon.png b/static/tongyonh/Belarus_icon.png
deleted file mode 100644
index b4d45de..0000000
Binary files a/static/tongyonh/Belarus_icon.png and /dev/null differ
diff --git a/static/tongyonh/China_icon.png b/static/tongyonh/China_icon.png
deleted file mode 100644
index 76f4b12..0000000
Binary files a/static/tongyonh/China_icon.png and /dev/null differ
diff --git a/static/tongyonh/Hongkong_icon.png b/static/tongyonh/Hongkong_icon.png
deleted file mode 100644
index 65aebed..0000000
Binary files a/static/tongyonh/Hongkong_icon.png and /dev/null differ
diff --git a/store/index.js b/store/index.js
index 0d401d2..46a6949 100644
--- a/store/index.js
+++ b/store/index.js
@@ -3,128 +3,129 @@ import Vuex from 'vuex'
Vue.use(Vuex)
const store = new Vuex.Store({
- state: {
- //
- btci:1,
- ethi:1,
- troni:1,
- // 临时存放的
- noBackupWalletInfo: uni.getStorageSync("noBackupWalletInfo") || {
- walletPassword: '',
- wallet:{},
- },
- // 正式的值
- walletInfo: uni.getStorageSync("walletInfo") || {
- walletPassword: '',
- walletList:[]
- },
-
- // 查询是否激活
- isActivation: uni.getStorageSync("isActivation") || false,
-
- // 下载地址
- installAddress: uni.getStorageSync('installAddress') || 'baidu.com',
-
- // 更新提示内容
- updateTipContent: uni.getStorageSync('updateTipContent') || '版本更新',
-
- // 中英化
- language: uni.getStorageSync("language") || 'en',
-
- // 是否需要更新
- isUpdate: false
- // 所有的余额
- // balance: uni.getStorageSync("balance") || {
- // bmsBalance: 0,
- // bmdtBalance: 0,
- // ercBalance: 0,
- // ethBalance: 0,
- // ethUsdt: 0, //汇率
- // trcBalance: 0,
- // trxBalance: 0,
- // trxUsdt: 0, //汇率
- // },
- // // BMS交易记录
- // bmsTransactionList: [
- // ],
- // // BMDT交易记录
- // bmdtTransactionList: [
- // ],
- // // 公募记录
- // publicOfferingRecords: [],
- },
- mutations: {
- addBtci(state,num){
- var a=uni.getStorageSync('btci')
- console.log(a,2224)
- if(a==''){
- uni.setStorageSync('btci',state.btci)
- console.log(state.btci,2224)
- }else{
- state.btci=uni.getStorageSync('btci')
- state.btci =state.btci+num
- uni.setStorageSync('btci',state.btci)
- console.log(state.btci,4444)
- }
-
- },
- addEthi(state,num){
- var a=uni.getStorageSync('ethi')
- if(a==''){
- uni.setStorageSync('ethi',state.ethi)
- console.log(state.ethi,2224)
- }else{
- state.ethi=uni.getStorageSync('ethi')
- state.ethi =state.ethi+num
- uni.setStorageSync('ethi',state.ethi)
- console.log(state.ethi,4444)
- }
-
- },
+ state: {
+ //
+ btci: 1,
+ ethi: 1,
+ troni: 1,
+ // 临时存放的
+ noBackupWalletInfo: uni.getStorageSync("noBackupWalletInfo") || {
+ walletPassword: '',
+ wallet: {},
+ },
+ // 正式的值
+ walletInfo: uni.getStorageSync("walletInfo") || {
+ walletPassword: '',
+ walletList: []
+ },
- addTroni(state,num){
- var a=uni.getStorageSync('troni')
- if(a==''){
- uni.setStorageSync('troni',state.troni)
- }else{
- state.troni=uni.getStorageSync('troni')
- state.troni =state.troni+num
- uni.setStorageSync('troni',state.troni)
- }
-
- },
-
- // 设置选中的钱包
- setSelectWallet: (state, selected) => {
- const obj = state
- obj.selected = selected
- },
- // 设置是否已激活
- setIsActivation: (state, isActivation) => {
- const obj = state
- obj.isActivation = isActivation
- },
- // 设置下载地址
- setInstallAddress: (state, installAddress) => {
- const obj = state
- obj.installAddress = installAddress
- },
- // 设置版本更新内容
- setUpdateTipContent: (state, updateTipContent) => {
- const obj = state
- obj.updateTipContent = updateTipContent
+ // 查询是否激活
+ isActivation: uni.getStorageSync("isActivation") || false,
+
+ // 下载地址
+ installAddress: uni.getStorageSync('installAddress') || 'baidu.com',
+
+ // 更新提示内容
+ updateTipContent: uni.getStorageSync('updateTipContent') || '版本更新',
+
+ // 中英化
+ language: uni.getStorageSync("language") || 'en_US',
+
+ // 是否需要更新
+ isUpdate: false
+ // 所有的余额
+ // balance: uni.getStorageSync("balance") || {
+ // bmsBalance: 0,
+ // bmdtBalance: 0,
+ // ercBalance: 0,
+ // ethBalance: 0,
+ // ethUsdt: 0, //汇率
+ // trcBalance: 0,
+ // trxBalance: 0,
+ // trxUsdt: 0, //汇率
+ // },
+ // // BMS交易记录
+ // bmsTransactionList: [
+ // ],
+ // // BMDT交易记录
+ // bmdtTransactionList: [
+ // ],
+ // // 公募记录
+ // publicOfferingRecords: [],
},
- // 设置中英文
- setLanguage: (state, language) => {
- const obj = state
- obj.language = language
+ mutations: {
+ addBtci(state, num) {
+ var a = uni.getStorageSync('btci')
+ console.log(a, 2224)
+ if (a == '') {
+ uni.setStorageSync('btci', state.btci)
+ console.log(state.btci, 2224)
+ } else {
+ state.btci = uni.getStorageSync('btci')
+ state.btci = state.btci + num
+ uni.setStorageSync('btci', state.btci)
+ console.log(state.btci, 4444)
+ }
+
+ },
+ addEthi(state, num) {
+ var a = uni.getStorageSync('ethi')
+ if (a == '') {
+ uni.setStorageSync('ethi', state.ethi)
+ console.log(state.ethi, 2224)
+ } else {
+ state.ethi = uni.getStorageSync('ethi')
+ state.ethi = state.ethi + num
+ uni.setStorageSync('ethi', state.ethi)
+ console.log(state.ethi, 4444)
+ }
+
+ },
+
+ addTroni(state, num) {
+ var a = uni.getStorageSync('troni')
+ if (a == '') {
+ uni.setStorageSync('troni', state.troni)
+ } else {
+ state.troni = uni.getStorageSync('troni')
+ state.troni = state.troni + num
+ uni.setStorageSync('troni', state.troni)
+ }
+
+ },
+
+ // 设置选中的钱包
+ setSelectWallet: (state, selected) => {
+ const obj = state
+ obj.selected = selected
+ },
+ // 设置是否已激活
+ setIsActivation: (state, isActivation) => {
+ const obj = state
+ obj.isActivation = isActivation
+ },
+ // 设置下载地址
+ setInstallAddress: (state, installAddress) => {
+ const obj = state
+ obj.installAddress = installAddress
+ },
+ // 设置版本更新内容
+ setUpdateTipContent: (state, updateTipContent) => {
+ const obj = state
+ obj.updateTipContent = updateTipContent
+ },
+ // 设置中英文
+ setLanguage: (state, language) => {
+ const obj = state
+ obj.language = language
+ uni.setStorageSync("language", language)
+ },
+ // 设置是否需要更新
+ setIsUpdate: (state, isUpdate) => {
+ const obj = state
+ obj.isUpdate = isUpdate
+ }
},
- // 设置是否需要更新
- setIsUpdate: (state, isUpdate) => {
- const obj = state
- obj.isUpdate = isUpdate
- }
- },
})
export default store
\ No newline at end of file
diff --git a/utils/language/config.js b/utils/language/config.js
new file mode 100644
index 0000000..3207b2d
--- /dev/null
+++ b/utils/language/config.js
@@ -0,0 +1,15 @@
+export default [
+ {
+ title: 'English',
+ language: 'en_US',
+
+ },
+ {
+ title: '繁体中文',
+ language: 'zh_TW'
+ },
+ {
+ title: 'Tiếng Việt',
+ language: 'vi_VN'
+ }
+]
diff --git a/utils/language/en.js b/utils/language/en_US.js
similarity index 73%
rename from utils/language/en.js
rename to utils/language/en_US.js
index 8f43ac4..a52c68e 100644
--- a/utils/language/en.js
+++ b/utils/language/en_US.js
@@ -1,4 +1,4 @@
-// en.js
+// en_US.js
export default {
// tab bar 相关
tabBar: {
@@ -85,8 +85,12 @@ export default {
WithdrawalPassword: 'Withdrawal Password',
},
- // 申购页面相关 subscription
+ // Recharge
+ recharge:{
+ Recharge:'Recharge'
+ },
+ // 申购页面相关 subscription
subscription: {
// 公共
Product: 'Product',
@@ -130,5 +134,56 @@ export default {
Balance: 'Balance(U)',
Pledge: 'Pledge(U)',
Contarct: 'Contarct(U)',
+
+ General: 'General',
+ InviteFriends: 'Invite friends',
+ AccountInfo: 'Account Info',
+ MyTeam: 'My Team',
+ WalletHistory: 'Wallet history',
+ Notification: 'Notification',
+ DonateRecord: 'Donate record',
+ Language:'Language',
+ AboutUs: 'About us',
+ LogOut: 'Log out',
+
+
+ ShareWithFriends: 'Share with friends',
+ ScanTheCode: 'Scan the code to download',
+ MyReferralID: 'My Referral ID:',
+ CopyID: 'Copy ID',
+
+ ChangeLoginPassword:'Change Login Password',
+ ChangeWithdrawalPassword:'Change Withdrawal Password',
+ BankCard:'Bank Card',
+ WithdrawalAddress:'Withdrawal Address',
+
+ PleaseEnterTheOldPassword:'Please Enter the old password',
+ CreateNewLoginPassword:'Create new Login password',
+ Confirm:'Confirm',
+ ModifyWithdrawalPassword:'Modify Withdrawal Password',
+ CreateNewPassword:'Create new password',
+
+ Fresh:'Fresh',
+
+ Release:'Release',
+
+ NotificationDetails:'Notification Details',
+
+ DonateRecord:'Donate record',
+ Time:'Time',
+
+ SelectCurrency:'Select currency',
+ PleaseChooseCoin: 'Please choose coin',
+ From:'From',
+ OptionAccount:'Option account',
+ To:'To',
+ TradingAccount:'Trading account',
+ TransferNumber:'Transfer number',
+ PleaseEnterNumber: 'Please enter number',
+ Usable:'Usable :',
+
+
+
+
}
}
diff --git a/utils/language/vi_VN.js b/utils/language/vi_VN.js
new file mode 100644
index 0000000..1655bb4
--- /dev/null
+++ b/utils/language/vi_VN.js
@@ -0,0 +1,183 @@
+// en_US.js
+export default {
+ // tab bar 相关
+ tabBar: {
+ Home: 'หน้าแรก',
+ Markets: 'สัญญา',
+ Charity: 'การกุศล',
+ Subscription: 'การสั่งซื้อ',
+ Me: 'ของฉัน',
+ },
+ // 登陆相关页面
+ login: {
+ // 公共字段
+ Login: 'Login',
+ SignUp: 'Sign Up',
+ ForgotPassword: 'Forgot password',
+ // login
+ welcomeText: 'Hi, Welcome Back!',
+ signInText: 'Sign in to your account.',
+ emailInputText: 'Enter email address',
+ emailInputMessage: 'Please enter your email address',
+ passwordInputText: 'Password',
+ passwordInputMessage: 'Please enter your password',
+ forgotText: 'Forgot Password?',
+ notAccountText: 'Don’t have account?',
+ agreeToBackup: 'Please check the prompt to agree to backup',
+ checkTheTermsOfService: 'Please review and agree to the terms of service',
+
+ // register
+ registerWelcomeText: "Getting Started",
+ registerCreate: "Create an account to continue!",
+ verificationCodeText: 'Verification Code',
+ verificationCodeMessage: 'Please enter verification code',
+ passwordText: 'Create The Login Password',
+ passwordMessage: 'Please enter your password',
+ confirmPasswordText: 'Confirm Login Password',
+ confirmPasswordMessage: 'Please confirm login password',
+ withdrawalPasswordText: 'Create The Withdrawal Password',
+ withdrawalPasswordMessage: 'Please enter the withdrawal password',
+ InvitationCodeText: 'Invitation code',
+ InvitationCodeMessage: 'Please enter the invitation code',
+ agreeText: 'By creating an account, you agree to our ',
+ Terms: 'Terms',
+ and: 'and',
+ Conditions: 'Conditions',
+ haveAccount: 'Already have an account?',
+
+ // forget
+ Save: 'Save',
+ },
+
+ // 首页相关页面
+ home: {
+ // 公共字段
+ HOME: 'HOME',
+ // home首页
+ customerService: 'Customer Service',
+ homeMessage: `Please contact customer service on the top-left corner for identity verification on your first Please contact customer service on the top-left corner for identity verification on your first...Please contact customer service on the top-left corner for identity verification on your first... `,
+ Recharge: 'Recharge',
+ Mine: 'Mine',
+ Subcription: 'Subcription',
+ TodaySteps: "Today's steps",
+ ReceiveEarnings: "Receive yesterday's earnings",
+
+
+ },
+
+ // 合约页面相关
+ markets: {
+ // markets
+ TrandingPair: 'Tranding Pair',
+ LatestPrice: 'Latest Price',
+ RiseAndfall: '24H Rise and fall',
+ },
+
+ // 捐赠页面相关
+ charity: {
+ CharityDetails: 'Charity Details',
+ About: 'About',
+ Participants: 'Participants',
+ DonateNow: 'Donate Now',
+ PleaseChooseCoin: 'Please choose coin',
+ AvailableBlance: 'Available blance',
+ Quantity: 'Quantity',
+ WithdrawalPassword: 'Withdrawal Password',
+ },
+
+ // 申购页面相关 subscription
+
+ subscription: {
+ // 公共
+ Product: 'Product',
+ Pending: 'Pending',
+ Complete: 'Complete',
+ // Product
+ Subscribe: 'Subscribe',
+ Ended: 'Ended',
+ ComingSoon: 'Coming soon',
+ STLTotalCirculation: 'STL total circulation',
+ PrivateSalePrice: 'Private sale price',
+ ICOTime: 'ICO Time',
+ // Pending //Complete
+ HeaderPending: 'Pending',
+ HeaderComplete: 'Complete',
+ Price: 'Price',
+ Quantity: 'Quantity',
+ ConfirmAmount: 'Confirm amount',
+ USDT: 'USDT',
+ Time: 'Time',
+ CheckTheNumberoOfUSDT: 'Check the number of USDT',
+ // Subscription
+ Subscription: 'Subscription',
+ Days: 'Days',
+ Hours: 'Hours',
+ Minutes: 'Minutes',
+ Seconds: 'Seconds',
+ Total: 'Total',
+ SubscribeNow: 'Subscribe Now',
+ ProjectDetails: 'Project Details',
+ Video: 'Video',
+ WhiteBook: 'White Book',
+ },
+
+ //me
+ me: {
+ account: 'account',
+ Recharge: 'Recharge',
+ Withdrawal: 'Withdrawal',
+ Transfer: 'Transfer',
+ Balance: 'Balance(U)',
+ Pledge: 'Pledge(U)',
+ Contarct: 'Contarct(U)',
+
+ General: 'General',
+ InviteFriends: 'Invite friends',
+ AccountInfo: 'Account Info',
+ MyTeam: 'My Team',
+ WalletHistory: 'Wallet history',
+ Notification: 'Notification',
+ DonateRecord: 'Donate record',
+ Language:'ภาษา',
+ AboutUs: 'About us',
+ LogOut: 'Log out',
+
+
+ ShareWithFriends: 'Share with friends',
+ ScanTheCode: 'Scan the code to download',
+ MyReferralID: 'My Referral ID:',
+ CopyID: 'Copy ID',
+
+ ChangeLoginPassword:'Change Login Password',
+ ChangeWithdrawalPassword:'Change Withdrawal Password',
+ BankCard:'Bank Card',
+ WithdrawalAddress:'Withdrawal Address',
+
+ PleaseEnterTheOldPassword:'Please Enter the old password',
+ CreateNewLoginPassword:'Create new Login password',
+ Confirm:'Confirm',
+ ModifyWithdrawalPassword:'Modify Withdrawal Password',
+ CreateNewPassword:'Create new password',
+
+ Fresh:'Fresh',
+
+ Release:'Release',
+
+ NotificationDetails:'Notification Details',
+
+ DonateRecord:'Donate record',
+ Time:'Time',
+
+ SelectCurrency:'Select currency',
+ PleaseChooseCoin: 'Please choose coin',
+ From:'From',
+ OptionAccount:'Option account',
+ To:'To',
+ TradingAccount:'Trading account',
+ TransferNumber:'Transfer number',
+ PleaseEnterNumber: 'Please enter number',
+ Usable:'Usable :',
+
+
+ }
+}
diff --git a/utils/language/zh.js b/utils/language/zh.js
deleted file mode 100644
index 9f9d8e6..0000000
--- a/utils/language/zh.js
+++ /dev/null
@@ -1,38 +0,0 @@
-// zh.js
-export default {
- login: {
- // 公共字段
- Login:'Login',
- SignUp:'Sign Up',
- //login
- welcomeText:'你好,欢迎回来!',
- signInText:'请登录您的账户.',
- emailInputText:'请输入邮箱',
- emailInputMessage:'邮箱密码不能为空',
- passwordInputText:'请输入密码',
- passwordInputMessage:'密码不能为空',
- forgotText:'忘记密码?',
- notAccountText:'Don’t have account?',
- agreeToBackup: '请勾选同意备份的提示',
- checkTheTermsOfService: '请查看并同意服务条款',
-
- // register
- registerWelcomeText: "Getting Started",
- registerCreate: "Create an account to continue!",
- verificationCodeText: 'Verification Code',
- verificationCodeMessage: 'Please enter verification code',
- passwordText: 'Create The Login Password',
- passwordMessage: 'Please enter your password',
- confirmPasswordText: 'Confirm Login Password',
- confirmPasswordMessage: 'Please confirm login password',
- withdrawalPasswordText: 'Create The Withdrawal Password',
- withdrawalPasswordMessage: 'Please enter the withdrawal password',
- InvitationCodeText: 'Invitation code',
- InvitationCodeMessage: 'Please enter the invitation code',
- aggreeText :'By creating an account, you aggree to our ',
- Terms:'Terms',
- and:'and',
- Conditions:'Conditions',
-
- }
-}
\ No newline at end of file
diff --git a/utils/language/zh_TW.js b/utils/language/zh_TW.js
new file mode 100644
index 0000000..cdf0a2d
--- /dev/null
+++ b/utils/language/zh_TW.js
@@ -0,0 +1,182 @@
+// zh_TW.js
+export default {
+ // tab bar 相关
+ tabBar: {
+ Home: '首頁',
+ Markets: '合約',
+ Charity: '慈善',
+ Subscription: '申購',
+ Me: '我的',
+ },
+ // 登陆相关页面
+ login: {
+ // 公共字段
+ Login: 'Login',
+ SignUp: 'Sign Up',
+ ForgotPassword: 'Forgot password',
+ // login
+ welcomeText: 'Hi, Welcome Back!',
+ signInText: 'Sign in to your account.',
+ emailInputText: 'Enter email address',
+ emailInputMessage: 'Please enter your email address',
+ passwordInputText: 'Password',
+ passwordInputMessage: 'Please enter your password',
+ forgotText: 'Forgot Password?',
+ notAccountText: 'Don’t have account?',
+ agreeToBackup: 'Please check the prompt to agree to backup',
+ checkTheTermsOfService: 'Please review and agree to the terms of service',
+
+ // register
+ registerWelcomeText: "Getting Started",
+ registerCreate: "Create an account to continue!",
+ verificationCodeText: 'Verification Code',
+ verificationCodeMessage: 'Please enter verification code',
+ passwordText: 'Create The Login Password',
+ passwordMessage: 'Please enter your password',
+ confirmPasswordText: 'Confirm Login Password',
+ confirmPasswordMessage: 'Please confirm login password',
+ withdrawalPasswordText: 'Create The Withdrawal Password',
+ withdrawalPasswordMessage: 'Please enter the withdrawal password',
+ InvitationCodeText: 'Invitation code',
+ InvitationCodeMessage: 'Please enter the invitation code',
+ agreeText: 'By creating an account, you agree to our ',
+ Terms: 'Terms',
+ and: 'and',
+ Conditions: 'Conditions',
+ haveAccount: 'Already have an account?',
+
+ // forget
+ Save: 'Save',
+ },
+
+ // 首页相关页面
+ home: {
+ // 公共字段
+ HOME: '首頁',
+ // home首页
+ customerService: '客 戶 服 務',
+ homeMessage: `請第一時間聯繫左上角客服進行身份驗證,請第一時間聯繫左上角客服進行身份驗證請與左上角的客戶服務聯繫,以覈實您的身份。`,
+ Recharge: '充值',
+ Mine: '挖礦',
+ Subcription: '申購',
+ TodaySteps: "今天的步數",
+ ReceiveEarnings: "昨天的收益",
+
+
+ },
+
+ // 合约页面相关
+ markets: {
+ // markets
+ TrandingPair: 'Tranding Pair',
+ LatestPrice: 'Latest Price',
+ RiseAndfall: '24H Rise and fall',
+ },
+
+ // 捐赠页面相关
+ charity: {
+ CharityDetails: 'Charity Details',
+ About: 'About',
+ Participants: 'Participants',
+ DonateNow: 'Donate Now',
+ PleaseChooseCoin: 'Please choose coin',
+ AvailableBlance: 'Available blance',
+ Quantity: 'Quantity',
+ WithdrawalPassword: 'Withdrawal Password',
+ },
+
+ // 申购页面相关 subscription
+
+ subscription: {
+ // 公共
+ Product: 'Product',
+ Pending: 'Pending',
+ Complete: 'Complete',
+ // Product
+ Subscribe: 'Subscribe',
+ Ended: 'Ended',
+ ComingSoon: 'Coming soon',
+ STLTotalCirculation: 'STL total circulation',
+ PrivateSalePrice: 'Private sale price',
+ ICOTime: 'ICO Time',
+ // Pending //Complete
+ HeaderPending: 'Pending',
+ HeaderComplete: 'Complete',
+ Price: 'Price',
+ Quantity: 'Quantity',
+ ConfirmAmount: 'Confirm amount',
+ USDT: 'USDT',
+ Time: 'Time',
+ CheckTheNumberoOfUSDT: 'Check the number of USDT',
+ // Subscription
+ Subscription: 'Subscription',
+ Days: 'Days',
+ Hours: 'Hours',
+ Minutes: 'Minutes',
+ Seconds: 'Seconds',
+ Total: 'Total',
+ SubscribeNow: 'Subscribe Now',
+ ProjectDetails: 'Project Details',
+ Video: 'Video',
+ WhiteBook: 'White Book',
+ },
+
+ //me
+ me: {
+ account: 'account',
+ Recharge: 'Recharge',
+ Withdrawal: 'Withdrawal',
+ Transfer: 'Transfer',
+ Balance: 'Balance(U)',
+ Pledge: 'Pledge(U)',
+ Contarct: 'Contarct(U)',
+
+ General: 'General',
+ InviteFriends: 'Invite friends',
+ AccountInfo: 'Account Info',
+ MyTeam: 'My Team',
+ WalletHistory: 'Wallet history',
+ Notification: 'Notification',
+ DonateRecord: 'Donate record',
+ Language:'語言',
+ AboutUs: 'About us',
+ LogOut: 'Log out',
+
+
+ ShareWithFriends: 'Share with friends',
+ ScanTheCode: 'Scan the code to download',
+ MyReferralID: 'My Referral ID:',
+ CopyID: 'Copy ID',
+
+ ChangeLoginPassword:'Change Login Password',
+ ChangeWithdrawalPassword:'Change Withdrawal Password',
+ BankCard:'Bank Card',
+ WithdrawalAddress:'Withdrawal Address',
+
+ PleaseEnterTheOldPassword:'Please Enter the old password',
+ CreateNewLoginPassword:'Create new Login password',
+ Confirm:'Confirm',
+ ModifyWithdrawalPassword:'Modify Withdrawal Password',
+ CreateNewPassword:'Create new password',
+
+ Fresh:'Fresh',
+
+ Release:'Release',
+
+ NotificationDetails:'Notification Details',
+
+ DonateRecord:'Donate record',
+ Time:'Time',
+
+ SelectCurrency:'Select currency',
+ PleaseChooseCoin: 'Please choose coin',
+ From:'From',
+ OptionAccount:'Option account',
+ To:'To',
+ TradingAccount:'Trading account',
+ TransferNumber:'Transfer number',
+ PleaseEnterNumber: 'Please enter number',
+ Usable:'Usable :',
+
+ }
+}
diff --git a/utils/uni-copy.js b/utils/uni-copy.js
new file mode 100644
index 0000000..6ceb604
--- /dev/null
+++ b/utils/uni-copy.js
@@ -0,0 +1,42 @@
+export default function uniCopy({content,success,error}) {
+ if(!content) return error('复制的内容不能为空 !')
+ content = typeof content === 'string' ? content : content.toString() // 复制内容,必须字符串,数字需要转换为字符串
+ /**
+ * 小程序端 和 app端的复制逻辑
+ */
+ //#ifndef H5
+ uni.setClipboardData({
+ data: content,
+ success: function() {
+ success("复制成功~")
+ console.log('success');
+ },
+ fail:function(){
+ success("复制失败~")
+ }
+ });
+ //#endif
+
+ /**
+ * H5端的复制逻辑
+ */
+ // #ifdef H5
+ if (!document.queryCommandSupported('copy')) { //为了兼容有些浏览器 queryCommandSupported 的判断
+ // 不支持
+ error('浏览器不支持')
+ }
+ let textarea = document.createElement("textarea")
+ textarea.value = content
+ textarea.readOnly = "readOnly"
+ document.body.appendChild(textarea)
+ textarea.select() // 选择对象
+ textarea.setSelectionRange(0, content.length) //核心
+ let result = document.execCommand("copy") // 执行浏览器复制命令
+ if(result){
+ success("复制成功~")
+ }else{
+ error("复制失败,请检查h5中调用该方法的方式,是不是用户点击的方式调用的,如果不是请改为用户点击的方式触发该方法,因为h5中安全性,不能js直接调用!")
+ }
+ textarea.remove()
+ // #endif
+}