|
@@ -94,15 +94,16 @@
|
|
|
})
|
|
|
_this.$request.baseRequest('get', '/commonUser/sendVerifyCode', {
|
|
|
phone: this.registerData.phone,
|
|
|
- identification:2,flag:2
|
|
|
+ identification: 2,
|
|
|
+ flag: 2
|
|
|
}).then(res => {
|
|
|
- if(res.code==200){
|
|
|
+ if (res.code == 200) {
|
|
|
uni.hideLoading();
|
|
|
// 这里此提示会被this.start()方法中的提示覆盖
|
|
|
uni.$u.toast('验证码已发送');
|
|
|
// 通知验证码组件内部开始倒计时
|
|
|
this.$refs.uCode.start();
|
|
|
- }else{
|
|
|
+ } else {
|
|
|
uni.showToast({
|
|
|
title: res.message,
|
|
|
icon: 'none',
|
|
@@ -146,8 +147,7 @@
|
|
|
// 获得数据
|
|
|
if (res.code == 200) {
|
|
|
uni.clearStorageSync();
|
|
|
- this.$request.baseRequest('post', '/auth/api/logout').then(res => {
|
|
|
- })
|
|
|
+ this.$request.baseRequest('post', '/auth/api/logout').then(res => {})
|
|
|
this.$store.commit('logout')
|
|
|
// this.$api.logout()
|
|
|
uni.showToast({
|
|
@@ -185,6 +185,7 @@
|
|
|
height: 100vh;
|
|
|
padding-top: 85px;
|
|
|
position: relative;
|
|
|
+ box-sizing: border-box;
|
|
|
}
|
|
|
|
|
|
.back-btn {
|