liangan 2 هفته پیش
والد
کامیت
fd7926166a
4فایلهای تغییر یافته به همراه10 افزوده شده و 8 حذف شده
  1. 1 1
      src/locale/bn.json
  2. 1 1
      src/locale/zh-Hans.json
  3. 4 0
      src/pages/index/index.vue
  4. 4 6
      src/pages/notifications/notifications.vue

+ 1 - 1
src/locale/bn.json

@@ -269,7 +269,7 @@
   "notifications.tabs.orders": "অর্ডার",
   "notifications.tabs.revenue": "রাজস্ব",
   "notifications.tabs.account": "অ্যাকাউন্ট",
-  "notifications.tabs.promos": "Promos",
+  "notifications.tabs.promos": "প্রচার",
   "notifications.time.sunday": "রবি",
   "notifications.time.monday": "সোম",
   "notifications.time.tuesday": "মঙ্গল",

+ 1 - 1
src/locale/zh-Hans.json

@@ -269,7 +269,7 @@
   "notifications.tabs.orders": "订单",
   "notifications.tabs.revenue": "收益",
   "notifications.tabs.account": "账户",
-  "notifications.tabs.promos": "Promos",
+  "notifications.tabs.promos": "促销",
   "notifications.time.sunday": "周日",
   "notifications.time.monday": "周一",
   "notifications.time.tuesday": "周二",

+ 4 - 0
src/pages/index/index.vue

@@ -185,6 +185,10 @@ async function getUnread() {
 onLoad(async () => {
   await loadData()
 })
+
+onShow(() => {
+  getUnread()
+})
 </script>
 
 <template>

+ 4 - 6
src/pages/notifications/notifications.vue

@@ -315,20 +315,19 @@ async function clearAllNotifications() {
             <view class="flex items-center">
               <image
                 :src="getNoticeIcon(item.noticeType)" class="h-36rpx w-36rpx"
-                :class="{ 'opacity-60': item.readFlag }"
               />
-              <text class="ml-8rpx text-24rpx font-bold" :class="item.readFlag ? 'text-#999999' : 'text-#333333'">
+              <text class="ml-8rpx text-24rpx font-bold">
                 {{ getNoticeTitle(item) }}
               </text>
             </view>
             <view class="flex items-center">
-              <text class="text-22rpx" :class="item.readFlag ? 'text-#CCCCCC' : 'text-#3A444C'">
+              <text class="text-22rpx">
                 {{ formatNoticeTime(item.createTime) }}
               </text>
             </view>
           </view>
           <view class="flex items-center justify-between text-22rpx">
-            <view class="line-clamp-2 flex-1 break-all" :class="item.readFlag ? 'text-#BBBBBB' : 'text-#3A444C'">
+            <view class="line-clamp-2 flex-1 break-all">
               {{ getNoticeContent(item) }}
             </view>
             <view v-if="!item.readFlag" class="ml-8rpx h-12rpx w-12rpx flex-shrink-0 rounded-full bg-#FF0000" />
@@ -361,7 +360,6 @@ async function clearAllNotifications() {
 
 // 已读通知样式
 .notification-read {
-  background-color: #fafafa !important;
-  opacity: 0.95;
+  opacity: 0.8;
 }
 </style>