From 93a986bc80abdef75923054b9df9adb6e1ccff52 Mon Sep 17 00:00:00 2001 From: zhangwei <1504152376@qq.com> Date: 星期二, 08 十月 2024 16:44:08 +0800 Subject: [PATCH] - --- src/pages/order/myorder.vue | 34 ++++++++++++++++++++++++++-------- 1 files changed, 26 insertions(+), 8 deletions(-) diff --git a/src/pages/order/myorder.vue b/src/pages/order/myorder.vue index f9c5d62..1ac7469 100644 --- a/src/pages/order/myorder.vue +++ b/src/pages/order/myorder.vue @@ -1,5 +1,5 @@ <template> - <view> + <view class="full-page" scroll-y using-sticky> <up-sticky bgColor="#fff"> <view class="coreshop-ff content c-p-10"> <up-search placeholder="璇风偣鍑婚�夋嫨鏃ユ湡" @clear='clear' @click='clickTime' disabled @custom='search' @@ -7,10 +7,12 @@ </view> <!-- <up-subsection :list="list" :current="current4" activeColor="#f9ae3d" @change="sectionChange"></up-subsection> --> + <!-- <up-subsection :list="list" current='1' activeColor="#f9ae3d" @change="sectionChange"></up-subsection> --> </up-sticky> - <view class="full-page"> + <view class="full-page-content"> <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="listrecord c-p-t-20" v-for="(item,index) in listO.orderList" :key="item.id" + @click='toDetail(item.id)'> <view class="coreshop-ff chuany-bradius20"> <view class="c-p-24"> <view class="chuany-flex chuany-justify-between"> @@ -24,8 +26,16 @@ </text> --> <up-tag class='c-m-r-10' text="涓婄彮鎵撳崱" shape="circle" type="success" 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 class="" v-else> + <up-text :type="item.isSelectedName=='瀹℃牳涓�'?'info':'error'" + :text="item.isSelectedName" size='14'></up-text> + <!-- <up-tag v-if="item.isSelectedName=='瀹℃牳涓�'" class='c-m-r-10' bgColor='#909399' borderColor='#909399' + v-if="item.isSelectedName=='瀹℃牳涓�'" :text="item.isSelectedName" shape="circle" + size='mini'></up-tag> + <up-tag class='c-m-r-10' v-else :text="item.isSelectedName" shape="circle" + type="error" size='mini'></up-tag> --> + </view> + </view> </view> <view class="text-69 chuany-font28"> @@ -37,13 +47,16 @@ </view> --> <view class="chuany-flex chuany-justify-between c-p-t-6"> <view class="chuany-width50"> - <text> + <view class="c-p-l-18 c-p-r-18 text-69 c-p-b-10" v-if="item.zixinganpai"> + 鏃堕棿锛歿{item.zixinganpaiName}} + </view> + <text v-else> <!-- 鏂瑰紡锛歿{item.workerType==0?'璁℃椂':'璁′欢'}} --> 鏃堕棿锛歿{item.startTimeName}} 鑷� {{item.endTimeName}} </text> </view> <view class="chuany-width50"> - 宸ヤ环锛歿{item.workPrice}}{{item.workerType==0?'鍏�/灏忔椂':'鍏�/浠�'}} + 宸ヤ环锛歿{item.workPrice}}<template v-if="item.workPriceMax">~{{item.workPriceMax}}</template>{{item.workerType==0?'鍏�/灏忔椂':'鍏�/浠�'}} <text></text> </view> </view> @@ -108,7 +121,7 @@ PostMyListPage() }) const current4 = ref(0); - const list = ref(['鍏ㄩ儴', '鍙戝竷', '鎷涘伐瀹屾瘯', '缁撶畻瀹屾瘯']); + // const list = ref(['鍏ㄩ儴', '瀹℃牳涓�', '宸插綍鐢�', '鏈綍鐢�']); const changePicker = (val) => { console.log(val); workTime.value = val.startDate.result + '鑷�' + val.endDate.result @@ -126,6 +139,11 @@ } } + const toDetail = (val) => { + uni.navigateTo({ + url: `/pages/order/myorderdetail?orderid=${val}` + }) + } const clear = () => { state.wordStartTime = "" state.wordEndTime = "" -- Gitblit v1.9.1