预校验、签到流程跑通
This commit is contained in:
@@ -165,7 +165,11 @@ async function handleOrderAction(orderId: string) {
|
||||
return
|
||||
}
|
||||
if (order.status == 'pending_assignment' || order.status == 'pending_accept') {
|
||||
await acceptServiceOrder(orderId)
|
||||
const result = await acceptServiceOrder(orderId)
|
||||
if (!result.ok) {
|
||||
uni.showToast({ title: result.message != '' ? result.message : '接单失败', icon: 'none' })
|
||||
return
|
||||
}
|
||||
uni.showToast({ title: '已接单', icon: 'success' })
|
||||
loadData()
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user