From 561d1a51372b82583c8cdc23f44e95103b15e17c Mon Sep 17 00:00:00 2001 From: liutong <836164388@qq.com> Date: Thu, 13 Mar 2025 18:11:13 +0800 Subject: [PATCH] =?UTF-8?q?feat(coach):=20=E6=B7=BB=E5=8A=A0=E6=95=99?= =?UTF-8?q?=E7=BB=83=E7=AB=AF=E8=AE=BE=E7=BD=AE=E9=A1=B5=E9=9D=A2=E5=92=8C?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=AF=86=E7=A0=81=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 新增设置页面,包含修改密码、用户协议、隐私策略和清空缓存等功能 - 实现修改密码功能,包括验证原密码和设置新密码的步骤 - 更新我的页面,添加设置入口 - 在页面配置中添加新页面的导航栏样式 --- pages.json | 20 +++++- pages/coach/my/index.vue | 21 ++++--- pages/coach/my/set_up.vue | 53 ++++++++++++++++ pages/coach/my/update_pass.vue | 107 +++++++++++++++++++++++++++++++++ 4 files changed, 192 insertions(+), 9 deletions(-) create mode 100644 pages/coach/my/set_up.vue create mode 100644 pages/coach/my/update_pass.vue diff --git a/pages.json b/pages.json index 38a68f1..be3b1f5 100644 --- a/pages.json +++ b/pages.json @@ -285,9 +285,25 @@ "navigationBarBackgroundColor": "#292929", "navigationBarTextStyle": "white" } + }, + { + "path": "pages/coach/my/set_up", + "style": { + "navigationBarTitleText": "设置", + "navigationStyle": "default", + "navigationBarBackgroundColor": "#292929", + "navigationBarTextStyle": "white" + } + }, + { + "path": "pages/coach/my/update_pass", + "style": { + "navigationBarTitleText": "修改密码", + "navigationStyle": "default", + "navigationBarBackgroundColor": "#fff", + "navigationBarTextStyle": "black" + } } - - ], "globalStyle": { "navigationBarTextStyle": "white", diff --git a/pages/coach/my/index.vue b/pages/coach/my/index.vue index b9b4258..cc7a79a 100644 --- a/pages/coach/my/index.vue +++ b/pages/coach/my/index.vue @@ -64,25 +64,25 @@ xxx场馆 - - 即将到期 + + 即将到期 - - 授课统计 + + 授课统计 - - 意见反馈 + + 意见反馈 - + 设置 @@ -144,6 +144,13 @@ export default { uni.navigateTo({ url: '/pages/coach/my/info' }) + }, + + //打开设置 + openViewSetUp(){ + uni.navigateTo({ + url: '/pages/coach/my/set_up' + }) } } } diff --git a/pages/coach/my/set_up.vue b/pages/coach/my/set_up.vue new file mode 100644 index 0000000..31e3566 --- /dev/null +++ b/pages/coach/my/set_up.vue @@ -0,0 +1,53 @@ + + + + + + diff --git a/pages/coach/my/update_pass.vue b/pages/coach/my/update_pass.vue new file mode 100644 index 0000000..3544848 --- /dev/null +++ b/pages/coach/my/update_pass.vue @@ -0,0 +1,107 @@ + + + + + + \ No newline at end of file