用户端修改

This commit is contained in:
linfeng 2022-12-06 14:16:34 +08:00
parent 7f504f0729
commit 57fbd87967
3 changed files with 5 additions and 20 deletions

View File

@ -60,12 +60,9 @@
} else {
if (this.$refs.uCode.canGetCode) {
//
uni.showLoading({
title: '正在获取验证码'
})
this.$H.post("user/sendSmsCode", {
mobile: this.form.mobile
}).then(res => {
@ -73,7 +70,6 @@
uni.hideLoading();
this.$refs.uCode.start();
this.$u.toast(res.msg);
}
})
} else {

View File

@ -40,12 +40,9 @@
title: '正在登陆'
});
var that = this;
// let userInfo = await this.getUserProfile();
let code = await this.getLoginCode();
that.$H.post('user/miniWxlogin', {
code: code,
// username: userInfo.nickName,
// avatar: userInfo.avatarUrl,
code: code
}).then(res => {
if (res.code === 0) {
@ -79,17 +76,7 @@
});
});
},
// getUserProfile() {
// return new Promise((resolve, reject) => {
// wx.getUserProfile({
// lang: 'zh_CN',
// desc: '',
// success: res => {
// resolve(res.userInfo);
// }
// });
// });
// }
}
}

View File

@ -50,7 +50,9 @@
};
},
onLoad(options) {
if(!uni.getStorageSync("hasLogin")){
this.$u.toast('请先登录哦');
}
},
methods: {
chooseClass() {