From 182884c4367668f279851b76be9b2b957ad0d47a Mon Sep 17 00:00:00 2001
From: zhangwei <1504152376@qq.com>
Date: 星期三, 18 九月 2024 16:09:23 +0800
Subject: [PATCH] 改字体

---
 src/pages/order/order.vue |   66 +++++++++++++++++++-------------
 1 files changed, 39 insertions(+), 27 deletions(-)

diff --git a/src/pages/order/order.vue b/src/pages/order/order.vue
index a2e418b..fac38e6 100644
--- a/src/pages/order/order.vue
+++ b/src/pages/order/order.vue
@@ -2,8 +2,10 @@
 	<view>
 		<up-sticky bgColor="#fff">
 			<view class="coreshop-ff content c-p-10">
-				<up-search placeholder="璇风偣鍑婚�夋嫨鏃ユ湡" @clear='clear' @clickIcon='clickTime' @custom='search'
-					v-model="workTime" search-icon="calendar" @search='search'></up-search>
+				<!-- <up-search placeholder="璇风偣鍑婚�夋嫨鏃ユ湡" @clear='clear' @clickIcon='clickTime' @custom='search'
+					v-model="workTime" search-icon="calendar" @search='search'></up-search> -->
+				<up-search placeholder="璇疯緭鍏ュ伐浣滃悕绉�" @clear='clear'  @custom='search'
+					v-model="state.orderName" @search='search'></up-search>
 			</view>
 			<!-- <up-subsection :list="list" :current="current4" activeColor="#f9ae3d"
 				@change="sectionChange"></up-subsection> -->
@@ -12,10 +14,10 @@
 			<view class="c-p-l-20 c-p-r-20" v-if="listO.orderList&&listO.orderList.length>0">
 				<view class="listrecord c-p-t-20" v-for="(item,index) in listO.orderList" :key="item.id"
 					@click="pageToDetail(item)">
-					<view class="coreshop-ff chuany-bradius20">
-						<view class="c-p-26">
+					<view class="coreshop-ff chuany-bradius20 ">
+						<view class="c-p-24">
 							<view class="chuany-flex chuany-justify-between">
-								<text class="chuany-font34 chuany-text-bold">
+								<text class="chuany-font32">
 									{{item.orderName}}
 								</text>
 								<view class="chuany-flex chuany-justify-between">
@@ -27,23 +29,26 @@
 										plain plainFill size='mini'></up-tag>
 								</view>
 							</view>
-							<view class="c-p-t-14">
-								鏃ユ湡锛歿{$util.formatDate(item.wordStartTime)}} 鑷� {{$util.formatDate(item.wordEndTime)}}
-							</view>
-							<view class="c-p-t-14">
-								鏃堕棿锛歿{item.startTimeName}} 鑷� {{item.endTimeName}}
-							</view>
-							<view class="chuany-flex chuany-justify-between c-p-t-14">
-								<view class="chuany-width50">
-									<text>
-										鏂瑰紡锛歿{item.workerType==0?'璁℃椂':'璁′欢'}}
-									</text>
+							<view class="text-69 chuany-font28">
+								<view class="">
+									鏃ユ湡锛歿{$util.formatDate(item.wordStartTime)}} 鑷� {{$util.formatDate(item.wordEndTime)}}
 								</view>
-								<view class="chuany-width50">
-									宸ヤ环锛歿{item.workPrice}}{{item.workerType==0?'鍏�/灏忔椂':'鍏�/浠�'}}
-									<text></text>
+								<view class="">
+									鏃堕棿锛歿{item.startTimeName}} 鑷� {{item.endTimeName}}
+								</view>
+								<view class="chuany-flex chuany-justify-between ">
+									<view class="chuany-width50">
+										<text>
+											鏂瑰紡锛歿{item.workerType==0?'璁℃椂':'璁′欢'}}
+										</text>
+									</view>
+									<view class="chuany-width50">
+										宸ヤ环锛歿{item.workPrice}}{{item.workerType==0?'鍏�/灏忔椂':'鍏�/浠�'}}
+										<text></text>
+									</view>
 								</view>
 							</view>
+							
 						</view>
 					</view>
 				</view>
@@ -63,7 +68,8 @@
 	import {
 		onLoad,
 		onShow,
-		onReachBottom
+		onReachBottom,
+		onPullDownRefresh
 	} from "@dcloudio/uni-app";
 	import {
 		reactive,
@@ -79,6 +85,7 @@
 	let state = reactive({
 		pageIndex: 1,
 		pageSize: 20,
+		orderName: ''
 	})
 	let workTime = ref('')
 	let datePickerShow = ref(false)
@@ -95,6 +102,13 @@
 	onLoad(() => {
 		PostMyListPageCompany()
 	})
+	onPullDownRefresh(() => {
+		state.pageIndex = 1
+		state.pageSize = 20
+		loadStatus.value = 'loadmore'
+		PostMyListPageCompany()
+		uni.stopPullDownRefresh();
+	})
 	const current4 = ref(0);
 	const list = ref(['鍏ㄩ儴', '鍙戝竷', '鎷涘伐瀹屾瘯', '缁撶畻瀹屾瘯']);
 	const changePicker = (val) => {
@@ -105,15 +119,10 @@
 	}
 
 	const search = (index) => {
-		console.log(index, '------鈥�');
-		if (index == 0) {
-			PostMyListPageCompany()
-		} else {
-			PostMyListPageCompany(index - 1)
-		}
-
+		PostMyListPageCompany()
 	}
 	const clear = () => {
+		state.orderName = ''
 		state.wordStartTime = ""
 		state.wordEndTime = ""
 	}
@@ -132,6 +141,9 @@
 		if (state.wordEndTime) {
 			data.wordEndTime = state.wordEndTime
 		}
+		if (state.orderName) {
+			data.orderName = state.orderName
+		}
 		loadStatus.value = 'loading';
 		$api.PostMyListPageCompany(data).then(res => {
 			console.log(res, res.code, '-----------123鈥�');

--
Gitblit v1.9.1