From eb9ae89c3e9f66fe5d0f39092a41e5c09bd86fc6 Mon Sep 17 00:00:00 2001
From: 付延余 <f-yanyu@outlook.com>
Date: 星期五, 24 三月 2023 13:40:02 +0800
Subject: [PATCH] 获取司机定位微信接口签到,货代首页列表详情

---
 pages/freight-forwarder-page/freightForwarder-index/freightForwarder-index.vue |   18 ++++++++++++------
 1 files changed, 12 insertions(+), 6 deletions(-)

diff --git a/pages/freight-forwarder-page/freightForwarder-index/freightForwarder-index.vue b/pages/freight-forwarder-page/freightForwarder-index/freightForwarder-index.vue
index 06b9046..eaec294 100644
--- a/pages/freight-forwarder-page/freightForwarder-index/freightForwarder-index.vue
+++ b/pages/freight-forwarder-page/freightForwarder-index/freightForwarder-index.vue
@@ -14,17 +14,17 @@
 					<view class="right-top">
 						<view class="card-right-top-row">
 							<view>
-								<text>杞彂鍓╀綑锛歿{ item.carNumSurplusHuodai||'' }}</text>
+								<text>杞彂鍓╀綑锛歿{ item.carNumSurplusHuodai || '' }}</text>
 							</view>
 							<view>
-								<text>{{ item.coalName||'' }}</text>
+								<text>{{ item.coalName || '' }}</text>
 							</view>
 						</view>
 					</view>
 				</template>
 				<template v-slot:right-bottom>
 					<view class="code">
-						<text>缂栧彿锛歿{ item.orderCode||'' }}</text>
+						<text>缂栧彿锛歿{ item.orderCode || '' }}</text>
 					</view>
 				</template>
 			</card>
@@ -57,14 +57,20 @@
 			});
 		},
 		cardBodyClick(id) {
+			let code = null;
+			this.orderPlanData.forEach(item => {
+				if (item.id == id) {
+					code = item.code;
+				}
+			});
 			uni.navigateTo({
-				url: `/pages/customer-page/customer-index/fayunPlanDetails/fayunPlanDetails?orderPlanId=${id}`
+				url: `/pages/customer-page/customer-index/fayunPlanDetails/fayunPlanDetails?orderPlanId=${id}&code=${code}`
 			});
 		},
 		// 杞彂
 		forwardClick(value) {
 			uni.navigateTo({
-				url: `/pages/public-page/forward/forward?orderPlanId=${value.id}&carNumSurplusHuodai=${value.carNumSurplusHuodai}`
+				url: `/pages/public-page/forward/forward?orderPlanId=${value.orderPlanId}&carNumSurplusHuodai=${value.carNumSurplusHuodai}`
 			});
 		}
 	}
@@ -81,7 +87,7 @@
 
 		// 鍗$墖鏍峰紡
 		.card-left__top {
-			margin-top:vww(26);
+			margin-top: vww(26);
 			text-align: center;
 			color: #ffffff;
 			text {

--
Gitblit v1.9.1