master
jevononlie 6 months ago
parent 76926ff651
commit d39b95e4e2

@ -20,19 +20,20 @@ const wxLogin = async () => {
//
const onGetphonenumber: UniHelper.ButtonOnGetphonenumber = async (ev) => {
await checkedAgreePrivacy()
const { encryptedData, iv } = ev.detail
if (encryptedData) {
const params = {
code,
encryptedData,
iv,
userType: 1, // 1 2
if (code) {
const { encryptedData, iv } = ev.detail
if (encryptedData) {
const params = {
code,
encryptedData,
iv,
userType: 1, // 1 2
}
const res = await postLoginWxMinAPI(params)
loginSuccess(res.data)
} else {
uni.showToast({ icon: 'none', title: '请授权手机号' })
}
const res = await postLoginWxMinAPI(params)
loginSuccess(res.data)
} else {
uni.showToast({ icon: 'none', title: '请授权手机号' })
}
}

Loading…
Cancel
Save