反馈修改完成
							parent
							
								
									79e959984f
								
							
						
					
					
						commit
						75407f3e00
					
				| 
						 | 
				
			
			@ -3,5 +3,7 @@
 | 
			
		|||
  // 悬停以查看现有属性的描述。
 | 
			
		||||
  // 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387
 | 
			
		||||
  "version": "0.2.0",
 | 
			
		||||
  "configurations": []
 | 
			
		||||
  "configurations": [
 | 
			
		||||
  
 | 
			
		||||
  ]
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,3 +1,3 @@
 | 
			
		|||
<view>
 | 
			
		||||
  <web-view src="{{url}}" onMessage="test"></web-view>
 | 
			
		||||
  <web-view id="web-view-1" src="{{url}}" onMessage="onmessage"></web-view>
 | 
			
		||||
</view>
 | 
			
		||||
| 
						 | 
				
			
			@ -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'});
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
});
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -8,7 +8,7 @@
 | 
			
		|||
        </view>
 | 
			
		||||
        <view class="flex flex-02">
 | 
			
		||||
          <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:else>{{count}}s后可再获取</view>
 | 
			
		||||
        </view>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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'
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -8,7 +8,7 @@ Page({
 | 
			
		|||
    timer: null,
 | 
			
		||||
    userType: 0,
 | 
			
		||||
    placeholder:'-',
 | 
			
		||||
    number:6,
 | 
			
		||||
    number:4,
 | 
			
		||||
    code:'',
 | 
			
		||||
    isToast: false,
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue