From 1f11322e10e8d8e91e0c8d820ec9a9132b6b8310 Mon Sep 17 00:00:00 2001 From: j1ack <1209452658@qq.com> Date: Thu, 25 Aug 2022 19:01:47 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E5=AF=B9=E6=8E=A54=E4=B8=AA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages.json | 6 + pages/login/forget.vue | 462 ++++++++++++++----------- pages/login/index.vue | 42 ++- pages/login/register.vue | 85 +++-- pages/me/about.vue | 97 ++++++ pages/me/index.vue | 712 ++++++++++++++++++++------------------- utils/api.js | 1 + utils/axios.js | 3 +- utils/language/en_US.js | 5 + 9 files changed, 840 insertions(+), 573 deletions(-) create mode 100644 pages/me/about.vue diff --git a/pages.json b/pages.json index c061971..095a70c 100644 --- a/pages.json +++ b/pages.json @@ -87,6 +87,12 @@ "navigationStyle": "custom" } }, + { + "path": "pages/me/about", + "style": { + "navigationStyle": "custom" + } + }, { "path": "pages/me/inviteFriends", "style": { diff --git a/pages/login/forget.vue b/pages/login/forget.vue index a9d5030..e510aeb 100644 --- a/pages/login/forget.vue +++ b/pages/login/forget.vue @@ -1,216 +1,280 @@ diff --git a/pages/login/index.vue b/pages/login/index.vue index 7b74ce0..b945b30 100644 --- a/pages/login/index.vue +++ b/pages/login/index.vue @@ -21,8 +21,8 @@ {{ i18n.forgotText }} - {{ i18n.Login }} - {{ i18n.notAccountText }} + {{ i18n.Login }} + {{ i18n.notAccountText }} {{ i18n.SignUp }} @@ -31,10 +31,14 @@ + + diff --git a/pages/me/index.vue b/pages/me/index.vue index 76dc2dc..24f7f7b 100644 --- a/pages/me/index.vue +++ b/pages/me/index.vue @@ -1,378 +1,408 @@ diff --git a/utils/api.js b/utils/api.js index f00dbeb..3de8b17 100644 --- a/utils/api.js +++ b/utils/api.js @@ -81,6 +81,7 @@ const api = { //--------------------------------- 个人中心 --------------------------------- register: (params) => Vue.prototype.$axios.post('/api/index/register',params),//注册 login: (params) => Vue.prototype.$axios.post('/api/user/login',params),//登录 + aboutus: (params) => Vue.prototype.$axios.post('/api/index/aboutus',params),//关于我们 loginOut: (params) => Vue.prototype.$axios.post('/api/user/loginOut',params),//退出登录 forgotPassword: (params) => Vue.prototype.$axios.post('/api/user/forgotPassword',params),//忘记密码 updatePassword: () => Vue.prototype.$axios.get('/api/user/updatePassword'),//修改登录密码 diff --git a/utils/axios.js b/utils/axios.js index 802f60d..05fb449 100644 --- a/utils/axios.js +++ b/utils/axios.js @@ -40,7 +40,8 @@ service.interceptors.request.use( } const ticket = uni.getStorageSync('ticket') - if (ticket != '') { + if (ticket) { + config.data = {}; config.data['ticket'] = ticket } if (Vue.prototype.$showDialog) { diff --git a/utils/language/en_US.js b/utils/language/en_US.js index ff80a54..0e97ac0 100644 --- a/utils/language/en_US.js +++ b/utils/language/en_US.js @@ -14,6 +14,8 @@ export default { Login: 'Login', SignUp: 'Sign Up', ForgotPassword: 'Forgot password', + Getcode:'Get code', + passwordRule:'Please enter a password of 6-20 characters, which must contain at least 1 capital letter, 1 lowercase letter and 1 digit', // login welcomeText: 'Hi, Welcome Back!', signInText: 'Sign in to your account.', @@ -27,6 +29,7 @@ export default { checkTheTermsOfService: 'Please review and agree to the terms of service', // register + passwordConfirm:"The login passwords entered repeatedly are inconsistent", loginSuccess:"Login successful", resSuccess:"Registration success", Emailempty:"E-mail can not be empty", @@ -321,6 +324,7 @@ export default { //me me: { + isLogOut:'Are you sure you want to log out?', account: 'account', Recharge: 'Recharge', Withdrawal: 'Withdrawal', @@ -354,6 +358,7 @@ export default { PleaseEnterTheOldPassword: 'Please Enter the old password', CreateNewLoginPassword: 'Create new Login password', Confirm: 'Confirm', + Cancel: 'Cancel', ModifyWithdrawalPassword: 'Modify Withdrawal Password', CreateNewPassword: 'Create new password',