From b8534d6c1734320cd1ee3611e5f6c000805c0a04 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8A=8A=E9=87=8C?= <1227971437@qq.com> Date: Fri, 9 Apr 2021 10:54:10 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=B8=AE=E5=8A=A9=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages.json | 7 + pages/ucenter/help.vue | 178 ++++++++++++++++++ .../uni-login-page/common/loginPage.mixin.js | 11 ++ .../uni-login-page/pages/index/index.vue | 7 +- 4 files changed, 201 insertions(+), 2 deletions(-) create mode 100644 pages/ucenter/help.vue create mode 100644 uni_modules/uni-login-page/common/loginPage.mixin.js diff --git a/pages.json b/pages.json index d58b083f..9b7f1302 100644 --- a/pages.json +++ b/pages.json @@ -175,6 +175,13 @@ } } + }, { + "path": "pages/ucenter/help", + "style": { + "navigationBarTitleText": "帮助", + "enablePullDownRefresh": false + } + } ], "globalStyle": { diff --git a/pages/ucenter/help.vue b/pages/ucenter/help.vue new file mode 100644 index 00000000..2f5d377a --- /dev/null +++ b/pages/ucenter/help.vue @@ -0,0 +1,178 @@ + + + + + \ No newline at end of file diff --git a/uni_modules/uni-login-page/common/loginPage.mixin.js b/uni_modules/uni-login-page/common/loginPage.mixin.js new file mode 100644 index 00000000..3c949edc --- /dev/null +++ b/uni_modules/uni-login-page/common/loginPage.mixin.js @@ -0,0 +1,11 @@ +const helpPage = '/pages/ucenter/help'; // 帮助页面 + +let mixin = { + // 监听帮助按钮 + onNavigationBarButtonTap(event) { + uni.navigateTo({ + url:helpPage + }) + }, +} +export default mixin \ No newline at end of file diff --git a/uni_modules/uni-login-page/pages/index/index.vue b/uni_modules/uni-login-page/pages/index/index.vue index 4e8fb088..1b8ef2e1 100644 --- a/uni_modules/uni-login-page/pages/index/index.vue +++ b/uni_modules/uni-login-page/pages/index/index.vue @@ -38,8 +38,10 @@