From e4a06e0730dc0aa6ced97cbb3362d6b8ef473d39 Mon Sep 17 00:00:00 2001
From: jiangping <jp@doumee.com>
Date: 星期四, 27 三月 2025 15:56:34 +0800
Subject: [PATCH] 最新版本541200007

---
 h5/pages/appointmentDetails/appointmentDetails.vue |   65 ++++++++++++++++++++++++++++++--
 1 files changed, 60 insertions(+), 5 deletions(-)

diff --git a/h5/pages/appointmentDetails/appointmentDetails.vue b/h5/pages/appointmentDetails/appointmentDetails.vue
index 2413308..35c0d1c 100644
--- a/h5/pages/appointmentDetails/appointmentDetails.vue
+++ b/h5/pages/appointmentDetails/appointmentDetails.vue
@@ -1,12 +1,12 @@
 <template>
   <view class="box">
-    <view class="head_wrap head_success" v-if="info.status == 2">
-      <view class="h1">璁垮棰勭害瀹℃牳閫氳繃</view>
+    <view class="head_wrap head_success" v-if="info.status == 2 || info.status == 5">
+      <view class="h1">璁垮棰勭害{{ info.status == 2 ? '瀹℃牳閫氳繃' : '涓嬪彂鎴愬姛' }}</view>
       <view class="h2"
-        >鎮ㄧ殑鏉ヨ鐢宠宸插鏍搁�氳繃锛岃鍦ㄨ瀹㈡満绛惧埌鍏ュ洯銆傚閬囩壒娈婃儏鍐碉紝鍙仈绯昏璁夸汉鎴栧畨淇濅汉鍛�</view
+        >鎮ㄧ殑鏉ヨ鐢宠宸瞷{ info.status == 2 ? '瀹℃牳閫氳繃' : '涓嬪彂鎴愬姛' }}锛岃鍦ㄨ瀹㈡満绛惧埌鍏ュ洯銆傚閬囩壒娈婃儏鍐碉紝鍙仈绯昏璁夸汉鎴栧畨淇濅汉鍛�</view
       >
     </view>
-    <view class="qr_wrap" v-if="info.status == 2">
+    <view class="qr_wrap" v-if="info.status == 2 || info.status == 5">
       <canvas class="box_head_qrcode" canvas-id="img"></canvas>
       <view class="text">浣跨敤璁垮鏈烘壂鐮佺鍒�</view>
     </view>
@@ -22,8 +22,24 @@
       <view class="h1">璁垮棰勭害瀹℃牳涓嶉�氳繃</view>
       <view class="h2">鎮ㄧ殑鏉ヨ鐢宠宸茶椹冲洖锛屽鏈夌枒闂紝鍙仈绯昏璁夸汉</view>
     </view>
+		<view class="head_wrap head_error" v-if="info.status == 4">
+		  <view class="h1">璁垮棰勭害瀹℃牳宸插彇娑�</view>
+		  <view class="h2">鎮ㄧ殑鏉ヨ鐢宠宸插彇娑堬紝璇烽噸鏂扮敵璇�</view>
+		</view>
+		<view class="head_wrap head_success" v-if="info.status == 7">
+		  <view class="h1">璁垮棰勭害鎷滆涓�</view>
+		  <view class="h2">浣犵殑璁跨敵璇锋鍦ㄨ繘琛�,濡傛湁鐤戦棶锛屽彲鑱旂郴琚浜�</view>
+		</view>
+		<view class="head_wrap head_success" v-if="info.status == 8">
+		  <view class="h1">璁垮棰勭害宸茬绂�</view>
+		  <view class="h2">鎮ㄧ殑鏉ヨ鐢宠宸插け鏁堬紝璇烽噸鏂扮敵璇�</view>
+		</view>
 		<view class="head_wrap head_error" v-if="info.status == 9">
 		  <view class="h1">璁垮棰勭害宸插け鏁�</view>
+		  <view class="h2">鎮ㄧ殑鏉ヨ鐢宠宸插け鏁堬紝璇烽噸鏂扮敵璇�</view>
+		</view>
+		<view class="head_wrap head_error" v-if="info.status == 6">
+		  <view class="h1">璁垮涓嬪彂澶辫触</view>
 		  <view class="h2">鎮ㄧ殑鏉ヨ鐢宠宸插け鏁堬紝璇烽噸鏂扮敵璇�</view>
 		</view>
     <view class="box_list">
@@ -69,11 +85,26 @@
         <view class="box_list_item_val">{{ info.carNos }}</view>
       </view>
     </view>
+	<view class="footer">
+		<u-button
+		text="鍙栨秷棰勭害"
+		size="mini"
+		v-if="[0,1,2,5].includes(info.status)"
+		@click="cancelShow = true" />
+	</view>
     <u-popup :show="show" mode="center" @close="close">
       <view class="qrocde">
         <canvas class="qrcode_img" canvas-id="img1"></canvas>
       </view>
     </u-popup>
+	<!-- 鍙栨秷棰勭害寮圭獥 -->
+	<u-modal
+		:show="cancelShow"
+		:showCancelButton="true"
+		title="绯荤粺鎻愮ず"
+		content='纭畾鍙栨秷褰撳墠棰勭害鍚楋紵'
+		@cancel="cancelShow = false"
+		@confirm="cancel" />
   </view>
 </template>
 
@@ -84,9 +115,11 @@
 export default {
   data() {
     return {
+		id: null,
       info: {},
       show: false,
-      detail: ''
+      detail: '',
+	  cancelShow: false
     }
   },
   onBackPress(options) {
@@ -103,7 +136,9 @@
     return true
   },
   onLoad(option) {
+		uni.setStorageSync('ywinfo',{})
     this.detail = option.detail || ''
+	this.id = option.id
     this.getDetail(option.id)
     // visitorSubDetail({ id: option.id })
     // 	.then(res => {
@@ -119,6 +154,12 @@
 
   },
   methods: {
+	// 鍙栨秷棰勭害
+	cancel() {
+		visitsCancel(this.id).then(res => {
+			this.getDetail(this.id)
+		})
+	},
     close() {
       this.show = false
     },
@@ -153,6 +194,16 @@
 <style lang="scss" scoped>
 .box {
   width: 100%;
+  .footer {
+	  position: fixed;
+	  left: 0;
+	  bottom: 0;
+	  width: 100%;
+	  height: 100rpx;
+	  text-align: right;
+	  background-color: #ffffff;
+	  padding-bottom: calc(30rpx + env(safe-area-inset-bottom));
+  }
   .qrocde {
     width: 300rpx;
     height: 300rpx;
@@ -200,6 +251,10 @@
       color: #ffffff;
     }
   }
+	.head_gray{
+		background-color: #666666;
+		color: #fff;
+	}
   .head_error {
     background: #fdeded;
     .h1 {

--
Gitblit v1.9.3