|
|
@@ -46,7 +46,7 @@
|
|
|
:hasMore="hasMore"
|
|
|
@refresh="handleRefresh"
|
|
|
@loadMore="loadMore"
|
|
|
- @itemClick="handleItemClick"
|
|
|
+ @itemClick="handleView"
|
|
|
>
|
|
|
<template #default="{ item, index }">
|
|
|
<view class="list-item">
|
|
|
@@ -619,6 +619,16 @@ const statusConfig: StatusItem[] = [
|
|
|
}
|
|
|
|
|
|
}
|
|
|
+
|
|
|
+ // 点击列表项
|
|
|
+ const handleView = (item: any | null): void => {
|
|
|
+ if (item == null) return
|
|
|
+ const orderItem = item as acceptOrderInfo
|
|
|
+ uni.navigateTo({
|
|
|
+ url: `/pages/order/detail/index?id=${orderItem.id}&orderType=${orderItem.orderType}`
|
|
|
+ })
|
|
|
+
|
|
|
+ }
|
|
|
|
|
|
// 查看工单详情
|
|
|
const showWorkOrderDetail = (item: any | null): void => {
|