From ce06ca62a0dd65d4a8fb57126948449c804ad77e Mon Sep 17 00:00:00 2001
From: MrShi <1878285526@qq.com>
Date: 星期二, 19 五月 2026 19:40:08 +0800
Subject: [PATCH] 提交

---
 small-program/pages/itinerary/itinerary.vue |   66 ++++++++++++++++++++++++++------
 1 files changed, 53 insertions(+), 13 deletions(-)

diff --git a/small-program/pages/itinerary/itinerary.vue b/small-program/pages/itinerary/itinerary.vue
index f3b7a2e..eff6432 100644
--- a/small-program/pages/itinerary/itinerary.vue
+++ b/small-program/pages/itinerary/itinerary.vue
@@ -7,6 +7,12 @@
 				<view class="header-bar" :style="{ height: navHeight + 'px' }">
 					<text class="header-title">鎴戠殑琛岀▼</text>
 				</view>
+				<view class="top-search">
+					<view class="searchbox">
+						<u-icon name="search" color="#999999" size="28"></u-icon>
+						<input class="search-input" v-model="keyword" @confirm="getFirstPageData" type="text" placeholder="杈撳叆濮撳悕銆佺數璇濄�佽鍗曠紪鍙锋悳绱�">
+					</view>
+				</view>
 				<scroll-view scroll-x class="tabs-row page-padding" style="padding: 0 0 0 30rpx !important;" show-scrollbar="false">
 					<view class="tabs-inner">
 						<view
@@ -89,7 +95,7 @@
 						<view class="amount-area">
 							<view class="pay-row">
 								<text class="pay-label">瀹炰粯娆撅細</text>
-								<text class="pay-value">{{((item.estimatedAmount || 0)/100).toFixed(2) }}</text>
+								<text class="pay-value">{{(((item.estimatedAmount || 0) - (item.deductionAmount || 0)) / 100).toFixed(2) }}</text>
 							</view>
 							<view class="insurance-row">
 								<text class="insurance-label">鍚鏉庝繚璐癸細</text>
@@ -109,10 +115,10 @@
 							<view class="footer-btn primary-btn" @click="evaluateOrder(item)" v-if="item.status ===7 && !item.commentStatus ">璇勪环璁㈠崟</view>
 						</view>
 						<view class="footer-actions" v-else>
-							<view class="footer-btn contact-btn" @click="contactPhone(item,0)" v-if="item.status ===1 || item.status ==2">鑱旂郴闂ㄥ簵</view> 
-							<view class="footer-btn contact-btn" @click="contactPhone(item,2)" v-if="item.status ===3 || item.status ===4 ">鑱旂郴楠戞墜</view>
-							<view class="footer-btn contact-btn" @click="contactPhone(item,1)" v-if="item.status ===5">鑱旂郴闂ㄥ簵</view>
-							<view class="footer-btn contact-btn" v-if="item.status ===0"  @click="cancelOrder(item)">鍙栨秷璁㈠崟</view>
+							<view class="footer-btn contact-btn" @click="contactPhone(item,0)" v-if="(item.status ===1 || item.status ==2) && item.takeShopId">鑱旂郴闂ㄥ簵</view> 
+							<view class="footer-btn contact-btn" @click="contactPhone(item,2)" v-if="[3,4,5].includes(item.status) && !item.takeShopId">鑱旂郴楠戞墜</view>
+							<view class="footer-btn contact-btn" @click="contactPhone(item,1)" v-if="item.status ===5 && item.takeShopId">鑱旂郴闂ㄥ簵</view>
+							<view class="footer-btn contact-btn" v-if="[0,1,2].includes(item.status)"  @click="cancelOrder(item)">鍙栨秷璁㈠崟</view>
 							<view class="footer-btn primary-btn" @click="payOrder(item)" v-if="item.status ===0">绔嬪嵆鏀粯</view>
 							<view class="footer-btn primary-btn" @click="payOrderFee(item)" v-if="item.status ===5 && item.overdueStatus===3 ">绔嬪嵆鏀粯</view>
 							<view class="footer-btn contact-btn" @click="deleteOrder(item)" v-if="item.status ===7 || item.status===96 || item.status == 99">鍒犻櫎璁㈠崟</view>
@@ -246,6 +252,7 @@
 				showPhone:false,
 				total:0,
 				hasNext:true,
+				keyword:'',
 				userType: 0,
 				qrcodeImage:null,
 				isLoadingMore: false,
@@ -546,12 +553,13 @@
 					var that =this 
 					let res ={};
 					res = await that.$u.api.myOrderPage({
-							capacity:10,
-							model: {
-								combinedStatus: this.activeTab == -1?'':this.activeTab
-							},
-							page:this.currentPage
-						});
+						capacity:10,
+						model: {
+							combinedStatus: this.activeTab == -1?'':this.activeTab,
+							keyword: this.keyword
+						},
+						page:this.currentPage
+					});
 					 
 					console.log(res)
 					if (res.code === 200 ) { 
@@ -627,6 +635,38 @@
 		align-items: center;
 		justify-content: space-between;
 		box-sizing: border-box;
+	}
+
+	.top-search {
+		width: 100%;
+		height: 88rpx;
+		padding: 8rpx 30rpx;
+		box-sizing: border-box;
+		display: flex;
+		align-items: center;
+	}
+
+	.searchbox {
+		width: 100%;
+		display: flex;
+		align-items: center;
+		padding: 0 30rpx;
+		box-sizing: border-box;
+		background: rgba(255,255,255,0.9);
+		border-radius: 16rpx;
+		overflow: hidden;
+	}
+
+	.search-input {
+		flex: 1;
+		height: 72rpx;
+		background: #F9F9FB;
+		border-radius: 16rpx;
+		border: 1rpx solid #EEEEEE;
+		font-weight: 400;
+		font-size: 26rpx;
+		color: #333333;
+		margin-left: 16rpx;
 	}
 
 	.header-title {
@@ -902,8 +942,8 @@
 	}
 	.amount-area {
 		width: 50%;
-		padding: 0 30rpx;
-		box-sizing: border-box;
+		// padding: 0 30rpx;
+		// box-sizing: border-box;
 		display: flex;
 		flex-direction: column;
 		align-items: flex-end;

--
Gitblit v1.9.3