Merge pull request '改为判断data' (#140) from xbx into master
Reviewed-on: http://git.luyuan.tk/luyuan/beelink/pulls/140
This commit is contained in:
commit
05194578c1
@ -608,22 +608,16 @@ export async function checkuser(data?: any){
|
||||
newdata.number=data.phone
|
||||
const res = await get<CheckuserRule>('checkUser',newdata);
|
||||
// console.log(res)
|
||||
if(res.code == 1){
|
||||
// if(res.code == 1){
|
||||
// return {
|
||||
// code: res.code,
|
||||
// msg: res.msg,
|
||||
// }
|
||||
// }
|
||||
return {
|
||||
code: res.code,
|
||||
msg: res.msg,
|
||||
}
|
||||
}
|
||||
return {
|
||||
code: res.code,
|
||||
msg: res.msg,
|
||||
data: {
|
||||
memberid: res.data.memberid,
|
||||
name: res.data.name,
|
||||
mobile: res.data.mobile,
|
||||
email: res.data.email,
|
||||
code: res.data.code
|
||||
}
|
||||
data: res.data
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -171,8 +171,8 @@ export default defineComponent({
|
||||
if(e==2){
|
||||
console.log(uinfo)
|
||||
const res: any = await checkuser(toRaw(uinfo.value))
|
||||
console.log(res.data.memberid)
|
||||
if(res.code==0){
|
||||
// console.log(res.data)
|
||||
if(res.data){
|
||||
// stepnow.value = e;
|
||||
uinfo.value.quhao = res.data.code.toString()
|
||||
uinfo.value.memberid=res.data.memberid
|
||||
|
@ -293,7 +293,7 @@ export default defineComponent({
|
||||
return;
|
||||
}
|
||||
const iszc = await checkuser({phone: phone.value.phone})
|
||||
if(iszc.code == 0){
|
||||
if(iszc.data){
|
||||
message.error(lan.$t('zhanghaocunzai'))
|
||||
return ;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user