调整登录逻辑

This commit is contained in:
2024-03-27 17:37:11 +08:00
parent 61bcbf6f69
commit 049782f96b
18 changed files with 113 additions and 30 deletions

View File

@@ -19,8 +19,12 @@ Page({
* 生命周期函数--监听页面加载
*/
onLoad(options) {
console.log('options', options)
const querys = decodeURIComponent(options.scene)
const { id } = querys;
console.log('querys', querys)
// const { id } = querys;
const id = querys.slice(querys.indexOf("=") + 1)
console.log('id', id)
// this.setData({ id, name })
this.getInfo(id);
},
@@ -67,6 +71,11 @@ Page({
})
},
getPhoneNumber(e) {
const { nickName } = this.data;
if (!nickName) {
alertInfo("请填写你的名字")
return;
}
const { errno, code: phoneCode } = e.detail;
switch(errno) {
case 103: