From ba987283dcd716639fc71ef88d9502626235a625 Mon Sep 17 00:00:00 2001 From: wushumin Date: Sun, 17 May 2026 00:39:56 +0800 Subject: [PATCH] fix: make work app video attachments playable --- work-app/src/pages/order/detail.vue | 38 +++++++------ work-app/src/pages/return-shipping/index.vue | 38 +++++++------ work-app/src/pages/scan/index.vue | 38 +++++++------ work-app/src/pages/task/detail.vue | 58 ++++++++++---------- 4 files changed, 95 insertions(+), 77 deletions(-) diff --git a/work-app/src/pages/order/detail.vue b/work-app/src/pages/order/detail.vue index 3cbcd7b..6f66afc 100644 --- a/work-app/src/pages/order/detail.vue +++ b/work-app/src/pages/order/detail.vue @@ -193,18 +193,14 @@ onShow(() => { - {{ item.name || item.file_id }} @@ -257,7 +253,7 @@ onShow(() => { {{ activeInboundVideo.name || "入库视频" }} 关闭 - @@ -347,16 +343,26 @@ onShow(() => { height: 100%; } -.attachment-video-thumb { - background: #202124; -} - +.attachment-video-thumb, .attachment-file-thumb { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; +} + +.attachment-video-thumb { + background: linear-gradient(135deg, #f8fafc 0%, #e8edf3 100%); + color: var(--work-text); +} + +.attachment-video-label { + font-size: 24rpx; + font-weight: 900; +} + +.attachment-file-thumb { color: var(--work-text-soft); font-size: 24rpx; font-weight: 800; diff --git a/work-app/src/pages/return-shipping/index.vue b/work-app/src/pages/return-shipping/index.vue index 3c84a5d..c0b6c07 100644 --- a/work-app/src/pages/return-shipping/index.vue +++ b/work-app/src/pages/return-shipping/index.vue @@ -248,18 +248,14 @@ onLoad((options) => { - {{ item.name || item.file_id }} @@ -290,7 +286,7 @@ onLoad((options) => { {{ activeVideo.name || "装箱视频" }} 关闭 - @@ -348,16 +344,26 @@ onLoad((options) => { display: block; } -.attachment-video-thumb { - background: #202124; -} - +.attachment-video-thumb, .attachment-file-thumb { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; +} + +.attachment-video-thumb { + background: linear-gradient(135deg, #f8fafc 0%, #e8edf3 100%); + color: var(--work-text); +} + +.attachment-video-label { + font-size: 24rpx; + font-weight: 900; +} + +.attachment-file-thumb { color: var(--work-text-soft); font-size: 24rpx; font-weight: 800; diff --git a/work-app/src/pages/scan/index.vue b/work-app/src/pages/scan/index.vue index c11bfaf..70cb07c 100644 --- a/work-app/src/pages/scan/index.vue +++ b/work-app/src/pages/scan/index.vue @@ -476,18 +476,14 @@ onUnload(() => { - {{ item.name || item.file_id }} @@ -568,7 +564,7 @@ onUnload(() => { {{ activeInboundVideo.name || "拆包视频" }} 关闭 - @@ -621,16 +617,26 @@ onUnload(() => { display: block; } -.attachment-video-thumb { - background: #202124; -} - +.attachment-video-thumb, .attachment-file-thumb { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; +} + +.attachment-video-thumb { + background: linear-gradient(135deg, #f8fafc 0%, #e8edf3 100%); + color: var(--work-text); +} + +.attachment-video-label { + font-size: 24rpx; + font-weight: 900; +} + +.attachment-file-thumb { color: var(--work-text-soft); font-size: 24rpx; font-weight: 800; diff --git a/work-app/src/pages/task/detail.vue b/work-app/src/pages/task/detail.vue index 15f3313..bf75c41 100644 --- a/work-app/src/pages/task/detail.vue +++ b/work-app/src/pages/task/detail.vue @@ -704,19 +704,14 @@ onShow(() => { - {{ item.name || item.file_id }} @@ -774,19 +769,14 @@ onShow(() => { - {{ item.name || item.file_id }} @@ -820,7 +810,7 @@ onShow(() => { {{ activePreviewVideo.name || "附件视频" }} 关闭 - @@ -914,16 +904,26 @@ onShow(() => { height: 100%; } -.attachment-video-thumb { - background: #202124; -} - +.attachment-video-thumb, .attachment-file-thumb { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; +} + +.attachment-video-thumb { + background: linear-gradient(135deg, #f8fafc 0%, #e8edf3 100%); + color: var(--work-text); +} + +.attachment-video-label { + font-size: 24rpx; + font-weight: 900; +} + +.attachment-file-thumb { color: var(--work-text-soft); font-size: 24rpx; font-weight: 800;