更新
This commit is contained in:
parent
b69588d115
commit
4f08f9be50
@ -195,10 +195,17 @@
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
if(res.code == 200){
|
if(res.code == 200){
|
||||||
uni.setStorageSync('userinfo',res.user)
|
if (res.data.shop == true) {
|
||||||
uni.setStorageSync('roleSelect','shop')
|
uni.setStorageSync('userinfo',res.user)
|
||||||
uni.hideLoading();
|
uni.setStorageSync('roleSelect','shop')
|
||||||
this.goselect()
|
uni.hideLoading();
|
||||||
|
this.goselect()
|
||||||
|
}else {
|
||||||
|
uni.showToast({
|
||||||
|
title: '您不是商户,请选择员工登录',
|
||||||
|
icon: 'none'
|
||||||
|
})
|
||||||
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user