shish 4 miesięcy temu
rodzic
commit
74a473234e
1 zmienionych plików z 1 dodań i 11 usunięć
  1. 1 11
      hdApp/src/admin/home/workbench.vue

+ 1 - 11
hdApp/src/admin/home/workbench.vue

@@ -260,7 +260,6 @@
         urlNo:1,
         shortUrlList:[],
         unReadMsgNum:0, //未读消息数
-        currentDate: '', // 当前日期信息 如:12月26号 周五
         showBoughtTooltip: false, // 是否显示买花记录提示
       };
     },
@@ -283,7 +282,6 @@
       getWeixinId().then(res => {
         this.getappIdList = res.data
       })
-      this.updateCurrentDate()
     },
     onShow () {
         this.unReadMsgNum = 0; // 重置未读消息数
@@ -299,7 +297,7 @@
             this.showShopName()
         }
 
-      },
+    },
     onShareAppMessage(res) {
       return { title: "花掌柜,花店管家婆", desc: "", imageUrl: "", path: "admin/home/mall" }
     },
@@ -759,14 +757,6 @@
             this.unReadMsgNum = res.data.msg_count
           }
         })
-      },
-      updateCurrentDate(){
-        const now = new Date()
-        const month = now.getMonth() + 1
-        const date = now.getDate()
-        const weekDays = ['星期天', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六']
-        const week = weekDays[now.getDay()]
-        this.currentDate = `${month}-${date} ${week}`
       }
     }
   };