✨ feat:修改确认订单选择后无法渲染的问题,顶input框的高度问题
This commit is contained in:
@@ -24,23 +24,24 @@ export default () => {
|
||||
let currPage = pages[pages.length - 1]; // 获取当前页面
|
||||
setInfoObj((val) => ({
|
||||
...val,
|
||||
province_name: currPage.data?.addressObj?.province_name,
|
||||
address_id: currPage.data?.addressObj?.id,
|
||||
city_name: currPage.data?.addressObj?.city_name,
|
||||
address_detail: currPage.data?.addressObj?.address_detail,
|
||||
district_name: currPage.data?.addressObj?.district_name,
|
||||
target_user_name: currPage.data?.addressObj?.name,
|
||||
purchaser_phone: currPage.data?.addressObj?.phone,
|
||||
province_name: currPage.data?.addressObj?.province_name ? currPage.data?.addressObj?.province_name : '---',
|
||||
address_id: currPage.data?.addressObj?.id ? currPage.data?.addressObj?.id : '',
|
||||
city_name: currPage.data?.addressObj?.city_name ? currPage.data?.addressObj?.city_name : '',
|
||||
address_detail: currPage.data?.addressObj?.address_detail ? currPage.data?.addressObj?.address_detail : '',
|
||||
district_name: currPage.data?.addressObj?.district_name ? currPage.data?.addressObj?.district_name : '',
|
||||
target_user_name: currPage.data?.addressObj?.name ? currPage.data?.addressObj?.name : '',
|
||||
purchaser_phone: currPage.data?.addressObj?.phone ? currPage.data?.addressObj?.phone : '',
|
||||
}))
|
||||
if (!currPage.data?.addressObj) {
|
||||
setReceivingStatus(1)
|
||||
} else {
|
||||
setReceivingStatus(2)
|
||||
}
|
||||
})
|
||||
useEffect(() => {
|
||||
getDetail()
|
||||
}, [])
|
||||
|
||||
useEffect(() => {
|
||||
setInfoObj(infoObj)
|
||||
console.log(infoObj, 66666)
|
||||
}, [infoObj])
|
||||
|
||||
//收货方法,1:自提,2物流
|
||||
const [receivingStatus, setReceivingStatus] = useState<any>(null)
|
||||
@@ -78,7 +79,6 @@ export default () => {
|
||||
}
|
||||
const res = await infoFetch(query)
|
||||
setInfoObj(res.data)
|
||||
setReceivingStatus(1)
|
||||
}
|
||||
|
||||
//备注操作
|
||||
|
||||
Reference in New Issue
Block a user