From d294abb765e4ed349907c92ce313689c6299ba7d Mon Sep 17 00:00:00 2001
From: wlzboy <66905212@qq.com>
Date: 星期二, 02 十二月 2025 00:17:00 +0800
Subject: [PATCH] feat:地图都改为天地图的接口
---
app/pagesTask/detail.vue | 32 ++++++++++++++++++++++++++------
1 files changed, 26 insertions(+), 6 deletions(-)
diff --git a/app/pagesTask/detail.vue b/app/pagesTask/detail.vue
index 781b0d4..214bb7b 100644
--- a/app/pagesTask/detail.vue
+++ b/app/pagesTask/detail.vue
@@ -37,10 +37,10 @@
<view class="detail-section">
<view class="section-title">鏃堕棿淇℃伅</view>
<view class="info-item">
- <view class="label">璁″垝寮�濮嬫椂闂�</view>
+ <view class="label">棰勭害鏃堕棿</view>
<view class="value">{{ displayPlannedStartTime }}</view>
</view>
- <view class="info-item">
+ <view class="info-item" v-if="taskDetail.plannedEndTime">
<view class="label">璁″垝缁撴潫鏃堕棿</view>
<view class="value">{{ displayPlannedEndTime }}</view>
</view>
@@ -466,28 +466,48 @@
if (!this.taskDetail || !this.taskDetail.plannedStartTime) {
return '鏈缃�'
}
- return formatDateTime(this.taskDetail.plannedStartTime, 'YYYY-MM-DD HH:mm')
+ const formatted = formatDateTime(this.taskDetail.plannedStartTime, 'YYYY-MM-DD HH:mm')
+ // 濡傛灉骞翠唤鏄�1900,琛ㄧず鏃犳晥鏃ユ湡,鏄剧ず涓烘湭璁剧疆
+ if (formatted && formatted.startsWith('1900')) {
+ return '鏈缃�'
+ }
+ return formatted
},
// 鏄剧ず璁″垝缁撴潫鏃堕棿
displayPlannedEndTime() {
if (!this.taskDetail || !this.taskDetail.plannedEndTime) {
return '鏈缃�'
}
- return formatDateTime(this.taskDetail.plannedEndTime, 'YYYY-MM-DD HH:mm')
+ const formatted = formatDateTime(this.taskDetail.plannedEndTime, 'YYYY-MM-DD HH:mm')
+ // 濡傛灉骞翠唤鏄�1900,琛ㄧず鏃犳晥鏃ユ湡,鏄剧ず涓烘湭璁剧疆
+ if (formatted && formatted.startsWith('1900')) {
+ return '鏈缃�'
+ }
+ return formatted
},
// 鏄剧ず瀹為檯寮�濮嬫椂闂�
displayActualStartTime() {
if (!this.taskDetail || !this.taskDetail.actualStartTime) {
return '鏈缃�'
}
- return formatDateTime(this.taskDetail.actualStartTime, 'YYYY-MM-DD HH:mm')
+ const formatted = formatDateTime(this.taskDetail.actualStartTime, 'YYYY-MM-DD HH:mm')
+ // 濡傛灉骞翠唤鏄�1900,琛ㄧず鏃犳晥鏃ユ湡,鏄剧ず涓烘湭璁剧疆
+ if (formatted && formatted.startsWith('1900')) {
+ return '鏈缃�'
+ }
+ return formatted
},
// 鏄剧ず瀹為檯缁撴潫鏃堕棿
displayActualEndTime() {
if (!this.taskDetail || !this.taskDetail.actualEndTime) {
return '鏈缃�'
}
- return formatDateTime(this.taskDetail.actualEndTime, 'YYYY-MM-DD HH:mm')
+ const formatted = formatDateTime(this.taskDetail.actualEndTime, 'YYYY-MM-DD HH:mm')
+ // 濡傛灉骞翠唤鏄�1900,琛ㄧず鏃犳晥鏃ユ湡,鏄剧ず涓烘湭璁剧疆
+ if (formatted && formatted.startsWith('1900')) {
+ return '鏈缃�'
+ }
+ return formatted
}
},
onLoad(options) {
--
Gitblit v1.9.1