From 6087ba7d24f2353c2d01a5e5a384d5a20f97a19b Mon Sep 17 00:00:00 2001
From: qingyiay <2386314947@qq.com>
Date: 星期一, 15 五月 2023 08:10:53 +0800
Subject: [PATCH] 增加路线规划,样式修改

---
 pages/customer-page/customer-index/fayunPlanDetails/fayunPlanMore/fayunPlanMore.vue |   87 +++++++++++++++++++++++++++----------------
 1 files changed, 55 insertions(+), 32 deletions(-)

diff --git a/pages/customer-page/customer-index/fayunPlanDetails/fayunPlanMore/fayunPlanMore.vue b/pages/customer-page/customer-index/fayunPlanDetails/fayunPlanMore/fayunPlanMore.vue
index 6600f2f..bd64aac 100644
--- a/pages/customer-page/customer-index/fayunPlanDetails/fayunPlanMore/fayunPlanMore.vue
+++ b/pages/customer-page/customer-index/fayunPlanDetails/fayunPlanMore/fayunPlanMore.vue
@@ -23,25 +23,25 @@
 				<view class="body-container">
 					<view class="container-block">
 						<view class="">鐨噸</view>
-						<view class="">{{ yyDailyList.skin || '' }}</view>
+						<view class="">{{ yyDailyList.skin || 0 }}</view>
 					</view>
 				</view>
 				<view class="body-container">
 					<view class="container-block">
 						<view class="">姣涢噸</view>
-						<view class="">{{ yyDailyList.hair || '' }}</view>
+						<view class="">{{ yyDailyList.hair || 0 }}</view>
 					</view>
 				</view>
 				<view class="body-container">
 					<view class="container-block">
 						<view class="">鍑�閲�</view>
-						<view class="">{{ yyDailyList.clean || '' }}</view>
+						<view class="">{{ yyDailyList.clean || 0 }}</view>
 					</view>
 				</view>
 				<view class="body-container">
 					<view class="container-block">
 						<view class="">璁㈠崟鍓╀綑閲�</view>
-						<view class="">{{ yyDailyList.allowance || '' }}</view>
+						<view class="">{{ yyDailyList.allowance || 0 }}</view>
 					</view>
 				</view>
 				<view class="body-container">
@@ -57,6 +57,27 @@
 					</view>
 				</view>
 			</view>
+			<view class="origin-info" v-if="yyDailyList.orderType == '澶栬喘' || yyDailyList.orderType == '鍐呰喘' || yyDailyList.orderType == '杞嚭'">
+				<combined-title title="鍘熷彂淇℃伅"></combined-title>
+				<view class="body-container">
+					<view class="container-block">
+						<view class="">鐨噸</view>
+						<view class="">{{ yyDailyList.skinTwo || 0 }}</view>
+					</view>
+				</view>
+				<view class="body-container">
+					<view class="container-block">
+						<view class="">姣涢噸</view>
+						<view class="">{{ yyDailyList.hairTwo || 0 }}</view>
+					</view>
+				</view>
+				<view class="body-container">
+					<view class="container-block">
+						<view class="">鍑�閲�</view>
+						<view class="">{{ yyDailyList.cleanTwo || 0 }}</view>
+					</view>
+				</view>
+			</view>
 		</view>
 	</view>
 </template>
@@ -69,18 +90,17 @@
 		combinedTitle
 	},
 	onLoad(params) {
-		this.orderPlanId = params.orderPlanId;
-		this.index = params.index;
+		this.id = params.id;
 	},
 	onShow() {
 		this.GetOrderPlanDetail();
 	},
 	data() {
 		return {
-			orderPlanId: '',
+			id: '',
 			yyDailyList: {},
 			orderPlanDetail: {},
-			coalStatus: ['棰嗗彇', '棰勭害', '绛惧埌', '鍏ュ満', '绉扮毊', '绉版瘺', '绂诲満', '鍏ョ鎴�', '鍑虹鎴�', '鍏ョ叅鍦�', '鍑虹叅浠�'],
+			coalStatus: ['棰嗗彇', '棰勭害', '绛惧埌', '鍏ュ満', '绉扮毊', '绉版瘺', '绂诲満', '鍏ョ鎴�', '鍑虹鎴�', '鍏ョ叅浠�', '鍑虹叅浠�', '鏀剧┖', '浣滃簾', '鍏ュ満鐢宠', '杩涘叆鍦洪櫌'],
 			index: ''
 		};
 	},
@@ -89,10 +109,10 @@
 			uni.showLoading({
 				title: '鍔犺浇涓�...'
 			});
-			this.$reqGet('xiangqingList', { orderPlanId: this.orderPlanId }).then(res => {
+			this.$reqGet('getTakeCoal', { takeCoalId: this.id }).then(res => {
 				if (res.code == 0) {
 					this.orderPlanDetail = res.data;
-					this.yyDailyList = res.data.yyDailyList.filter((v, i) => i == this.index)[0];
+					this.yyDailyList = res.data;
 					console.log(this.yyDailyList);
 					uni.hideLoading();
 				} else {
@@ -113,7 +133,9 @@
 .main {
 	width: 100%;
 	margin-top: vww(10);
-	@include flex justify-content: center;
+	color: #303030;
+	@include flex;
+	flex-direction: column;
 	.main-body {
 		width: 690rpx;
 		height: 1062rpx;
@@ -123,6 +145,7 @@
 		@include flex flex-direction: column;
 		align-items: flex-start;
 		.body-container {
+			color: #303030;
 			width: 100%;
 			height: vww(56);
 			border-bottom: vww(1) solid #d6d6d6;
@@ -138,27 +161,27 @@
 			border-bottom: none;
 		}
 	}
-}
-.uni-table {
-	.uni-table-tr {
-		padding: 0;
-		border: vww(1) solid #c6c6c6;
-		.uni-table-th {
-			font-size: vww(14);
-			height: vww(30);
-			line-height: vww(30);
-			padding: vww(5) vww(10);
-			color: #111111;
-			font-weight: 500;
-			background: #e2e2e2;
-		}
-		.uni-table-td {
-			font-size: vww(14);
-			font-weight: 400;
-			height: vww(30);
-			line-height: vww(30);
-			padding: vww(5) vww(10);
-			color: #111111;
+	.origin-info {
+		width: 690rpx;
+		min-height: 300rpx;
+		margin-top: 20rpx;
+		margin-bottom: 20rpx;
+		background: #ffffff;
+		box-shadow: 0rpx 0rpx 14rpx 0rpx rgba(73, 120, 240, 0.14), 0rpx 7rpx 45rpx 0rpx rgba(73, 120, 240, 0.12);
+		border-radius: 20rpx;
+		@include flex;
+		flex-direction: column;
+		align-items: flex-start;
+		.body-container {
+			width: 100%;
+			height: vww(56);
+			border-bottom: vww(1) solid #d6d6d6;
+			@include flex;
+			justify-content: center;
+			.container-block {
+				width: 94%;
+				@include flex;
+			}
 		}
 	}
 }

--
Gitblit v1.9.1