Commit a5443b44 by zhangxw

确认订单页面地址bug修复

1 parent e0b49374
...@@ -198,7 +198,9 @@ Page({ ...@@ -198,7 +198,9 @@ Page({
contactPhone: val.receiveMobile, contactPhone: val.receiveMobile,
contactAddress: `${val.provinceName}${val.cityName}${val.countyName}${val.address}` contactAddress: `${val.provinceName}${val.cityName}${val.countyName}${val.address}`
} }
} else { }
})
if (!Object.keys(obj)?.length) {
let data = res[0] let data = res[0]
obj = { obj = {
...data, ...data,
...@@ -207,7 +209,6 @@ Page({ ...@@ -207,7 +209,6 @@ Page({
contactAddress: `${data.provinceName}${data.cityName}${data.countyName}${data.address}` contactAddress: `${data.provinceName}${data.cityName}${data.countyName}${data.address}`
} }
} }
})
this.setData({ this.setData({
contactInfo: obj, contactInfo: obj,
isDefault: obj?.isDefault == 1, isDefault: obj?.isDefault == 1,
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!