From 208b5a9f559dd2c7298759fdfe37d07c926cbd4d Mon Sep 17 00:00:00 2001
From: zhangwei <1504152376@qq.com>
Date: 星期一, 23 九月 2024 17:09:21 +0800
Subject: [PATCH] 完善提现

---
 src/pages/index/index.vue |   32 ++++++++++++++++++--------------
 1 files changed, 18 insertions(+), 14 deletions(-)

diff --git a/src/pages/index/index.vue b/src/pages/index/index.vue
index 046f7f7..99df36d 100644
--- a/src/pages/index/index.vue
+++ b/src/pages/index/index.vue
@@ -8,13 +8,13 @@
 					@search='search'></up-search>
 			</view>
 		</up-sticky>
-		<scroll-view enable-flex="true">
+		<scroll-view enable-flex="true" v-if="listO.orderList">
 			<view class="list chuany-flex chuany-flex-direction chuany-align-center c-p-b-30 "
-				v-if="listO.orderList&&listO.orderList.length>0">
+				v-if="listO.orderList.length>0">
 				<view class="content c-p-b-18" v-for="(item,index) in listO.orderList" @click='toDetail(item.id)'
 					:key='item.id'>
 					<view
-						class="bgblue c-p-l-18 c-p-r-18 c-p-t-10 c-p-b-10 chuany-flex chuany-justify-between chuany-font30">
+						class="bgblue c-p-l-18 c-p-r-18  c-p-b-10 c-p-t-10 chuany-flex chuany-justify-between chuany-font30">
 						<view class="chuany-flex chuany-flex-direction">
 							<text class=''>
 								{{$util.formatDate(item.startTime)}}
@@ -24,35 +24,35 @@
 							鎷泏{item.worderCounted}}/{{item.worderCount}}浜�
 						</text>
 					</view>
-					<view class="c-p-l-18 c-p-b-10 c-p-t-10 c-p-r-18 chuany-font34">
+					<view class="c-p-l-18 c-p-t-10 c-p-b-10 c-p-r-18 chuany-font32">
 						{{item.orderComName}}
 					</view>
-					<view class="c-p-l-18 c-p-b-10 c-p-r-18 chuany-font34">
+					<view class="c-p-l-18 c-p-r-18 c-p-b-10 chuany-font32">
 						{{item.orderName}}
 					</view>
 					<!-- <view class="chuany-flex c-p-l-18">
 						<up-tag class='c-p-r-14' :text="item" plain v-for="(item,index) in item.tags" :key="index">
 						</up-tag>
 					</view> -->
-					<view class="chuany-flex chuany-flex-direction">
-						<text class='c-p-l-18 c-p-b-10 c-p-r-18 text-69'>
+					<view class="chuany-flex chuany-flex-direction chuany-font28">
+						<text class='c-p-l-18 c-p-r-18 text-69 c-p-b-10'>
 							鏃ユ湡锛歿{item.wordStartTimeName}} 鑷� {{item.wordEndTimeName}}
 						</text>
-						<text class='c-p-l-18 c-p-b-10 c-p-r-18 text-69'>
+						<text class='c-p-l-18 c-p-r-18 text-69 c-p-b-10'>
 							鏃堕棿锛歿{item.startTimeName}} 鑷� {{item.endTimeName}}
 						</text>
 					</view>
-					<view class="chuany-flex chuany-flex-direction">
-						<text class='c-p-l-18 c-p-b-10 c-p-r-18 text-69'>
+					<view class="chuany-flex chuany-flex-direction chuany-font28">
+						<text class='c-p-l-18 c-p-r-18 text-69 c-p-b-10'>
 							瑕佹眰锛歿{item.demand}}
 						</text>
-						<text class='c-p-l-18 c-p-b-10 c-p-r-18 text-69'>
+						<text class='c-p-l-18 c-p-r-18 text-69 c-p-b-10'>
 							鍦板潃锛歿{item.worderAddress}}
 						</text>
 					</view>
 					<view class='chuany-flex chuany-justify-between c-p-l-18 c-p-r-18'>
 						<view class="redcla">
-							<text class="chuany-font40 chuany-text-bold">
+							<text class="chuany-font40">
 								{{item.workPrice}}
 							</text>
 							<text class='chuany-font20'>
@@ -71,6 +71,10 @@
 				</up-empty>
 			</view>
 		</scroll-view>
+		<view v-else>
+			<up-empty text='鏆傛棤' icon="/static/order.png">
+			</up-empty>
+		</view>
 		<fui-date-picker range :show="datePickerShow" type="5" @change="changePicker"
 			@cancel="cancel"></fui-date-picker>
 	</view>
@@ -166,7 +170,7 @@
 					if (state.pageIndex == 1) {
 						listO.orderList = res.data.items
 					} else {
-						listO.orderList.concat(...res.data.items)
+						listO.orderList = listO.orderList.concat(...res.data.items)
 					}
 					console.log(listO.orderList, 'listO.orderList鈥�');
 					// totalPages.value = res.data.totalCount
@@ -189,7 +193,7 @@
 					if (state.pageIndex == 1) {
 						listO.orderList = res.data.items
 					} else {
-						listO.orderList.concat(...res.data.items)
+						listO.orderList = listO.orderList.concat(...res.data.items)
 					}
 					console.log(listO.orderList, 'listO.orderList鈥�');
 					// totalPages.value = res.data.totalCount

--
Gitblit v1.9.1