From 457935a100e350bca5b7246ccfaa57772f7bb602 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E8=8A=8A=E9=87=8C?= <1227971437@qq.com>
Date: Thu, 8 Apr 2021 20:53:23 +0800
Subject: [PATCH] =?UTF-8?q?=E9=AA=8C=E8=AF=81=E7=A0=81=E8=BE=93=E5=85=A5?=
=?UTF-8?q?=E9=A1=B5=E9=9D=A2?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pages.json | 413 ++++++++++--------
.../login-short-code/login-short-code.vue | 4 +-
.../uni-login-page/pages/index/index.vue | 10 +-
.../uni-login-page/pages/index/phone-code.vue | 100 +++++
.../pages/index/pwd-retrieve.vue | 8 +-
5 files changed, 328 insertions(+), 207 deletions(-)
create mode 100644 uni_modules/uni-login-page/pages/index/phone-code.vue
diff --git a/pages.json b/pages.json
index 71447ba..e2d718c 100644
--- a/pages.json
+++ b/pages.json
@@ -1,195 +1,220 @@
-{
- "pages": [{
- "path": "pages/list/list",
- "style": {
- "navigationStyle": "custom",
- "enablePullDownRefresh":true
- }
- },{
- "path": "pages/list/news-list",
- "style": {
- "navigationStyle": "custom",
- "enablePullDownRefresh":true
- }
- },
- {
- "path": "pages/grid/grid",
- "style": {
- "navigationStyle": "custom"
- }
- }, {
- "path": "uni_modules/uni-login-page/pages/index/index",
- "style": {
- "navigationStyle": "custom",
- "backgroundColor": "transparent",
- "app-plus": {
- "animationType": "fade-in",
- "background": "transparent",
- "popGesture": "none"
- }
- }
- // "navigationBarTitleText": "",
- // "navigationBarBackgroundColor": "#FFFFFF",
- // "app-plus": {
- // "titleNView": {
- // "buttons": [{
- // "text": "帮助",
- // "type": "none",
- // "fontSize": "16px",
- // "width": "60px"
- // }]
- // }
-
- }, {
- "path": "pages/search/search",
- "style": {
- "navigationStyle": "custom"
- }
- }, {
- "path": "pages/list/detail",
- "style": {
- "app-plus": {
- "titleNView": {
- "buttons": [{
- "type": "share"
- }],
- "type": "transparent"
- }
- },
- "h5": {
- "titleNView": {
- "buttons": [],
- "type": "transparent"
- }
- },
- "navigationBarTitleText": "文章详情"
- }
-
- }, {
- "path": "pages/ucenter/ucenter",
- "style": {
- "navigationStyle":"custom"
- }
- }, {
- "path": "pages/uni-feedback/uni-feedback",
- "style": {
- "navigationBarTitleText": "问题反馈"
- }
- }, {
- "path": "pages/about/about",
- "style": {
- "navigationBarTitleText": "关于"
- }
-
- }, {
- "path": "pages/agree-list/agree-list",
- "style": {
- "navigationBarTitleText": "政策与协议"
- }
-
- }, {
- "path": "pages/agree-list/privacy/privacy",
- "style": {
- "navigationBarTitleText": "隐私政策"
- }
-
- }, {
- "path": "pages/agree-list/service/service",
- "style": {
- "navigationBarTitleText": "服务协议"
- }
-
- }, {
- "path": "uni_modules/uni-upgrade-center-app/pages/upgrade-popup",
- "style": {
- "disableScroll": true,
- "app-plus": {
- "backgroundColorTop": "transparent",
- "background": "transparent",
- "titleNView": false,
- "scrollIndicator": false,
- "popGesture": "none",
- "animationType": "fade-in",
- "animationDuration": 200
-
- }
- }
- }, {
- "path": "pages/settings/settings",
- "style": {
- "navigationBarTitleText": "设置"
- }
-
- }, {
- "path": "pages/ucenter/edit/edit",
- "style": {
- "navigationBarTitleText": "编辑资料"
- }
- }, {
- "path": "pages/ucenter/edit/uploadCutImageToUnicloud",
- "style": {
- "navigationStyle": "custom"
- }
- }, {
- "path": "uni_modules/uni-login-page/pages/index/pwd-login",
- "style": {
- "navigationBarTitleText": "",
- "navigationBarBackgroundColor": "#FFFFFF",
- "app-plus": {
- "titleNView": {
- "buttons": [{
- "text": "帮助",
- "type": "none",
- "fontSize": "16px",
- "width": "60px"
- }]
- }
- }
- }
- }, {
- "path": "uni_modules/uni-login-page/pages/index/pwd-retrieve",
- "style": {
- "navigationBarTitleText": "",
- "navigationBarBackgroundColor": "#FFFFFF",
- "app-plus": {
- "titleNView": {
- "buttons": [{
- "text": "帮助",
- "type": "none",
- "fontSize": "16px",
- "width": "60px"
- }]
- }
- }
- }
- }
- ],
- "globalStyle": {
- "navigationBarTextStyle": "black",
- "navigationBarTitleText": "base-app",
- "navigationBarBackgroundColor": "#F8F8F8",
- "backgroundColor": "#F8F8F8"
- },
- "tabBar": {
- "color": "#7A7E83",
- "selectedColor": "#007AFF",
- "borderStyle": "black",
- "backgroundColor": "#F8F8F8",
- "list": [{
- "pagePath": "pages/list/list",
- "iconPath":"static/tabbar/list.png",
- "selectedIconPath":"static/tabbar/list_active.png",
- "text": "列表"
- }, {
- "pagePath": "pages/grid/grid",
- "iconPath":"static/tabbar/grid.png",
- "selectedIconPath":"static/tabbar/grid_active.png",
- "text": "宫格"
- }, {
- "pagePath": "pages/ucenter/ucenter",
- "iconPath":"static/tabbar/me.png",
- "selectedIconPath":"static/tabbar/me_active.png",
- "text": "我的"
- }]
- }
+{
+ "pages": [{
+ "path": "pages/list/list",
+ "style": {
+ "navigationStyle": "custom",
+ "enablePullDownRefresh": true
+ }
+ }, {
+ "path": "pages/list/news-list",
+ "style": {
+ "navigationStyle": "custom",
+ "enablePullDownRefresh": true
+ }
+ },
+ {
+ "path": "pages/grid/grid",
+ "style": {
+ "navigationStyle": "custom"
+ }
+ }, {
+ "path": "uni_modules/uni-login-page/pages/index/index",
+ "style": {
+ "navigationBarTitleText": "",
+ "navigationBarBackgroundColor": "#FFFFFF",
+ "app-plus": {
+ "animationType": "fade-in",
+ "background": "transparent",
+ "popGesture": "none",
+ "titleNView": {
+ "buttons": [{
+ "text": "帮助",
+ "type": "none",
+ "fontSize": "16px",
+ "width": "60px"
+ }]
+ }
+ }
+ }
+ // "navigationBarTitleText": "",
+ // "navigationBarBackgroundColor": "#FFFFFF",
+ // "app-plus": {
+ // "titleNView": {
+ // "buttons": [{
+ // "text": "帮助",
+ // "type": "none",
+ // "fontSize": "16px",
+ // "width": "60px"
+ // }]
+ // }
+
+ }, {
+ "path": "pages/search/search",
+ "style": {
+ "navigationStyle": "custom"
+ }
+ }, {
+ "path": "pages/list/detail",
+ "style": {
+ "app-plus": {
+ "titleNView": {
+ "buttons": [{
+ "type": "share"
+ }],
+ "type": "transparent"
+ }
+ },
+ "h5": {
+ "titleNView": {
+ "buttons": [],
+ "type": "transparent"
+ }
+ },
+ "navigationBarTitleText": "文章详情"
+ }
+
+ }, {
+ "path": "pages/ucenter/ucenter",
+ "style": {
+ "navigationStyle": "custom"
+ }
+ }, {
+ "path": "pages/uni-feedback/uni-feedback",
+ "style": {
+ "navigationBarTitleText": "问题反馈"
+ }
+ }, {
+ "path": "pages/about/about",
+ "style": {
+ "navigationBarTitleText": "关于"
+ }
+
+ }, {
+ "path": "pages/agree-list/agree-list",
+ "style": {
+ "navigationBarTitleText": "政策与协议"
+ }
+
+ }, {
+ "path": "pages/agree-list/privacy/privacy",
+ "style": {
+ "navigationBarTitleText": "隐私政策"
+ }
+
+ }, {
+ "path": "pages/agree-list/service/service",
+ "style": {
+ "navigationBarTitleText": "服务协议"
+ }
+
+ }, {
+ "path": "uni_modules/uni-upgrade-center-app/pages/upgrade-popup",
+ "style": {
+ "disableScroll": true,
+ "app-plus": {
+ "backgroundColorTop": "transparent",
+ "background": "transparent",
+ "titleNView": false,
+ "scrollIndicator": false,
+ "popGesture": "none",
+ "animationType": "fade-in",
+ "animationDuration": 200
+
+ }
+ }
+ }, {
+ "path": "pages/settings/settings",
+ "style": {
+ "navigationBarTitleText": "设置"
+ }
+
+ }, {
+ "path": "pages/ucenter/edit/edit",
+ "style": {
+ "navigationBarTitleText": "编辑资料"
+ }
+ }, {
+ "path": "pages/ucenter/edit/uploadCutImageToUnicloud",
+ "style": {
+ "navigationStyle": "custom"
+ }
+ }, {
+ "path": "uni_modules/uni-login-page/pages/index/pwd-login",
+ "style": {
+ "navigationBarTitleText": "",
+ "navigationBarBackgroundColor": "#FFFFFF",
+ "app-plus": {
+ "titleNView": {
+ "buttons": [{
+ "text": "帮助",
+ "type": "none",
+ "fontSize": "16px",
+ "width": "60px"
+ }]
+ }
+ }
+ }
+ }, {
+ "path": "uni_modules/uni-login-page/pages/index/pwd-retrieve",
+ "style": {
+ "navigationBarTitleText": "",
+ "navigationBarBackgroundColor": "#FFFFFF",
+ "app-plus": {
+ "titleNView": {
+ "buttons": [{
+ "text": "帮助",
+ "type": "none",
+ "fontSize": "16px",
+ "width": "60px"
+ }]
+ }
+ }
+ }
+ }, {
+ "path": "uni_modules/uni-login-page/pages/index/phone-code",
+ "style": {
+ "navigationBarTitleText": "",
+ "navigationBarBackgroundColor": "#FFFFFF",
+ "app-plus": {
+ "titleNView": {
+ "buttons": [{
+ "text": "帮助",
+ "type": "none",
+ "fontSize": "16px",
+ "width": "60px"
+ }]
+ }
+ }
+ }
+
+ }
+ ],
+ "globalStyle": {
+ "navigationBarTextStyle": "black",
+ "navigationBarTitleText": "base-app",
+ "navigationBarBackgroundColor": "#F8F8F8",
+ "backgroundColor": "#F8F8F8"
+ },
+ "tabBar": {
+ "color": "#7A7E83",
+ "selectedColor": "#007AFF",
+ "borderStyle": "black",
+ "backgroundColor": "#F8F8F8",
+ "list": [{
+ "pagePath": "pages/list/list",
+ "iconPath": "static/tabbar/list.png",
+ "selectedIconPath": "static/tabbar/list_active.png",
+ "text": "列表"
+ }, {
+ "pagePath": "pages/grid/grid",
+ "iconPath": "static/tabbar/grid.png",
+ "selectedIconPath": "static/tabbar/grid_active.png",
+ "text": "宫格"
+ }, {
+ "pagePath": "pages/ucenter/ucenter",
+ "iconPath": "static/tabbar/me.png",
+ "selectedIconPath": "static/tabbar/me_active.png",
+ "text": "我的"
+ }]
+ }
}
diff --git a/uni_modules/uni-login-page/components/login-short-code/login-short-code.vue b/uni_modules/uni-login-page/components/login-short-code/login-short-code.vue
index 052bd6c..b345f4f 100644
--- a/uni_modules/uni-login-page/components/login-short-code/login-short-code.vue
+++ b/uni_modules/uni-login-page/components/login-short-code/login-short-code.vue
@@ -1,5 +1,5 @@
-
+
{{innerText}}
@@ -47,7 +47,7 @@
},
methods: {
initClick() {
- this.clickBtn = debounce(() => {
+ this.start = debounce(() => {
if (this.reverseNumber != 0) return;
this.$emit('getCode', () => {
this.reverseNumber = Number(this.count);
diff --git a/uni_modules/uni-login-page/pages/index/index.vue b/uni_modules/uni-login-page/pages/index/index.vue
index 21b573a..672eca3 100644
--- a/uni_modules/uni-login-page/pages/index/index.vue
+++ b/uni_modules/uni-login-page/pages/index/index.vue
@@ -1,6 +1,5 @@
-
@@ -100,7 +99,11 @@
if (!this.canGetShortMsg) return;
/**
* 发送验证吗
- */
+ */
+ // 发送成功后跳转页面
+ uni.navigateTo({
+ url:'./phone-code?phoneNumber='+this.formData.phone+'&phoneArea='+this.currenPhoneArea
+ })
},
/**
* 去密码登录页
@@ -112,9 +115,6 @@
},
openLoginList() {
this.$refs.loginActionSheet.open();
- },
- back() {
- uni.navigateBack()
}
}
}
diff --git a/uni_modules/uni-login-page/pages/index/phone-code.vue b/uni_modules/uni-login-page/pages/index/phone-code.vue
new file mode 100644
index 0000000..4d023b2
--- /dev/null
+++ b/uni_modules/uni-login-page/pages/index/phone-code.vue
@@ -0,0 +1,100 @@
+
+
+
+
+
+ 请输入验证码
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/uni_modules/uni-login-page/pages/index/pwd-retrieve.vue b/uni_modules/uni-login-page/pages/index/pwd-retrieve.vue
index 044f986..6a782fd 100644
--- a/uni_modules/uni-login-page/pages/index/pwd-retrieve.vue
+++ b/uni_modules/uni-login-page/pages/index/pwd-retrieve.vue
@@ -3,7 +3,7 @@
- 手机号密码登录
+ 重置密码
@@ -15,7 +15,7 @@
+ v-model="formData.pwd" placeholder="请输入新密码">
@@ -82,10 +82,6 @@
if (event && event.phoneNumber) {
this.phoneNumber = event.phoneNumber;
this.currenPhoneArea = '+' + Number(event.phoneArea);
- }
- else {
- this.phoneNumber = '17731252731';
- this.currenPhoneArea = '+86';
}
},
methods: {
--
GitLab