|
@@ -1,107 +1,108 @@
|
|
|
<script setup lang="ts">
|
|
<script setup lang="ts">
|
|
|
import NotificationMessageCard from '@/components/NotificationMessageCard/src/NotificationMessageCard.vue'
|
|
import NotificationMessageCard from '@/components/NotificationMessageCard/src/NotificationMessageCard.vue'
|
|
|
|
|
|
|
|
-const notificationList = [
|
|
|
|
|
- {
|
|
|
|
|
- notificationType: 'feature',
|
|
|
|
|
- info: {
|
|
|
|
|
- title: 'Feature Update',
|
|
|
|
|
- header: 'New feature online: Quick search has been released!',
|
|
|
|
|
- content:
|
|
|
|
|
- 'We are pleased to announce that the quick search function is now officially online! You can now quickly find what you need by entering keywords, greatly improving your work efficiency. Go and experience it!'
|
|
|
|
|
- }
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- notificationType: 'event',
|
|
|
|
|
- info: {
|
|
|
|
|
- type: 'milestone',
|
|
|
|
|
- isMultiple: true,
|
|
|
|
|
- numericRecords: 3,
|
|
|
|
|
- isRead: true,
|
|
|
|
|
- title: 'Milestone Update',
|
|
|
|
|
- mode: 'Ocean Freight',
|
|
|
|
|
- no: 'HBOL: SHJN2301234',
|
|
|
|
|
- tag: 'Booking Confirmed',
|
|
|
|
|
- location: 'Hong Kong',
|
|
|
|
|
- time: 'Jan 10, 2025 14:30 UTC+8'
|
|
|
|
|
- }
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- notificationType: 'password',
|
|
|
|
|
- info: {
|
|
|
|
|
- title: 'Password Notifications',
|
|
|
|
|
- isExpiration: true,
|
|
|
|
|
- tips: 'Password Expiration in 311 Days',
|
|
|
|
|
- content:
|
|
|
|
|
- 'Your password will expire in 7 days. To ensure the security of your account, please change your password as soon as possible.'
|
|
|
|
|
- }
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- notificationType: 'password',
|
|
|
|
|
- info: {
|
|
|
|
|
- title: 'Password Notifications',
|
|
|
|
|
- isExpiration: false,
|
|
|
|
|
- tips: 'Password Expiration in 3 Days',
|
|
|
|
|
- content:
|
|
|
|
|
- 'Your password will expire in 7 days. To ensure the security of your account, please change your password as soon as possible.'
|
|
|
|
|
- }
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- notificationType: 'password',
|
|
|
|
|
- info: {
|
|
|
|
|
- title: 'Password Notifications',
|
|
|
|
|
- isExpiration: true,
|
|
|
|
|
- tips: 'Password Expiration in 31111 Days',
|
|
|
|
|
- content:
|
|
|
|
|
- 'Your password will expire in 7 days. To ensure the security of your account, please change your password as soon as possible.'
|
|
|
|
|
- }
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- notificationType: 'event',
|
|
|
|
|
- info: {
|
|
|
|
|
- type: 'milestone',
|
|
|
|
|
- isMultiple: true,
|
|
|
|
|
- numericRecords: 3,
|
|
|
|
|
- isRead: true,
|
|
|
|
|
- title: 'Milestone Update 1',
|
|
|
|
|
- mode: 'Ocean Freight',
|
|
|
|
|
- no: 'HBOL: SHJN2301234',
|
|
|
|
|
- tag: 'Booking Confirmed',
|
|
|
|
|
- location: 'Hong Kong',
|
|
|
|
|
- time: 'Jan 10, 2025 14:30 UTC+8'
|
|
|
|
|
- }
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- notificationType: 'event',
|
|
|
|
|
- info: {
|
|
|
|
|
- type: 'milestone',
|
|
|
|
|
- isMultiple: true,
|
|
|
|
|
- numericRecords: 3,
|
|
|
|
|
- isRead: true,
|
|
|
|
|
- title: 'Milestone Update 2',
|
|
|
|
|
- mode: 'Ocean Freight',
|
|
|
|
|
- no: 'HBOL: SHJN2301234',
|
|
|
|
|
- tag: 'Booking Confirmed',
|
|
|
|
|
- location: 'Hong Kong',
|
|
|
|
|
- time: 'Jan 10, 2025 14:30 UTC+8'
|
|
|
|
|
- }
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- notificationType: 'event',
|
|
|
|
|
- info: {
|
|
|
|
|
- type: 'milestone',
|
|
|
|
|
- isMultiple: true,
|
|
|
|
|
- numericRecords: 3,
|
|
|
|
|
- isRead: true,
|
|
|
|
|
- title: 'Milestone Update 3',
|
|
|
|
|
- mode: 'Ocean Freight',
|
|
|
|
|
- no: 'HBOL: SHJN2301234',
|
|
|
|
|
- tag: 'Booking Confirmed',
|
|
|
|
|
- location: 'Hong Kong',
|
|
|
|
|
- time: 'Jan 10, 2025 14:30 UTC+8'
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
-]
|
|
|
|
|
|
|
+const notificationList = []
|
|
|
|
|
+// const notificationList = [
|
|
|
|
|
+// {
|
|
|
|
|
+// notificationType: 'feature',
|
|
|
|
|
+// info: {
|
|
|
|
|
+// title: 'Feature Update',
|
|
|
|
|
+// header: 'New feature online: Quick search has been released!',
|
|
|
|
|
+// content:
|
|
|
|
|
+// 'We are pleased to announce that the quick search function is now officially online! You can now quickly find what you need by entering keywords, greatly improving your work efficiency. Go and experience it!'
|
|
|
|
|
+// }
|
|
|
|
|
+// },
|
|
|
|
|
+// {
|
|
|
|
|
+// notificationType: 'event',
|
|
|
|
|
+// info: {
|
|
|
|
|
+// type: 'milestone',
|
|
|
|
|
+// isMultiple: true,
|
|
|
|
|
+// numericRecords: 3,
|
|
|
|
|
+// isRead: true,
|
|
|
|
|
+// title: 'Milestone Update',
|
|
|
|
|
+// mode: 'Ocean Freight',
|
|
|
|
|
+// no: 'HBOL: SHJN2301234',
|
|
|
|
|
+// tag: 'Booking Confirmed',
|
|
|
|
|
+// location: 'Hong Kong',
|
|
|
|
|
+// time: 'Jan 10, 2025 14:30 UTC+8'
|
|
|
|
|
+// }
|
|
|
|
|
+// },
|
|
|
|
|
+// {
|
|
|
|
|
+// notificationType: 'password',
|
|
|
|
|
+// info: {
|
|
|
|
|
+// title: 'Password Notifications',
|
|
|
|
|
+// isExpiration: true,
|
|
|
|
|
+// tips: 'Password Expiration in 311 Days',
|
|
|
|
|
+// content:
|
|
|
|
|
+// 'Your password will expire in 7 days. To ensure the security of your account, please change your password as soon as possible.'
|
|
|
|
|
+// }
|
|
|
|
|
+// },
|
|
|
|
|
+// {
|
|
|
|
|
+// notificationType: 'password',
|
|
|
|
|
+// info: {
|
|
|
|
|
+// title: 'Password Notifications',
|
|
|
|
|
+// isExpiration: false,
|
|
|
|
|
+// tips: 'Password Expiration in 3 Days',
|
|
|
|
|
+// content:
|
|
|
|
|
+// 'Your password will expire in 7 days. To ensure the security of your account, please change your password as soon as possible.'
|
|
|
|
|
+// }
|
|
|
|
|
+// },
|
|
|
|
|
+// {
|
|
|
|
|
+// notificationType: 'password',
|
|
|
|
|
+// info: {
|
|
|
|
|
+// title: 'Password Notifications',
|
|
|
|
|
+// isExpiration: true,
|
|
|
|
|
+// tips: 'Password Expiration in 31111 Days',
|
|
|
|
|
+// content:
|
|
|
|
|
+// 'Your password will expire in 7 days. To ensure the security of your account, please change your password as soon as possible.'
|
|
|
|
|
+// }
|
|
|
|
|
+// },
|
|
|
|
|
+// {
|
|
|
|
|
+// notificationType: 'event',
|
|
|
|
|
+// info: {
|
|
|
|
|
+// type: 'milestone',
|
|
|
|
|
+// isMultiple: true,
|
|
|
|
|
+// numericRecords: 3,
|
|
|
|
|
+// isRead: true,
|
|
|
|
|
+// title: 'Milestone Update 1',
|
|
|
|
|
+// mode: 'Ocean Freight',
|
|
|
|
|
+// no: 'HBOL: SHJN2301234',
|
|
|
|
|
+// tag: 'Booking Confirmed',
|
|
|
|
|
+// location: 'Hong Kong',
|
|
|
|
|
+// time: 'Jan 10, 2025 14:30 UTC+8'
|
|
|
|
|
+// }
|
|
|
|
|
+// },
|
|
|
|
|
+// {
|
|
|
|
|
+// notificationType: 'event',
|
|
|
|
|
+// info: {
|
|
|
|
|
+// type: 'milestone',
|
|
|
|
|
+// isMultiple: true,
|
|
|
|
|
+// numericRecords: 3,
|
|
|
|
|
+// isRead: true,
|
|
|
|
|
+// title: 'Milestone Update 2',
|
|
|
|
|
+// mode: 'Ocean Freight',
|
|
|
|
|
+// no: 'HBOL: SHJN2301234',
|
|
|
|
|
+// tag: 'Booking Confirmed',
|
|
|
|
|
+// location: 'Hong Kong',
|
|
|
|
|
+// time: 'Jan 10, 2025 14:30 UTC+8'
|
|
|
|
|
+// }
|
|
|
|
|
+// },
|
|
|
|
|
+// {
|
|
|
|
|
+// notificationType: 'event',
|
|
|
|
|
+// info: {
|
|
|
|
|
+// type: 'milestone',
|
|
|
|
|
+// isMultiple: true,
|
|
|
|
|
+// numericRecords: 3,
|
|
|
|
|
+// isRead: true,
|
|
|
|
|
+// title: 'Milestone Update 3',
|
|
|
|
|
+// mode: 'Ocean Freight',
|
|
|
|
|
+// no: 'HBOL: SHJN2301234',
|
|
|
|
|
+// tag: 'Booking Confirmed',
|
|
|
|
|
+// location: 'Hong Kong',
|
|
|
|
|
+// time: 'Jan 10, 2025 14:30 UTC+8'
|
|
|
|
|
+// }
|
|
|
|
|
+// }
|
|
|
|
|
+// ]
|
|
|
|
|
|
|
|
const curCard = ref(null)
|
|
const curCard = ref(null)
|
|
|
const curIndex = ref(-1)
|
|
const curIndex = ref(-1)
|
|
@@ -163,7 +164,7 @@ const closeMessage = () => {
|
|
|
position: absolute;
|
|
position: absolute;
|
|
|
top: 60px;
|
|
top: 60px;
|
|
|
right: 20px;
|
|
right: 20px;
|
|
|
- z-index: 2000;
|
|
|
|
|
|
|
+ z-index: 2010;
|
|
|
width: 432px;
|
|
width: 432px;
|
|
|
padding: 16px;
|
|
padding: 16px;
|
|
|
padding-bottom: 0;
|
|
padding-bottom: 0;
|