From 1a87fb7cbc283fdbf530c0c4331f06d193bfbdc8 Mon Sep 17 00:00:00 2001 From: Haiyi <1021441632@qq.com> Date: Mon, 21 Nov 2022 15:13:10 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9E=20fix(ID1000727):=E4=BF=9D?= =?UTF-8?q?=E5=AD=98=E6=94=B6=E8=B4=A7=E5=9C=B0=E5=9D=80=E5=87=BA=E9=94=99?= =?UTF-8?q?=EF=BC=88=E5=8F=AA=E6=98=AF=E7=82=B9=E7=BC=96=E8=BE=91=E8=BF=9B?= =?UTF-8?q?=E5=85=A5=EF=BC=8C=E4=BB=80=E4=B9=88=E4=B9=9F=E6=B2=A1=E5=8A=A8?= =?UTF-8?q?=EF=BC=8C=E7=9B=B4=E6=8E=A5=E7=82=B9=E7=9A=84=E7=A1=AE=E8=AE=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/addAddress/index.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pages/addAddress/index.tsx b/src/pages/addAddress/index.tsx index 247458c..cb3cfcf 100644 --- a/src/pages/addAddress/index.tsx +++ b/src/pages/addAddress/index.tsx @@ -172,7 +172,7 @@ export default () => { site: addressName.join(' '), district_id: ev[ev.length - 1]?.id, is_default: ischecked, - address_detail: itemList[3]?.value, + address_detail: itemList[4]?.value, id: infoObj?.id ? infoObj?.id : '', siteArray: ev, factory: itemList[1]?.value @@ -221,7 +221,7 @@ export default () => { const { fetchData: addAddressFetch } = mppurchaseraddress() const handAdd = async () => { // if (!btnDisabled) return false - let res = await addAddressFetch({ ...getFilterData(formData), purchaser_id: Number(router.params.purchaser_id) }) + let res = await addAddressFetch({ ...formData, purchaser_id: Number(router.params.purchaser_id) }) if (res.data) { Taro.showToast({ title: '成功', @@ -239,7 +239,7 @@ export default () => { const { fetchData: putFetch } = mppurchaseraddressput() const handEdit = async () => { // if (!btnDisabled) return false - let res = await putFetch({ ...getFilterData(formData), purchaser_id: Number(router.params.purchaser_id), id: Number(infoObj?.id) }) + let res = await putFetch({ ...formData, purchaser_id: Number(router.params.purchaser_id), id: Number(infoObj?.id) }) if (res.msg === 'success') { Taro.showToast({ title: '成功',