🐞 fix(ID1001130):【内部小程序】--修改订单点击提交,提示选择地址

This commit is contained in:
Haiyi 2023-01-12 18:30:01 +08:00
parent aa0274d273
commit 04c8e7dcfd

View File

@ -554,7 +554,7 @@ const OrderDetails = () => {
const { fetchData: submitFetch } = MpsaleOrdersubmit() const { fetchData: submitFetch } = MpsaleOrdersubmit()
// 提交修改 // 提交修改
const handSubmit = () => { const handSubmit = () => {
if (infoObj?.address_id == 0 || !infoObj?.address_id) { if ((infoObj?.address_id == 0 || !infoObj?.address_id) && receivingStatus == 2) {
return Taro.showToast( return Taro.showToast(
{ {
title: '请选择收货地址', title: '请选择收货地址',