-
zhangwei
2024-10-08 93a986bc80abdef75923054b9df9adb6e1ccff52
src/pages/order/order.vue
@@ -1,5 +1,5 @@
<template>
   <scroll-view class="full-page" scroll-y using-sticky>
   <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' @clickIcon='clickTime' @custom='search'
@@ -49,8 +49,8 @@
                              </text>
                           </view>
                           <view class="chuany-width50">
                              工价:{{item.workPrice}}{{item.workerType==0?'元/小时':'元/件'}}
                              <text></text>
                              工价:{{item.workPrice}}<template v-if="item.workPriceMax">~{{item.workPriceMax}}</template>
                              {{item.workerType==0?'元/小时':'元/件'}}
                           </view>
                           <view class="">
                              <up-button hoverStopPropagation :text="item.isEn?'下架':'上架'" shape="circle" :loading='item.isLoading' :loadingText="item.isEn?'下架中':'上架中'"
@@ -72,7 +72,7 @@
      </view>
      <fui-date-picker range :show="datePickerShow" type="5" @change="changePicker"
         @cancel="cancel"></fui-date-picker>
   </scroll-view>
   </view>
</template>
<script setup>
@@ -122,7 +122,7 @@
      uni.stopPullDownRefresh();
   })
   const current4 = ref(0);
   const list = ref(['全部', '发布中', '已下架']);
   const list = ref(['全部', '已上架', '已下架']);
   const changePicker = (val) => {
      console.log(val);
      workTime.value = val.startDate.result + '至' + val.endDate.result
@@ -138,11 +138,10 @@
   const clickTime = () => {
      datePickerShow.value = !datePickerShow.value
   }
   const PostMyListPageCompany = (orderStatus) => {
   const PostMyListPageCompany = () => {
      let data = {
         pageIndex: state.pageIndex,
         pageSize: state.pageSize,
         orderStatus,
         isEn: isEn.value
      }
      if (state.wordStartTime) {
@@ -193,6 +192,9 @@
            isEn.value = false
            break;
      }
      state.pageIndex = 1
      state.pageSize = 20
      loadStatus.value = 'loadmore'
      PostMyListPageCompany()
   }
   const manageOrder = (item) => {