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