|
@@ -45,7 +45,7 @@ async function handleSendCode() {
|
|
|
}, 1000)
|
|
}, 1000)
|
|
|
|
|
|
|
|
// TODO: 调用发送验证码接口
|
|
// TODO: 调用发送验证码接口
|
|
|
- await Apis.general.post_smqjh_auth_api_v1_auth_sms_code({ params: { mobile: phone.value } })
|
|
|
|
|
|
|
+ await Apis.general.post_smqjh_auth_api_v1_auth_sms_code({ params: { mobile: phone.value, tenantCode: 'zswl' } })
|
|
|
useGlobalToast().show('验证码已发送')
|
|
useGlobalToast().show('验证码已发送')
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -61,7 +61,7 @@ async function handleLogin() {
|
|
|
}
|
|
}
|
|
|
uni.showLoading({ mask: true })
|
|
uni.showLoading({ mask: true })
|
|
|
try {
|
|
try {
|
|
|
- const res = await Apis.general.post_smqjh_auth_oauth2_token({ params: { grant_type: 'sms_code', mobile: phone.value, code: code.value } })
|
|
|
|
|
|
|
+ const res = await Apis.general.post_smqjh_auth_oauth2_token({ params: { grant_type: 'sms_code', mobile: phone.value, code: code.value, tenantCode: 'zswl' } })
|
|
|
uni.hideLoading()
|
|
uni.hideLoading()
|
|
|
token.value = `Bearer ${res.data.access_token}`
|
|
token.value = `Bearer ${res.data.access_token}`
|
|
|
useGlobalToast().show('登录成功')
|
|
useGlobalToast().show('登录成功')
|