|
@@ -46,7 +46,7 @@ export function login(account: string, password: string) {
|
|
|
if (code === 0) {
|
|
|
message.success('登录成功')
|
|
|
setUserInfo(data)
|
|
|
- location.href = '/cooperationAccount/gzh'
|
|
|
+ router.navigate('/account/qw')
|
|
|
return true
|
|
|
}
|
|
|
|
|
@@ -73,16 +73,17 @@ export function sendCode(phone: string) {
|
|
|
}).catch(() => {})
|
|
|
}
|
|
|
|
|
|
-export function loginBySendCode(telNum: string, verifyCode: string) {
|
|
|
+export function loginBySendCode(telNum: string, verifyCode: string, companyName: string) {
|
|
|
return http.post(loginPhone, {
|
|
|
telNum,
|
|
|
- verifyCode
|
|
|
+ verifyCode,
|
|
|
+ companyName
|
|
|
}).then(res => {
|
|
|
const { code, msg, data } = res as { code: number, msg: string, data: UserInfo }
|
|
|
if (code === 0 && data) {
|
|
|
message.success('登录成功')
|
|
|
setUserInfo(data)
|
|
|
- router.navigate('/cooperationAccount/gzh')
|
|
|
+ router.navigate('/account/qw')
|
|
|
return true
|
|
|
}
|
|
|
|