feat: 单个物流查看
This commit is contained in:
@@ -45,6 +45,7 @@
|
||||
:delay-records="state.delayRecords"
|
||||
type="4"
|
||||
@getOrderDetail="getOrderDetail"
|
||||
@openExpress="handleOpenExpress"
|
||||
></card_order>
|
||||
|
||||
<PickUpVerify
|
||||
@@ -126,6 +127,15 @@
|
||||
>
|
||||
</view>
|
||||
</view>
|
||||
<ExpressListPopup
|
||||
ref="expressListPopupRef"
|
||||
popup-type="center"
|
||||
:order-no="state.orderInfo.no || ''"
|
||||
:order-data="state.orderInfo"
|
||||
:delay-records="state.delayRecords"
|
||||
:order-id="orderId || state.orderInfo.id || 0"
|
||||
@close="closeExpressListPopup"
|
||||
/>
|
||||
</s-pages>
|
||||
</template>
|
||||
|
||||
@@ -144,6 +154,7 @@
|
||||
import StoreApi from '@/sheep/api/trade/store';
|
||||
import PickUpVerify from '@/pages/order/pickUpVerify.vue';
|
||||
import card_order from '@/components/orderItem/card_order.vue';
|
||||
import ExpressListPopup from '@/components/orderItem/ExpressListPopup.vue';
|
||||
|
||||
const statusBarHeight = sheep.$platform.device.statusBarHeight * 2;
|
||||
const headerBg = sheep.$url.css('/static/img/shop/order/order_bg.png');
|
||||
@@ -320,6 +331,20 @@
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
const expressListPopupRef = ref();
|
||||
const closeExpressListPopup = () => {};
|
||||
const handleOpenExpress = () => {
|
||||
const id = orderId.value || state.orderInfo?.id || 0;
|
||||
if (!id) {
|
||||
uni.showToast({
|
||||
title: '订单信息异常',
|
||||
icon: 'none',
|
||||
});
|
||||
return;
|
||||
}
|
||||
expressListPopupRef.value?.open?.();
|
||||
};
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
|
||||
Reference in New Issue
Block a user