Browse Source

fix: 订单列表

chenjj 1 week ago
parent
commit
65da727035
2 changed files with 4 additions and 4 deletions
  1. 3 3
      pages/classify.vue
  2. 1 1
      pages/common/orderList/listItem.vue

+ 3 - 3
pages/classify.vue

@@ -155,16 +155,16 @@ async function getList(type) {
 /**
  * 1: 查看
  * 2:沟通
- * 3:上传照片
+ * 3:开始或结束服务
  */
 function btnClick(row, type) {
-  if (type === 1 && row.orderStatus === '2') {
+  if (type === 1) {
     uni.navigateTo({
       url: `/pages_classify/pages/order/index?orderId=${row.secondOrderId}`,
     })
     return
   }
-  if (type === 1) {
+  if (type === 3) {
     uni.navigateTo({
       url: `/pages_classify/pages/handle/index?orderId=${row.secondOrderId}`,
     })

+ 1 - 1
pages/common/orderList/listItem.vue

@@ -32,7 +32,7 @@
                     <!-- <view class="btn-m" @click="onClick(2)">
                         <text style="margin-left: 8rpx;">沟通</text>
                     </view> -->
-                    <view class="btn-m" @click="onClick(1)"  v-if="['3', '1'].includes(data.orderStatus)">
+                    <view class="btn-m" @click="onClick(3)"  v-if="['3', '1'].includes(data.orderStatus)">
                         <!-- <up-icon name="chat" color="#ffffff" size="20"></up-icon> -->
                        {{ data.orderStatus === '1' ? '开始' : '完成' }}服务
                     </view>