优化
This commit is contained in:
@@ -70,9 +70,7 @@
|
||||
if (options.invitation ) { data.invitation = options.invitation }
|
||||
|
||||
let res = await commonType(3)
|
||||
if (res.code == 0) {
|
||||
data.registerCode = res.data.value
|
||||
}
|
||||
data.registerCode = res.value
|
||||
})
|
||||
|
||||
/**
|
||||
@@ -96,8 +94,9 @@
|
||||
title: '正在发送验证码...'
|
||||
})
|
||||
let res = await setSendMsg(data.mobile,'login')
|
||||
console.log(res)
|
||||
if ( res.code == 0 ) {
|
||||
uni.hideLoading();
|
||||
uni.hideToast();
|
||||
if( res ){
|
||||
data.sending = true;
|
||||
uni.showToast({
|
||||
title: '验证码发送成功请注意查收',
|
||||
@@ -109,11 +108,10 @@
|
||||
uni.showModal({
|
||||
showCancel: false,
|
||||
title: '短信发送失败',
|
||||
content: res.msg ? res.msg : '请一分钟后再获取验证码'
|
||||
content: '请一分钟后再获取验证码'
|
||||
});
|
||||
}
|
||||
|
||||
uni.hideLoading();
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user