diff --git a/baseapp.config.js b/baseapp.config.js index 0c13a235c8986bfa9c24f6a6d35ce482dcf00f03..86fddfddfd2ca1e67a32f310181236cecf9f2fde 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 42ec86364284c683dd0ff3bbafb5544528de8cdf..bd57620c0f1681fbcdcd055b983929772aef7348 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 f3621dab6e1454a9d2b2759e2632d0c4c29cd851..eabfc1d1a6f36aefb310d8246043477ce3fbc0f8 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 ea87ee692ec3221923cb3de1235f06939f354b39..34daca44490d7f0e4a87857ac7a3e9cdecd49725 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}} + + +