qxf #113
@ -138,16 +138,30 @@ export default {
 | 
			
		||||
            // console.log(this.$u.trim(this.zhanghaoA));
 | 
			
		||||
        },
 | 
			
		||||
		logins() {
 | 
			
		||||
			// 检查网络
 | 
			
		||||
			uni.getNetworkType({
 | 
			
		||||
			    success: function (res) {
 | 
			
		||||
			        console.log(res.networkType);
 | 
			
		||||
					if (res.networkType == 'none') {
 | 
			
		||||
						this.$refs.uToast.show({
 | 
			
		||||
							title: '网络似乎断开了,请检查网络后重试',
 | 
			
		||||
							type: 'error'
 | 
			
		||||
						});
 | 
			
		||||
					}
 | 
			
		||||
			    }
 | 
			
		||||
			});
 | 
			
		||||
			
 | 
			
		||||
			// 判断是否可以点击
 | 
			
		||||
            // console.log(this.zhanghao);
 | 
			
		||||
			if(this.clickstate==false){
 | 
			
		||||
				this.clickstate=true
 | 
			
		||||
			}else{
 | 
			
		||||
				this.$refs.uToast.show({
 | 
			
		||||
					title: "不能重复提交",
 | 
			
		||||
					type: 'error'
 | 
			
		||||
				});
 | 
			
		||||
				return
 | 
			
		||||
				// 此验证存在逻辑问题,会出现卡死在这里的情况
 | 
			
		||||
				// this.$refs.uToast.show({
 | 
			
		||||
				// 	title: "不能重复提交",
 | 
			
		||||
				// 	type: 'error'
 | 
			
		||||
				// });
 | 
			
		||||
				// return
 | 
			
		||||
			}
 | 
			
		||||
			// 清除本地存储才可以正常登陆(具体原因没有仔细检查)
 | 
			
		||||
			// uni.clearStorage();
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user