|
@@ -66,21 +66,22 @@ const getOrderDetail = async () => {
|
|
|
title: '数据加载中...'
|
|
|
});
|
|
|
const res = await getVolunteerOrderInfo({ orderId: orderId.value });
|
|
|
- const ad_res = await getAddress(res.data.addressId);
|
|
|
-
|
|
|
- let data = res.data;
|
|
|
- if (ad_res.data) {
|
|
|
- data = {
|
|
|
- ...data,
|
|
|
- address: ad_res.data.address,
|
|
|
- name: ad_res.data.name,
|
|
|
- telephone: ad_res.data.telephone,
|
|
|
- isContagion: ad_res.data.isContagion,
|
|
|
- haveContagion: ad_res.data.haveContagion,
|
|
|
-
|
|
|
- }
|
|
|
- }
|
|
|
- detaile.value = data;
|
|
|
+ // const ad_res = await getAddress(res.data.secondOrder.addressId);
|
|
|
+ console.log('res',res.data);
|
|
|
+
|
|
|
+ let data = res.data.secondOrder;
|
|
|
+ detaile.value = {...res.data.secondOrder,...res.data.address};
|
|
|
+ // if (data.address) {
|
|
|
+ // data = {
|
|
|
+ // ...data,
|
|
|
+ // telephone: data.address.telephone,
|
|
|
+ // isContagion: data.address.isContagion,
|
|
|
+ // haveContagion: data.address.haveContagion,
|
|
|
+ // address: data.address.address,
|
|
|
+ // name: data.address.name,
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ // detaile.value = data;
|
|
|
if (data.orderStatus === 1) {
|
|
|
|
|
|
orderStatus.value = true;
|