From 17efddc6a667670dca682bf36b51a43e99615e6d Mon Sep 17 00:00:00 2001
From: k94314517 <8417338+k94314517@user.noreply.gitee.com>
Date: 星期三, 16 十月 2024 15:59:38 +0800
Subject: [PATCH] 代码初始化

---
 h5/pages/driver/reservedDetail.vue |   58 +++++++++++++++++++++++++++++++++++++++-------------------
 1 files changed, 39 insertions(+), 19 deletions(-)

diff --git a/h5/pages/driver/reservedDetail.vue b/h5/pages/driver/reservedDetail.vue
index 2303e6f..2b90caa 100644
--- a/h5/pages/driver/reservedDetail.vue
+++ b/h5/pages/driver/reservedDetail.vue
@@ -3,7 +3,9 @@
     <view class="status_wrap">
       <view class="name">{{info.driverName}}鐨勫叆鍥绾�</view>
       <view class="desc">{{info.carCodeFront}}</view>
-      <view class="status">{{ statusMap[info.status] }}</view>
+      <view class="status" v-if="info.status != 2 && info.status != 3">{{ statusMap[info.status] }}</view>
+			<image v-if="info.status == 2" class="icon" src="../../static/ic_passed@2x.png" mode=""></image>
+			<image v-if="info.status == 3" class="icon" src="../../static/ic_refused@2x.png" mode=""></image>
     </view>
     <!--  -->
     <view class="emyty"></view>
@@ -123,8 +125,8 @@
 			statusMap: {
 				0: '寰呭鎵�',
 				1: '瀹℃壒涓�',
-				2: '瀹℃壒閫氳繃',
-				3: '瀹℃壒涓嶉�氳繃',
+				2: '宸查�氳繃',
+				3: '宸叉嫆缁�',
 				4: '宸插彇娑�',
 			},
     }
@@ -134,21 +136,32 @@
 	},
   methods: {
 		handleCancel(){
+			const { info } = this
 			uni.showModal({
 				title: '鎻愮ず',
-				content: '杩欐槸涓�涓ā鎬佸脊绐�',
+				content: '鎮ㄧ‘璁よ鎾ゅ洖褰撳墠鐢宠鍚楋紵',
 				success: function (res) {
 					if (res.confirm) {
-						console.log('鐢ㄦ埛鐐瑰嚮纭畾');
+						driverCarRevoke({
+							id: info.id, info: ''
+						})
 					} else if (res.cancel) {
 						console.log('鐢ㄦ埛鐐瑰嚮鍙栨秷');
 					}
 				}
 			});
-			// driverCarRevoke
 		},
-		handleEdit(){},
-		handleAga(){},
+		handleEdit(){
+			uni.navigateTo({
+				url: '/pages/driver/reserved?id=' + this.info.id
+			})
+		},
+		handleAga(){
+			const { info } = this
+			uni.navigateTo({
+				url: `/pages/driver/reserved?id=${info.id}&type=reject`
+			})
+		},
 		getDetail(id) {
 			driverApplyDetail({id}).then(res => {
 				this.info = res.data
@@ -200,7 +213,15 @@
       .item {
         display: flex;
         margin-bottom: 48rpx;
-
+				position: relative;
+				.separate {
+				  position: absolute;
+				  width: 4rpx;
+				  height: calc( 100% - 52rpx );
+				  background-color: #eeeeee;
+				  left: 40rpx;
+				  top: 90rpx;
+				}
         .avatar_wrap {
           width: 80rpx;
           height: 80rpx;
@@ -222,15 +243,6 @@
             bottom: 0;
           }
 
-          .separate {
-            position: absolute;
-            width: 4rpx;
-            height: 100%;
-            background-color: #eeeeee;
-            left: 50%;
-            transform: translate(-50%, 0);
-            bottom: -80rpx;
-          }
         }
 
         .content {
@@ -338,7 +350,6 @@
   .status_wrap {
     position: relative;
     padding: 30rpx 0;
-
     .name {
       font-weight: 600;
       font-size: 32rpx;
@@ -362,6 +373,15 @@
       background-color: #e9edff;
       color: $uni-color-primary;
     }
+		.icon{
+			width: 120rpx;
+			height: 120rpx;
+			border-radius: 50%;
+			position: absolute;
+			right: 0rpx;
+			top: 20rpx;
+			
+		}
   }
 
   .main_footer {

--
Gitblit v1.9.3