|
|
@@ -28,9 +28,11 @@ export default {
|
|
|
uni.setStorageSync('account', option.account)
|
|
|
}
|
|
|
uni.setStorageSync('currentQuery', JSON.stringify(option))
|
|
|
+ console.log(isLogin())
|
|
|
if (isLogin() == false) {
|
|
|
wxLoginFn()
|
|
|
.then(res => {
|
|
|
+ console.log(123)
|
|
|
//花店员工和未知身份可以访问的地址
|
|
|
var urlArr = ['admin/shopAdmin/bind', 'admin/official'];
|
|
|
var redirectPage = res.redirectPage;
|
|
|
@@ -40,7 +42,6 @@ export default {
|
|
|
needRedirect = false;
|
|
|
}
|
|
|
})
|
|
|
-
|
|
|
if (needRedirect == true) {
|
|
|
//供货商员工
|
|
|
if (res.data.admin.identity == '2') {
|