From 7da9ce7d6358a8ef1290cc26d94b66fc1bdbb97b Mon Sep 17 00:00:00 2001 From: FrancisHu <2756004617@qq.com> Date: Mon, 20 May 2024 15:06:49 +0800 Subject: [PATCH] =?UTF-8?q?5.20=E5=AE=81=E5=A4=8F=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=AF=86=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apis/apis.js | 8 +++ apis/http.js | 1 + pages.json | 8 +++ pages/fixPwd/fixPwd.vue | 127 ++++++++++++++++++++++++++++++++++++++++ pages/login/login.vue | 10 +++- pages/user/user.vue | 12 ++-- router.js | 7 +++ 7 files changed, 165 insertions(+), 8 deletions(-) create mode 100644 pages/fixPwd/fixPwd.vue diff --git a/apis/apis.js b/apis/apis.js index df84761..c744f1e 100644 --- a/apis/apis.js +++ b/apis/apis.js @@ -36,6 +36,14 @@ const user = { data, header ) + }, + async fixPwd (data = {} , header = {}){ + return await Http.put( + HttpConfig.systemPath, + HttpConfig.serviceUrl.user.fixPwd, + data, + header + ) } } diff --git a/apis/http.js b/apis/http.js index 3ddc813..06e4435 100644 --- a/apis/http.js +++ b/apis/http.js @@ -30,6 +30,7 @@ class HttpConfig { }, user: { logOut: '/logout', // 退出登录 + fixPwd: '/user/profile/updatePwd', //修改密码 }, index: { noticeCont: '/sysNotice/getList', // 获取公告内容 diff --git a/pages.json b/pages.json index fc9b023..07987f8 100644 --- a/pages.json +++ b/pages.json @@ -451,6 +451,14 @@ } } + ,{ + "path" : "pages/fixPwd/fixPwd", + "style" : + { + "navigationBarTitleText": "修改密码" + } + + } ], "tabBar": { "color": "#2c2c2c", diff --git a/pages/fixPwd/fixPwd.vue b/pages/fixPwd/fixPwd.vue new file mode 100644 index 0000000..7818694 --- /dev/null +++ b/pages/fixPwd/fixPwd.vue @@ -0,0 +1,127 @@ + + + + + diff --git a/pages/login/login.vue b/pages/login/login.vue index f3bbc69..694aed1 100644 --- a/pages/login/login.vue +++ b/pages/login/login.vue @@ -27,13 +27,16 @@ - + " + @click="forgetPwd" + > 忘记密码 @@ -122,6 +125,9 @@ export default { switchUpper(count) { this.switchStatus = count }, + forgetPwd () { + console.log('忘记密码'); + }, sendVeriCode() { let that = this let phoneReg = /^(?:(?:\+|00)86)?1[3-9]\d{9}$/ diff --git a/pages/user/user.vue b/pages/user/user.vue index 782df3f..4e622cd 100644 --- a/pages/user/user.vue +++ b/pages/user/user.vue @@ -17,23 +17,23 @@ 已认证 - - --> - +