From 78a1788c2a5e5dac6c1bfb3fa594dc4b29af1284 Mon Sep 17 00:00:00 2001 From: linju-json Date: Tue, 27 Jul 2021 17:12:04 +0800 Subject: [PATCH] =?UTF-8?q?1.=20=E6=94=AF=E6=8C=81vue3.0=202.=20=E5=8E=BB?= =?UTF-8?q?=E6=8E=89App.vue=E5=85=A8=E5=B1=80=E6=A0=B7=E5=BC=8F=EF=BC=8C?= =?UTF-8?q?=E9=81=BF=E5=85=8D=E4=B8=8E=E9=9D=9Eflex=E5=B8=83=E5=B1=80?= =?UTF-8?q?=E7=9A=84=E9=A1=B5=E9=9D=A2=E6=A0=B7=E5=BC=8F=E5=86=B2=E7=AA=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- changelog.md | 3 + common/all-flex.css | 15 - common/appInit.js | 3 +- components/uni-agreements/uni-agreements.vue | 10 +- .../uni-quick-login/uni-quick-login.vue | 42 +- .../uni-send-sms-code/uni-send-sms-code.vue | 48 ++- manifest.json | 242 ++++++------ package.json | 2 +- pages/list/list.nvue | 3 + pages/ucenter/about/about.vue | 362 ++++++++++-------- .../ucenter/login-page/common/login-page.css | 115 +++--- pages/ucenter/login-page/index/index.vue | 10 +- .../login-page/phone-code/phone-code.vue | 9 +- pages/ucenter/settings/settings.vue | 1 - pages/ucenter/ucenter.vue | 27 +- pages/ucenter/userinfo/userinfo.vue | 22 +- .../uni-config-center/uni-id/config.json | 52 +++ .../uni-file-picker/uni-file-picker.vue | 156 ++++---- .../cloudfunctions/uni-id-cf/index.js | 10 +- .../components/uni-sign-in/uni-sign-in.vue | 2 +- uni_modules_tools/config.js | 4 +- uni_modules_tools/copy/manifest.json | 3 +- .../uni-config-center/uni-id/config.json | 6 +- 23 files changed, 645 insertions(+), 502 deletions(-) delete mode 100644 common/all-flex.css create mode 100644 uni_modules/uni-config-center/uniCloud/cloudfunctions/common/uni-config-center/uni-id/config.json diff --git a/changelog.md b/changelog.md index 00d8412..9056ff7 100644 --- a/changelog.md +++ b/changelog.md @@ -1,3 +1,6 @@ +## 1.0.41(2021-07-27) +1. 支持vue3.0 +2. 去掉App.vue全局样式,避免与非flex布局的页面样式冲突 ## 1.0.40(2021-07-22) 1. 调整使用正则表达式配置强制登陆功能的写法,解决在小程序端的兼容问题。 2. 新增签到功能(培养用户习惯,提升用户粘性)。支持:每日签到奖励、周期性连续7日签到,奖励翻倍。 diff --git a/common/all-flex.css b/common/all-flex.css deleted file mode 100644 index 59a8df2..0000000 --- a/common/all-flex.css +++ /dev/null @@ -1,15 +0,0 @@ -view, -scroll-view, -text, -image, -switch, -navigator, -icons { - display: flex !important; - box-sizing: border-box; - flex-direction: column; -} - -scroll-view { - -webkit-overflow-scrolling: touch; -} diff --git a/common/appInit.js b/common/appInit.js index da0ae8b..cbd76ca 100644 --- a/common/appInit.js +++ b/common/appInit.js @@ -115,7 +115,7 @@ export default async function() { //拦截器封装callFunction let callFunctionOption; uniCloud.addInterceptor('callFunction', { - async invoke(option) { + async invoke(option) { // #ifdef APP-PLUS // 判断如果是执行登陆(无论是哪种登陆方式),就记录用户的相关设备id if (option.name == 'uni-id-cf' && (option.data.action == 'register' || option.data.action.slice(0, 5) == 'login')) { @@ -303,7 +303,6 @@ export default async function() { list.forEach(item => { //用遍历的方式分别为,uni.navigateTo,uni.redirectTo,uni.reLaunch,uni.switchTab这4个路由方法添加拦截器 uni.addInterceptor(item, { invoke(e) { // 调用前拦截 - // console.log(e); //获取用户的token const token = uni.getStorageSync('uni_id_token'), //token是否已失效 diff --git a/components/uni-agreements/uni-agreements.vue b/components/uni-agreements/uni-agreements.vue index e222237..941fefe 100644 --- a/components/uni-agreements/uni-agreements.vue +++ b/components/uni-agreements/uni-agreements.vue @@ -44,8 +44,14 @@ } - + diff --git a/components/uni-send-sms-code/uni-send-sms-code.vue b/components/uni-send-sms-code/uni-send-sms-code.vue index ed0028e..ac40d52 100644 --- a/components/uni-send-sms-code/uni-send-sms-code.vue +++ b/components/uni-send-sms-code/uni-send-sms-code.vue @@ -74,33 +74,33 @@ title: '手机号格式错误', icon: 'none' }); - uniCloud.callFunction({ - name:'uni-id-cf', - data:{ - action:'sendSmsCode', - params:{ - "mobile": this.phone, - "type": this.codeType - }, - }, - success: ({result}) => { - console.log(result); + uniCloud.callFunction({ + name:'uni-id-cf', + data:{ + action:'sendSmsCode', + params:{ + "mobile": this.phone, + "type": this.codeType + }, + }, + success: ({result}) => { + console.log(result); if(result.code===0){ - uni.showToast({ - title: "短信验证码发送成功", - icon: 'none' - }); - this.reverseNumber = Number(this.count); - this.getCode(); + uni.showToast({ + title: "短信验证码发送成功", + icon: 'none' + }); + this.reverseNumber = Number(this.count); + this.getCode(); this.$emit('getCode'); }else{ uni.showModal({ content: result.msg, showCancel: false }); - } - } - }) + } + } + }) }, getCode() { if (this.reverseNumber == 0) { @@ -118,7 +118,13 @@ \ No newline at end of file + + + diff --git a/pages/ucenter/login-page/common/login-page.css b/pages/ucenter/login-page/common/login-page.css index ae23712..d30c21c 100644 --- a/pages/ucenter/login-page/common/login-page.css +++ b/pages/ucenter/login-page/common/login-page.css @@ -1,54 +1,61 @@ -@import '@/common/all-flex.css'; - - .content { - padding: 0 50rpx; - width: 750rpx; - flex: 1; - } - - .input-box { - padding: 0 15px; - margin-bottom: 10px; - background-color: #F8F8F8; - border-radius: 6px; - font-size: 28rpx; - } - - .get-code { - margin: 0; - margin-top: 15px; - background-color: #007aff; - color: #FFFFFF; - } - - .input-box, - .get-code { - height: 45px; - line-height: 45px; - } - - .title { - text-align: center; - padding-bottom: 5px; - } - - .tip { - color: #666666; - font-size: 26rpx; - margin: 6px 0; - } - - .easyinput { - background-color: #F8F8F8; - border-radius: 6rpx; - } - - .send-btn { - width: 100%; - margin-top: 15px; - border-radius: 6rpx; - } - - .link { - color: #04498c; - } +/* #ifndef APP-NVUE */ +view { + display: flex; + box-sizing: border-box; + flex-direction: column; +} + +/* #endif */ + +.content { + padding: 0 50rpx; + width: 750rpx; + flex: 1; +} + +.input-box { + padding: 0 15px; + margin-bottom: 10px; + background-color: #F8F8F8; + border-radius: 6px; + font-size: 28rpx; +} + +.get-code { + margin: 0; + margin-top: 15px; + background-color: #007aff; + color: #FFFFFF; +} + +.input-box, +.get-code { + height: 45px; + line-height: 45px; +} + +.title { + text-align: center; + padding-bottom: 5px; +} + +.tip { + color: #666666; + font-size: 26rpx; + margin: 6px 0; +} + +.easyinput { + background-color: #F8F8F8; + border-radius: 6rpx; +} + +.send-btn { + width: 100%; + margin-top: 15px; + border-radius: 6rpx; +} + +.link { + color: #04498c; +} diff --git a/pages/ucenter/login-page/index/index.vue b/pages/ucenter/login-page/index/index.vue index e2d30b6..cdc2fee 100644 --- a/pages/ucenter/login-page/index/index.vue +++ b/pages/ucenter/login-page/index/index.vue @@ -109,7 +109,13 @@ + diff --git a/pages/ucenter/login-page/phone-code/phone-code.vue b/pages/ucenter/login-page/phone-code/phone-code.vue index 731e37f..2bb28e1 100644 --- a/pages/ucenter/login-page/phone-code/phone-code.vue +++ b/pages/ucenter/login-page/phone-code/phone-code.vue @@ -2,11 +2,12 @@ 请输入验证码 - {{tipText}} + {{tipText}} + -