From 7298d5354963a88643a543b51b90192dc9fc934c Mon Sep 17 00:00:00 2001
From: doum <doum>
Date: 星期四, 11 九月 2025 18:43:14 +0800
Subject: [PATCH] 最新版本541200007

---
 h5/pages/driver/taskDetail.vue |   29 ++++++++++++++++-------------
 1 files changed, 16 insertions(+), 13 deletions(-)

diff --git a/h5/pages/driver/taskDetail.vue b/h5/pages/driver/taskDetail.vue
index 7484ad8..1fec4d2 100644
--- a/h5/pages/driver/taskDetail.vue
+++ b/h5/pages/driver/taskDetail.vue
@@ -41,11 +41,11 @@
 			</template>
 			<template v-else>
 				<view class="line">
-					<view class="label">鍚堝悓缂栧彿</view>
+					<view class="label">鍚堝悓/鍗曟嵁缂栧彿</view>
 					<view class="value">{{param.contractNum}}</view>
 				</view>
 				<view class="line">
-					<view class="label">鍏ュ簱绫诲瀷</view>
+					<view class="label">浣滀笟绫诲瀷</view>
 					<view class="value">{{param.inType == 0 ? '鏁存墭鐩�' : '浠剁儫'}}</view>
 				</view>
 				<view class="line">
@@ -98,11 +98,11 @@
 			</view> -->
 			<view v-if="param.status == 1" class="signIn_wrap" @click="handleSignIn">
 				<image :src="
-            param.getDistance < signDistance
+            (param.getDistance || param.getDistance == 0) && param.getDistance < signDistance
               ? require('@/static/driver/btn_qiandao@2x.png')
               : require('@/static/driver/btn_qiandao_fail@2x.png')
           " class="img" mode="widthFix"></image>
-				<view class="handle">{{ param.getDistance > signDistance ? '鏃犳硶绛惧埌' : '绛惧埌' }}</view>
+				<view class="handle">{{ !param.getDistance || param.getDistance > signDistance ? '鏃犳硶绛惧埌' : '绛惧埌' }}</view>
 				<view class="time">{{nowTime}}</view>
 			</view>
 		</view>
@@ -182,10 +182,10 @@
 					status: '0'
 				},
 				jobId: '',
-				// lat: '',
-				// lnt: '',
-				lat: '31.783205',
-				lnt: '117.262635',
+				lat: '',
+				lnt: '',
+				// lat: '31.783205',
+				// lnt: '117.262635',
 				nowTime: '',
 				wmsInfo: {},
 				signDistance: uni.getStorageSync('driverGuide').signDistance,
@@ -226,15 +226,17 @@
 					lnt,
 					jobId
 				} = this
-				if (param.getDistance > signDistance) return
+				if (!param.getDistance || param.getDistance > signDistance) return
 				driverSignInTask({
 					jobId,
 					lat,
 					lnt,
 					signType: 0
-				}).then(res => {
-					this.showToast('绛惧埌鎴愬姛')
-					this.getDetail()
+				}).then(res => {
+					if (res && res.code == 200) {
+						this.showToast('绛惧埌鎴愬姛')
+						this.getDetail()
+					}
 				})
 			},
 			getDetail() {
@@ -292,7 +294,8 @@
 						console.log('---', res);
 						this.getDetail()
 					},
-					fail: (err) => {
+					fail: (err) => {
+						this.getDetail()
 						this.showToast('鑾峰彇瀹氫綅澶辫触', err)
 					}
 				})

--
Gitblit v1.9.3