qxf #113

Merged
qxf merged 13 commits from qxf into master 2020-11-27 03:41:51 +00:00
Showing only changes of commit 99ab0696ba - Show all commits

View File

@@ -79,7 +79,7 @@ export default {
phone: "", phone: "",
code: "", code: "",
state:0, state:0,
clickstate:false, // clickstate:false,
// 时间 // 时间
timer: null, timer: null,
is_sendcode: false, // 60s is_sendcode: false, // 60s
@@ -138,37 +138,33 @@ export default {
// console.log(this.$u.trim(this.zhanghaoA)); // console.log(this.$u.trim(this.zhanghaoA));
}, },
logins() { logins() {
// 检查网络 // 检查网络
uni.getNetworkType({ uni.getNetworkType({
success: function (res) { success: (res) => {
console.log(res.networkType); console.log(res.networkType);
if (res.networkType == 'none') { if (res.networkType == 'none') {
this.$refs.uToast.show({ this.$refs.uToast.show({
title: '网络似乎断开了,请检查网络后重试', title: '网络似乎断开了,请检查网络后重试',
type: 'error' type: 'error'
}); });
} }
}, },
fail: function () {
this.$refs.uToast.show({
title: '网络似乎断开了,请检查网络后重试!',
type: 'error'
});
}
}); });
// 判断是否可以点击 // 判断是否可以点击
// console.log(this.zhanghao); // console.log(this.zhanghao);
if(this.clickstate==false){ // if(this.clickstate==false){
this.clickstate=true // this.clickstate=true
}else{ // }else{
// 此验证存在逻辑问题,会出现卡死在这里的情况 // 此验证存在逻辑问题,会出现卡死在这里的情况
// this.$refs.uToast.show({ // this.$refs.uToast.show({
// title: "不能重复提交", // title: "不能重复提交",
// type: 'error' // type: 'error'
// }); // });
// return // return
} // }
// 清除本地存储才可以正常登陆(具体原因没有仔细检查) // 清除本地存储才可以正常登陆(具体原因没有仔细检查)
// uni.clearStorage(); // uni.clearStorage();
// 账号登录1达人0商家 // 账号登录1达人0商家
@@ -177,7 +173,7 @@ export default {
console.log(JSON.stringify(res)) console.log(JSON.stringify(res))
if (res.errCode != 0) { if (res.errCode != 0) {
// 恢复按钮可点击状态 // 恢复按钮可点击状态
this.clickstate=false // this.clickstate=false
this.$refs.uToast.show({ this.$refs.uToast.show({
title: res.message, title: res.message,
type: 'error' type: 'error'
@@ -228,7 +224,7 @@ export default {
console.log(JSON.stringify(res)) console.log(JSON.stringify(res))
if (res.errCode != 0) { if (res.errCode != 0) {
// 恢复按钮可点击状态 // 恢复按钮可点击状态
this.clickstate=false // this.clickstate=false
this.$refs.uToast.show({ this.$refs.uToast.show({
title: res.message, title: res.message,
type: 'error' type: 'error'