From 7e4d083ca0501bc4b1d7ae68df8c38ac6ccba1a0 Mon Sep 17 00:00:00 2001 From: linju-json Date: Thu, 6 May 2021 18:31:53 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=BE=AE=E4=BF=A1=E5=B0=8F?= =?UTF-8?q?=E7=A8=8B=E5=BA=8F=E7=99=BB=E9=99=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- baseapp.config.js | 7 +-- common/appInit.js | 2 - components/uni-agreements/uni-agreements.vue | 7 ++- .../uni-quick-login/uni-quick-login.vue | 56 ++++++++++++++++--- pages.json | 2 +- pages/ucenter/settings/settings.vue | 4 +- .../uni-config-center/uni-id/config.json | 4 +- 7 files changed, 61 insertions(+), 21 deletions(-) diff --git a/baseapp.config.js b/baseapp.config.js index 0c13a23..86fddfd 100644 --- a/baseapp.config.js +++ b/baseapp.config.js @@ -25,13 +25,10 @@ module.exports = { "/uni_modules/uni-news-favorite/pages/uni-news-favorite/list", "/pages/ucenter/userinfo/uploadCutImageToUnicloud" ], - "login": [ "smsCode","uniVerify", "username", "weixin", "apple"], - /* + "login": ["smsCode","uniVerify", "username", "weixin", "apple"], + /* 根据数组的第0项,决定登陆方式的第一优先级。 未列举到的,或设备环境不支持的选项,将被隐藏。 - 快捷登陆按钮,在任意一页面都存在。 - 所以只有三种情况: - 一键登录(uniVerify)、账号(username)、验证码登陆(其他值为第一项都为验证码登陆) 如果你需要在不同平台有不同的配置,直接用条件编译即可 */ }, diff --git a/common/appInit.js b/common/appInit.js index 42ec863..bd57620 100644 --- a/common/appInit.js +++ b/common/appInit.js @@ -55,8 +55,6 @@ export default function() { e.url += "univerify_first=true" } else if (login[0] == 'username') { e.url = "/pages/ucenter/login-page/pwd-login/pwd-login" - } else { - //默认即是 } } return true diff --git a/components/uni-agreements/uni-agreements.vue b/components/uni-agreements/uni-agreements.vue index f3621da..eabfc1d 100644 --- a/components/uni-agreements/uni-agreements.vue +++ b/components/uni-agreements/uni-agreements.vue @@ -3,7 +3,7 @@ 登陆即表示同意 @@ -13,7 +13,7 @@ name:"uni-agreements", computed:{ agreements(){ - return getApp().globalData.config.about.agreements + return getApp().globalData.config.about.agreements||[] } }, methods:{ @@ -24,6 +24,9 @@ fail: () => {}, complete: () => {} }); + }, + hasAnd(agreements,index){ + return agreements.length-1>index } }, data() { diff --git a/components/uni-quick-login/uni-quick-login.vue b/components/uni-quick-login/uni-quick-login.vue index ea87ee6..34daca4 100644 --- a/components/uni-quick-login/uni-quick-login.vue +++ b/components/uni-quick-login/uni-quick-login.vue @@ -5,6 +5,9 @@ {{item.text}} + + +