【功能优化】确认收货添加提示确认

pull/106/head
Lcp 2024-09-29 16:37:43 +08:00
parent 518c898882
commit b476305e30
2 changed files with 29 additions and 11 deletions

View File

@ -341,11 +341,20 @@
return; return;
} }
// uni.showModal({
const { code } = await OrderApi.receiveOrder(orderId); title: '提示',
if (code === 0) { content: '确认收货吗?',
await getOrderDetail(orderId); success: async function (res) {
} if (!res.confirm) {
return;
}
//
const { code } = await OrderApi.receiveOrder(orderId);
if (code === 0) {
await getOrderDetail(orderId);
}
},
});
} }
// #ifdef MP-WEIXIN // #ifdef MP-WEIXIN

View File

@ -223,12 +223,21 @@
return; return;
} }
// uni.showModal({
const { code } = await OrderApi.receiveOrder(order.id); title: '提示',
if (code === 0) { content: '确认收货吗?',
resetPagination(state.pagination); success: async function (res) {
await getOrderList(); if (!res.confirm) {
} return;
}
//
const { code } = await OrderApi.receiveOrder(order.id);
if (code === 0) {
resetPagination(state.pagination);
await getOrderList();
}
},
});
} }
// #ifdef MP-WEIXIN // #ifdef MP-WEIXIN