This commit is contained in:
Gdpao
2020-08-07 19:56:47 +08:00
parent 71e984b2ed
commit 502e020000
17 changed files with 238 additions and 136 deletions

View File

@@ -101,7 +101,7 @@
},
onLoad() {
// 数据的请求
this.apiwelcome();
// this.apiwelcome();
},
onShow() {
let pages = getCurrentPages();
@@ -123,7 +123,9 @@
...mapMutations(['loginIn']),
apiwelcome() {
this.$u.api.sendSmsCode({}).then((res) => {
console.log(res)
if (res.errCode == 0) {
console.log(res)
}
})
},
// 协议跳转
@@ -148,21 +150,18 @@
if (this.member_mobile == '') {
this.$refs.uToast.show({
title: '手机号不能为空',
type: 'error'
})
return false;
}
if (type_phone == false) {
this.$refs.uToast.show({
title: '手机号格式不正确',
type: 'error'
});
return false;
}
if (this.sms_code == '') {
this.$refs.uToast.show({
title: '验证码不能为空',
type: 'error'
})
return false;
}
@@ -176,7 +175,6 @@
if (res.data == '') {
this.$refs.uToast.show({
title: res.message,
type: 'error'
})
return false
} else {
@@ -205,7 +203,6 @@
} else {
this.$refs.uToast.show({
title: res.message,
type: 'error'
})
}
})