优化代码
parent
84880525fe
commit
760eaf080d
|
@ -160,12 +160,7 @@
|
||||||
phone: this.phoneNumber
|
phone: this.phoneNumber
|
||||||
})
|
})
|
||||||
.then(function(res) {
|
.then(function(res) {
|
||||||
if(res.data.data.registered == 0){
|
that.phoneLogin();
|
||||||
this.phoneLogin();
|
|
||||||
}else if(res.data.data.registered == 1){
|
|
||||||
that.openPhoneTips = true;
|
|
||||||
that.tipsMsg = '账号已存在,是否继续登录';
|
|
||||||
}
|
|
||||||
})
|
})
|
||||||
.catch(function(error) {
|
.catch(function(error) {
|
||||||
console.log(error);
|
console.log(error);
|
||||||
|
|
|
@ -30,6 +30,11 @@
|
||||||
<div v-show="show" @click="getCode()" class="getCode">获取验证码</div>
|
<div v-show="show" @click="getCode()" class="getCode">获取验证码</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<!-- 提示框 -->
|
||||||
|
<div class="addr-select-bg" v-show="isToast"></div>
|
||||||
|
<div class="toast" v-show="isToast">
|
||||||
|
<p>{{toastText}}</p>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
@ -56,6 +61,8 @@
|
||||||
count: "", //剩余时间
|
count: "", //剩余时间
|
||||||
timer: null,
|
timer: null,
|
||||||
userType: 0,
|
userType: 0,
|
||||||
|
isToast:false,
|
||||||
|
toastText:''
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
beforeCreate() {},
|
beforeCreate() {},
|
||||||
|
@ -111,7 +118,12 @@
|
||||||
that.$router.push('/index');
|
that.$router.push('/index');
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
window.alert(res.msg);
|
that.toastText = '验证码错误!';
|
||||||
|
that.sms_code = '';
|
||||||
|
that.isToast = true;
|
||||||
|
setTimeout(()=> {
|
||||||
|
that.isToast = false
|
||||||
|
}, 1000)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.catch(function(error) {
|
.catch(function(error) {
|
||||||
|
|
|
@ -132,7 +132,7 @@
|
||||||
this.axios.post(this.HOME + "/api/evaluation/evaluation-list", {
|
this.axios.post(this.HOME + "/api/evaluation/evaluation-list", {
|
||||||
page: "1",
|
page: "1",
|
||||||
size: "100",
|
size: "100",
|
||||||
status: ""
|
status: "done"
|
||||||
}).then(function(res) {
|
}).then(function(res) {
|
||||||
that.reportData = res.data.data.list;
|
that.reportData = res.data.data.list;
|
||||||
console.log(that.reportData,555)
|
console.log(that.reportData,555)
|
||||||
|
|
Loading…
Reference in New Issue