From 7d6b6013f429178790b211402f2a57bbb4c4052e Mon Sep 17 00:00:00 2001 From: "[liang]" <[595996918@qq.com]> Date: Wed, 17 Aug 2022 17:18:59 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=88=91=E7=9A=84=E7=9B=B8?= =?UTF-8?q?=E5=85=B3=E9=A1=B5=E9=9D=A2=E5=92=8C=E8=AF=AD=E8=A8=80=E5=88=87?= =?UTF-8?q?=E6=8D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/KeyValueRow/KeyValueRow.vue | 25 +- .../language-popups/language-popups.vue | 94 +++++ main.js | 14 +- pages.json | 66 ++++ pages/index/index.vue | 91 ++++- pages/login/forget.vue | 4 +- pages/login/index.vue | 2 +- pages/login/register.vue | 6 +- pages/me/accountInfo.vue | 144 +++++++ pages/me/changeLoginPassword.vue | 78 ++++ pages/me/changeWithdrawalPassword.vue | 78 ++++ pages/me/donateRecord.vue | 97 +++++ pages/me/index.vue | 250 +++++++++++- pages/me/inviteFriends.vue | 121 ++++++ pages/me/language.vue | 102 +++++ pages/me/myTeam.vue | 94 +++++ pages/me/notification.vue | 114 ++++++ pages/me/notificationDetails.vue | 100 +++++ pages/me/transfer.vue | 355 ++++++++++++++++++ pages/me/walletHistory.vue | 137 +++++++ static/home/map.png | Bin 0 -> 1158 bytes static/home/pull-down.png | Bin 0 -> 278 bytes static/me/QR-code.png | Bin 0 -> 12622 bytes static/me/arrow-right.png | Bin 0 -> 706 bytes static/me/ic_input_arrow_down.png | Bin 0 -> 345 bytes static/me/img_accountinfo01.png | Bin 2823 -> 3009 bytes static/me/img_accountinfo02.png | Bin 3009 -> 3082 bytes static/me/img_accountinfo03.png | Bin 3082 -> 3849 bytes static/me/img_accountinfo04.png | Bin 3849 -> 3227 bytes static/me/img_accountinfo05.png | Bin 3227 -> 0 bytes static/me/img_accountinfo06.png | Bin 0 -> 2823 bytes static/tongyonh/America_icon.png | Bin 4327 -> 0 bytes static/tongyonh/Belarus_icon.png | Bin 4237 -> 0 bytes static/tongyonh/China_icon.png | Bin 3712 -> 0 bytes static/tongyonh/Hongkong_icon.png | Bin 3318 -> 0 bytes store/index.js | 239 ++++++------ utils/language/config.js | 15 + utils/language/{en.js => en_US.js} | 59 ++- utils/language/vi_VN.js | 183 +++++++++ utils/language/zh.js | 38 -- utils/language/zh_TW.js | 182 +++++++++ utils/uni-copy.js | 42 +++ 42 files changed, 2515 insertions(+), 215 deletions(-) create mode 100644 components/language-popups/language-popups.vue create mode 100644 pages/me/accountInfo.vue create mode 100644 pages/me/changeLoginPassword.vue create mode 100644 pages/me/changeWithdrawalPassword.vue create mode 100644 pages/me/donateRecord.vue create mode 100644 pages/me/inviteFriends.vue create mode 100644 pages/me/language.vue create mode 100644 pages/me/myTeam.vue create mode 100644 pages/me/notification.vue create mode 100644 pages/me/notificationDetails.vue create mode 100644 pages/me/transfer.vue create mode 100644 pages/me/walletHistory.vue create mode 100644 static/home/map.png create mode 100644 static/home/pull-down.png create mode 100644 static/me/QR-code.png create mode 100644 static/me/arrow-right.png create mode 100644 static/me/ic_input_arrow_down.png delete mode 100644 static/me/img_accountinfo05.png create mode 100644 static/me/img_accountinfo06.png delete mode 100644 static/tongyonh/America_icon.png delete mode 100644 static/tongyonh/Belarus_icon.png delete mode 100644 static/tongyonh/China_icon.png delete mode 100644 static/tongyonh/Hongkong_icon.png create mode 100644 utils/language/config.js rename utils/language/{en.js => en_US.js} (73%) create mode 100644 utils/language/vi_VN.js delete mode 100644 utils/language/zh.js create mode 100644 utils/language/zh_TW.js create mode 100644 utils/uni-copy.js 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 @@ @@ -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 @@ + + + + + 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 @@ + + + + + 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 @@ + + + + + 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 @@