master
jevononlie 6 months ago
parent 76926ff651
commit d39b95e4e2

@ -20,19 +20,20 @@ const wxLogin = async () => {
// //
const onGetphonenumber: UniHelper.ButtonOnGetphonenumber = async (ev) => { const onGetphonenumber: UniHelper.ButtonOnGetphonenumber = async (ev) => {
await checkedAgreePrivacy() await checkedAgreePrivacy()
if (code) {
const { encryptedData, iv } = ev.detail const { encryptedData, iv } = ev.detail
if (encryptedData) { if (encryptedData) {
const params = { const params = {
code, code,
encryptedData, encryptedData,
iv, iv,
userType: 1, // 1 2 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