From 0c9b00f333f9baaffa9140fd1808a26e0af8416b Mon Sep 17 00:00:00 2001
From: zhangwei <1504152376@qq.com>
Date: 星期四, 05 九月 2024 17:19:07 +0800
Subject: [PATCH] 一些错误更改
---
src/pages/order/myorder.vue | 30 ++++++++++++++++++++----------
1 files changed, 20 insertions(+), 10 deletions(-)
diff --git a/src/pages/order/myorder.vue b/src/pages/order/myorder.vue
index d675ddc..0ef1aff 100644
--- a/src/pages/order/myorder.vue
+++ b/src/pages/order/myorder.vue
@@ -9,9 +9,8 @@
@change="sectionChange"></up-subsection> -->
</up-sticky>
<view class="full-page">
- <view class="" v-if="listO.orderList&&listO.orderList.length>0">
- <view class="listrecord c-p-20" v-for="(item,index) in listO.orderList" :key="item.id"
- @click="pageToDetail(item)">
+ <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">
<view class="coreshop-ff chuany-bradius20">
<view class="c-p-26">
<view class="chuany-flex chuany-justify-between">
@@ -24,15 +23,18 @@
</text> -->
<up-tag class='c-m-r-10' text="鍘绘墦鍗�" shape="circle" type="success"
- size='mini'></up-tag>
+ v-if="item.isSelected" @click="pageToDetail(item)" size='mini'></up-tag>
+ <up-tag class='c-m-r-10' :text="item.isSelectedName" shape="circle" type="warning"
+ v-else size='mini'></up-tag>
</view>
</view>
- <view class="c-p-t-20">
- {{$util.formatDate(item.wordStartTime,true)}}鑷�
- {{$util.formatDate(item.wordEndTime,true)}}
-
+ <view class="c-p-t-14">
+ 鏃ユ湡锛歿{$util.formatDate(item.wordStartTime)}} 鑷� {{$util.formatDate(item.wordEndTime)}}
</view>
- <view class="chuany-flex chuany-justify-between c-p-t-20">
+ <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?'璁℃椂':'璁′欢'}}
@@ -62,7 +64,8 @@
import {
onLoad,
onShow,
- onReachBottom
+ onReachBottom,
+ onPullDownRefresh
} from "@dcloudio/uni-app";
import {
reactive,
@@ -91,6 +94,13 @@
PostMyListPage();
}
})
+ onPullDownRefresh(() => {
+ state.pageIndex = 1
+ state.pageSize = 20
+ loadStatus.value = 'loadmore'
+ PostMyListPage()
+ uni.stopPullDownRefresh();
+ })
onLoad(() => {
PostMyListPage()
})
--
Gitblit v1.9.1