【功能优化】确认收货添加提示确认
							parent
							
								
									518c898882
								
							
						
					
					
						commit
						b476305e30
					
				|  | @ -341,11 +341,20 @@ | |||
|       return; | ||||
|     } | ||||
| 
 | ||||
|     uni.showModal({ | ||||
|       title: '提示', | ||||
|       content: '确认收货吗?', | ||||
|       success: async function (res) { | ||||
|         if (!res.confirm) { | ||||
|           return; | ||||
|         } | ||||
|         // 正常的确认收货流程 | ||||
|         const { code } = await OrderApi.receiveOrder(orderId); | ||||
|         if (code === 0) { | ||||
|           await getOrderDetail(orderId); | ||||
|         } | ||||
|       }, | ||||
|     }); | ||||
|   } | ||||
| 
 | ||||
|   // #ifdef MP-WEIXIN | ||||
|  |  | |||
|  | @ -223,12 +223,21 @@ | |||
|       return; | ||||
|     } | ||||
| 
 | ||||
|     uni.showModal({ | ||||
|       title: '提示', | ||||
|       content: '确认收货吗?', | ||||
|       success: async function (res) { | ||||
|         if (!res.confirm) { | ||||
|           return; | ||||
|         } | ||||
|         // 正常的确认收货流程 | ||||
|         const { code } = await OrderApi.receiveOrder(order.id); | ||||
|         if (code === 0) { | ||||
|           resetPagination(state.pagination); | ||||
|           await getOrderList(); | ||||
|         } | ||||
|       }, | ||||
|     }); | ||||
|   } | ||||
| 
 | ||||
|   // #ifdef MP-WEIXIN | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	 Lcp
						Lcp