|
|
@@ -6,6 +6,7 @@ import { useRoute } from 'vue-router'
|
|
|
import { useOverflow } from '@/hooks/useOverflow'
|
|
|
import { useThemeStore } from '@/stores/modules/theme'
|
|
|
import { formatTimezone } from '@/utils/tools'
|
|
|
+import ShareLinkDialog from './ShareLinkDialog.vue'
|
|
|
|
|
|
const route = useRoute()
|
|
|
|
|
|
@@ -71,10 +72,21 @@ const originRef = ref()
|
|
|
const destinationRef = ref()
|
|
|
const { isOverflow: isOriginOverflow } = useOverflow(originRef, allData)
|
|
|
const { isOverflow: isDestinationOverflow } = useOverflow(destinationRef, allData)
|
|
|
+
|
|
|
+const dialogVModel = ref(false)
|
|
|
+const openShareDialog = () => {
|
|
|
+ dialogVModel.value = true
|
|
|
+}
|
|
|
</script>
|
|
|
|
|
|
<template>
|
|
|
<div class="tracking-detail">
|
|
|
+ <!-- 分享链接 -->
|
|
|
+ <div class="share-link" @click="openShareDialog">
|
|
|
+ <el-tooltip content="Share" :offset="4">
|
|
|
+ <span class="font_family icon-icon_share_b share-icon"></span>
|
|
|
+ </el-tooltip>
|
|
|
+ </div>
|
|
|
<div class="header" :class="{ 'is-dark': themeStore.theme === 'dark' }">
|
|
|
<div class="detail-status">
|
|
|
<span
|
|
|
@@ -82,8 +94,10 @@ const { isOverflow: isDestinationOverflow } = useOverflow(destinationRef, allDat
|
|
|
:class="[`icon-${transportationMode?.[allData?.transportInfo?.mode]}`]"
|
|
|
style="font-size: 64px"
|
|
|
></span>
|
|
|
- <div class="no">Tracking No. {{ allData.transportInfo['Tracking No.'] }}</div>
|
|
|
- <VTag large :type="allData.transportInfo?.status">{{ allData.transportInfo?.status }}</VTag>
|
|
|
+ <div class="no">Tracking No. {{ allData?.transportInfo['Tracking No.'] }}</div>
|
|
|
+ <VTag large :type="allData?.transportInfo?.status">{{
|
|
|
+ allData?.transportInfo?.status
|
|
|
+ }}</VTag>
|
|
|
</div>
|
|
|
<div class="detail-info">
|
|
|
<div class="item transport-way">
|
|
|
@@ -172,6 +186,7 @@ const { isOverflow: isDestinationOverflow } = useOverflow(destinationRef, allDat
|
|
|
</template>
|
|
|
</VBox>
|
|
|
</div>
|
|
|
+ <ShareLinkDialog v-model="dialogVModel"></ShareLinkDialog>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
@@ -184,6 +199,7 @@ const { isOverflow: isDestinationOverflow } = useOverflow(destinationRef, allDat
|
|
|
border-right: 1px solid var(--color-border);
|
|
|
}
|
|
|
.tracking-detail {
|
|
|
+ position: relative;
|
|
|
padding-bottom: 16px;
|
|
|
& > .header {
|
|
|
background: linear-gradient(
|
|
|
@@ -294,6 +310,26 @@ const { isOverflow: isDestinationOverflow } = useOverflow(destinationRef, allDat
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+ .share-link {
|
|
|
+ position: fixed;
|
|
|
+ bottom: 152px;
|
|
|
+ right: 0px;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: center;
|
|
|
+ width: 64px;
|
|
|
+ height: 64px;
|
|
|
+ z-index: 1500;
|
|
|
+ background-color: var(--management-bg-color);
|
|
|
+ box-shadow: -2px 2px 12px rgba(0, 0, 0, 0.15);
|
|
|
+ border-radius: 12px 0 0 12px;
|
|
|
+ &:hover {
|
|
|
+ background-color: var(--border-hover-color);
|
|
|
+ }
|
|
|
+ .share-icon {
|
|
|
+ font-size: 24px;
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
.info-content {
|