From 75407f3e007f8bd05bc83b4415dedc9597804f2a Mon Sep 17 00:00:00 2001 From: Lee-1203 <342694918@qq.com> Date: Mon, 14 Mar 2022 19:57:16 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=8D=E9=A6=88=E4=BF=AE=E6=94=B9=E5=AE=8C?= =?UTF-8?q?=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .mini-ide/launch.json | 4 +++- pages/home/home.axml | 2 +- pages/home/home.js | 15 +++++++++++++++ pages/login/bind/bind.axml | 2 +- pages/login/bind/bind.js | 9 +++++++++ pages/login/verification/verification.acss | 4 ++-- pages/login/verification/verification.js | 2 +- 7 files changed, 32 insertions(+), 6 deletions(-) diff --git a/.mini-ide/launch.json b/.mini-ide/launch.json index ec899f6..bbff82a 100644 --- a/.mini-ide/launch.json +++ b/.mini-ide/launch.json @@ -3,5 +3,7 @@ // 悬停以查看现有属性的描述。 // 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387 "version": "0.2.0", - "configurations": [] + "configurations": [ + + ] } diff --git a/pages/home/home.axml b/pages/home/home.axml index 9e7a2c9..d7d96b5 100644 --- a/pages/home/home.axml +++ b/pages/home/home.axml @@ -1,3 +1,3 @@ - + \ No newline at end of file diff --git a/pages/home/home.js b/pages/home/home.js index 5499bbb..0fe3316 100644 --- a/pages/home/home.js +++ b/pages/home/home.js @@ -15,5 +15,20 @@ Page({ url: 'http://aspevel.scdxtc.cn/#/index?token='+token }) } + + this.webViewContext = dd.createWebViewContext('web-view-1'); }, + onmessage: function(e) { + console.log(e.detail,4545454545) + if(e.detail.name == 'clearAll'){ + // 缓存删除 + dd.$toolAll.removeCache('token'); + dd.$toolAll.removeCache('userinfo'); + dd.$toolAll.removeCache('centerUserData'); + dd.$toolAll.removeCache('userData'); + dd.$toolAll.removeCache('isInFirst'); + // 钉钉跳转 + dd.navigateTo({url: '/pages/login/login'}); + } + } }); diff --git a/pages/login/bind/bind.axml b/pages/login/bind/bind.axml index fdac464..26674b5 100644 --- a/pages/login/bind/bind.axml +++ b/pages/login/bind/bind.axml @@ -8,7 +8,7 @@ 验证码 - + 获取验证码 {{count}}s后可再获取 diff --git a/pages/login/bind/bind.js b/pages/login/bind/bind.js index 65cea41..162db40 100644 --- a/pages/login/bind/bind.js +++ b/pages/login/bind/bind.js @@ -131,6 +131,15 @@ Page({ dd.$http.post('/api/user/bind-phone',params).then(res=>{ console.log(res,'绑定数据') if (res.code == 0) { + dd.$http.post('/api/user/center-info','').then(res=>{ + if (res.code == 0) { + dd.$toolAll.setCache('userData',res.data); + // 跳转页面 + dd.redirectTo ({ + url: '/pages/home/home' + }) + } + }) // 跳转页面 dd.redirectTo ({ url: '/pages/home/home' diff --git a/pages/login/verification/verification.acss b/pages/login/verification/verification.acss index d4e5a69..177a89e 100644 --- a/pages/login/verification/verification.acss +++ b/pages/login/verification/verification.acss @@ -27,7 +27,7 @@ textarea::-webkit-input-placeholder{ .security-code-container { display: flex; justify-content: space-between; - width: 5.32rem; + width: 3.82rem; } .field-wrap { list-style: none; @@ -49,7 +49,7 @@ textarea::-webkit-input-placeholder{ position: absolute; left: 0; top: 0; - width: 5.32rem; + width:3.82rem; height: 1rem; opacity: 0; overflow: visible; diff --git a/pages/login/verification/verification.js b/pages/login/verification/verification.js index e9aa6be..cf67ccf 100644 --- a/pages/login/verification/verification.js +++ b/pages/login/verification/verification.js @@ -8,7 +8,7 @@ Page({ timer: null, userType: 0, placeholder:'-', - number:6, + number:4, code:'', isToast: false,