反馈修改完成

master
Lee-1203 2022-03-14 19:57:16 +08:00
parent 79e959984f
commit 75407f3e00
7 changed files with 32 additions and 6 deletions

View File

@ -3,5 +3,7 @@
// //
// 访: https://go.microsoft.com/fwlink/?linkid=830387 // 访: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0", "version": "0.2.0",
"configurations": [] "configurations": [
]
} }

View File

@ -1,3 +1,3 @@
<view> <view>
<web-view src="{{url}}" onMessage="test"></web-view> <web-view id="web-view-1" src="{{url}}" onMessage="onmessage"></web-view>
</view> </view>

View File

@ -15,5 +15,20 @@ Page({
url: 'http://aspevel.scdxtc.cn/#/index?token='+token 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'});
}
}
}); });

View File

@ -8,7 +8,7 @@
</view> </view>
<view class="flex flex-02"> <view class="flex flex-02">
<text>验证码</text> <text>验证码</text>
<input type="input" onInput="bindKeyCode" placeholder="请输入验证码"/> <input type="input" onInput="bindKeyCode" maxlength="4" placeholder="请输入验证码"/>
<view a:if="{{show}}" onTap="changeCode">获取验证码</view> <view a:if="{{show}}" onTap="changeCode">获取验证码</view>
<view a:else>{{count}}s后可再获取</view> <view a:else>{{count}}s后可再获取</view>
</view> </view>

View File

@ -131,6 +131,15 @@ Page({
dd.$http.post('/api/user/bind-phone',params).then(res=>{ dd.$http.post('/api/user/bind-phone',params).then(res=>{
console.log(res,'绑定数据') console.log(res,'绑定数据')
if (res.code == 0) { 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 ({ dd.redirectTo ({
url: '/pages/home/home' url: '/pages/home/home'

View File

@ -27,7 +27,7 @@ textarea::-webkit-input-placeholder{
.security-code-container { .security-code-container {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
width: 5.32rem; width: 3.82rem;
} }
.field-wrap { .field-wrap {
list-style: none; list-style: none;
@ -49,7 +49,7 @@ textarea::-webkit-input-placeholder{
position: absolute; position: absolute;
left: 0; left: 0;
top: 0; top: 0;
width: 5.32rem; width:3.82rem;
height: 1rem; height: 1rem;
opacity: 0; opacity: 0;
overflow: visible; overflow: visible;

View File

@ -8,7 +8,7 @@ Page({
timer: null, timer: null,
userType: 0, userType: 0,
placeholder:'-', placeholder:'-',
number:6, number:4,
code:'', code:'',
isToast: false, isToast: false,