|
|
@@ -4,10 +4,13 @@ import MilestonesTable from './MilestonesTable.vue'
|
|
|
import { transportationMode } from '@/components/TransportationMode'
|
|
|
import { useRoute } from 'vue-router'
|
|
|
import { useOverflow } from '@/hooks/useOverflow'
|
|
|
+import { useThemeStore } from '@/stores/modules/theme'
|
|
|
import { formatTimezone } from '@/utils/tools'
|
|
|
|
|
|
const route = useRoute()
|
|
|
|
|
|
+const themeStore = useThemeStore()
|
|
|
+
|
|
|
const allData: any = ref({
|
|
|
transportInfo: {
|
|
|
'Tracking No.': '',
|
|
|
@@ -72,7 +75,7 @@ const { isOverflow: isDestinationOverflow } = useOverflow(destinationRef, allDat
|
|
|
|
|
|
<template>
|
|
|
<div class="tracking-detail">
|
|
|
- <div class="header">
|
|
|
+ <div class="header" :class="{ 'is-dark': themeStore.theme === 'dark' }">
|
|
|
<div class="detail-status">
|
|
|
<span
|
|
|
class="font_family"
|
|
|
@@ -191,6 +194,16 @@ const { isOverflow: isDestinationOverflow } = useOverflow(destinationRef, allDat
|
|
|
rgba(224, 247, 249, 0.6) 80.46%,
|
|
|
rgba(255, 255, 255, 0.3)
|
|
|
);
|
|
|
+ &.is-dark {
|
|
|
+ background: linear-gradient(
|
|
|
+ 270deg,
|
|
|
+ rgba(43, 47, 54, 0.1) 1.88%,
|
|
|
+ rgba(255, 182, 121, 0.1) 15.6%,
|
|
|
+ rgba(118, 145, 255, 0.1) 49.92%,
|
|
|
+ rgba(96, 242, 255, 0.1) 81.78%,
|
|
|
+ rgba(43, 47, 54, 0.1) 97.95%
|
|
|
+ );
|
|
|
+ }
|
|
|
|
|
|
.detail-status {
|
|
|
position: relative;
|