|
@@ -235,8 +235,9 @@
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
</uni-popup>
|
|
</uni-popup>
|
|
|
-
|
|
|
|
|
|
|
+ <NotLogin></NotLogin>
|
|
|
<custom-tab-bar :current="0" />
|
|
<custom-tab-bar :current="0" />
|
|
|
|
|
+
|
|
|
</view>
|
|
</view>
|
|
|
</template>
|
|
</template>
|
|
|
<script>
|
|
<script>
|
|
@@ -251,9 +252,11 @@
|
|
|
import {currentShop, uploadShopAvatar} from "@/api/shop";
|
|
import {currentShop, uploadShopAvatar} from "@/api/shop";
|
|
|
import { clearLogin,hasNotice } from "@/api/admin";
|
|
import { clearLogin,hasNotice } from "@/api/admin";
|
|
|
import { unReadMsgCount } from "@/api/chat";
|
|
import { unReadMsgCount } from "@/api/chat";
|
|
|
- import { APIHOST,CURRENT_ENV } from "@/config";
|
|
|
|
|
|
|
+ import { APIHOST } from "@/config";
|
|
|
|
|
+ import NotLogin from "@/components/not-login";
|
|
|
export default {
|
|
export default {
|
|
|
name: "workbench",
|
|
name: "workbench",
|
|
|
|
|
+ components: {NotLogin},
|
|
|
mixins: [autoUpdateMixins],
|
|
mixins: [autoUpdateMixins],
|
|
|
data () {
|
|
data () {
|
|
|
return {
|
|
return {
|
|
@@ -291,9 +294,7 @@
|
|
|
//只需要采购花材的花店不显示底部菜单
|
|
//只需要采购花材的花店不显示底部菜单
|
|
|
loginInfo(newVal) {
|
|
loginInfo(newVal) {
|
|
|
if(!this.$util.isEmpty(newVal.admin) && newVal.admin.currentShopId > 0){
|
|
if(!this.$util.isEmpty(newVal.admin) && newVal.admin.currentShopId > 0){
|
|
|
- if(!this.$util.isEmpty(newVal.onlyCg)){
|
|
|
|
|
- this.handleLoginStyle(newVal.onlyCg)
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ this.handleLoginStyle()
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
@@ -314,10 +315,7 @@
|
|
|
|
|
|
|
|
// 判断是否登录
|
|
// 判断是否登录
|
|
|
if(!this.$util.isEmpty(this.loginInfo.admin) && this.loginInfo.admin.currentShopId > 0){
|
|
if(!this.$util.isEmpty(this.loginInfo.admin) && this.loginInfo.admin.currentShopId > 0){
|
|
|
- if(!this.$util.isEmpty(this.loginInfo.onlyCg)){
|
|
|
|
|
- this.handleLoginStyle(this.loginInfo.onlyCg)
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
|
|
+ this.handleLoginStyle()
|
|
|
// this.getUnReadMsgCount()
|
|
// this.getUnReadMsgCount()
|
|
|
this.showShopName()
|
|
this.showShopName()
|
|
|
}
|
|
}
|
|
@@ -424,7 +422,7 @@
|
|
|
this.showShopName()
|
|
this.showShopName()
|
|
|
this.getUnReadMsgCount()
|
|
this.getUnReadMsgCount()
|
|
|
},
|
|
},
|
|
|
- handleLoginStyle(onlyCg){
|
|
|
|
|
|
|
+ handleLoginStyle(){
|
|
|
this.loginStyle = 1
|
|
this.loginStyle = 1
|
|
|
this.toRemindCustom()
|
|
this.toRemindCustom()
|
|
|
},
|
|
},
|