shish 11 месяцев назад
Родитель
Сommit
3de4e61716
2 измененных файлов с 2 добавлено и 16 удалено
  1. 1 15
      hdApp/src/admin/home/workbench.vue
  2. 1 1
      hdApp/src/admin/member/detail.vue

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

@@ -12,7 +12,6 @@
         <view class="today-overview-card">
           <view class="today-header">
             <view class="today-title">今日概况</view>
-            <view class="today-date">{{ todayDate }}</view>
           </view>
           
           <view class="today-income-section" @click="pageTo({url:'/admin/stat/kdIncome'})">
@@ -446,15 +445,7 @@ export default {
     };
   },
   computed: {
-    ...mapGetters({ loginInfo: "getLoginInfo",dictInfo:"getDictionariesInfo",myShopInfo:"getMyShopInfo" }),
-    todayDate() {
-      const date = new Date()
-      const month = date.getMonth() + 1
-      const day = date.getDate()
-      const weekdays = ['周日', '周一', '周二', '周三', '周四', '周五', '周六']
-      const weekday = weekdays[date.getDay()]
-      return `${month}月${day}日 ${weekday}`
-    }
+    ...mapGetters({ loginInfo: "getLoginInfo",dictInfo:"getDictionariesInfo",myShopInfo:"getMyShopInfo" })
   },
 	watch: {
 		//只需要采购花材的花店不显示底部菜单
@@ -848,11 +839,6 @@ export default {
       font-weight: 600;
       color: #ffffff;
     }
-    
-    .today-date {
-      font-size: 26upx;
-      color: rgba(255, 255, 255, 0.9);
-    }
   }
   
   .today-income-section {

+ 1 - 1
hdApp/src/admin/member/detail.vue

@@ -412,7 +412,7 @@
                <div class="month-buttons">
                  <button 
                    v-for="(month, index) in [1,2,3,4,5,6,7,8,9,10,11,12]" 
-                   :key="'month-'+month" 
+                   :key="index" 
                    class="month-button" 
                    :class="{ active: birthdayMonth == month }"
                    @click="birthdayMonth = month"