shish 4 months ago
parent
commit
0e2846aefb
1 changed files with 10 additions and 9 deletions
  1. 10 9
      hdApp/src/admin/home/workbench.vue

+ 10 - 9
hdApp/src/admin/home/workbench.vue

@@ -260,9 +260,9 @@
         urlNo:1,
         shortUrlList:[],
         unReadMsgNum:0, //未读消息数
-      currentDate: '', // 当前日期信息 如:12月26号 周五
-      showBoughtTooltip: false, // 是否显示买花记录提示
-    };
+        currentDate: '', // 当前日期信息 如:12月26号 周五
+        showBoughtTooltip: false, // 是否显示买花记录提示
+      };
     },
     computed: {
       ...mapGetters({ loginInfo: "getLoginInfo",dictInfo:"getDictionariesInfo",myShopInfo:"getMyShopInfo" })
@@ -285,20 +285,21 @@
       })
       this.updateCurrentDate()
     },
-  onShow () {
-      this.unReadMsgNum = 0; // 重置未读消息数
+    onShow () {
+        this.unReadMsgNum = 0; // 重置未读消息数
+        
+        this.showBoughtTooltip = !uni.getStorageSync('boughtTooltipClosed');
       
-      this.showBoughtTooltip = !uni.getStorageSync('boughtTooltipClosed');
+        this.init();
     
-      this.init();
-  
         // 判断是否登录
         if(!this.$util.isEmpty(this.loginInfo.admin) && this.loginInfo.admin.currentShopId > 0){
             this.handleLoginStyle()  
             // this.getUnReadMsgCount()
             this.showShopName()
         }
-    },
+
+      },
     onShareAppMessage(res) {
       return { title: "花掌柜,花店管家婆", desc: "", imageUrl: "", path: "admin/home/mall" }
     },