sl-express/project-wl-kuaidiyuan-uniapp-vue3/pages/search/components/AlreadyPicUp.vue
shuhongfan cf5ac25c14 init
2023-09-04 16:40:17 +08:00

41 lines
1.1 KiB
Vue
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!--已取件-->
<template>
<view class="item" v-if="item.taskType === 1 && item.status === 2">
<view class="titInfo">订单号SD{{ item.orderId }}</view>
<view class="address">寄件人:{{ item.name }}</view>
<view class="address">取件地址:{{ item.address }}</view>
<view class="time">取件时间:{{ item.taskTime }}</view>
<view
class="time"
v-if="item.amount > 0 && item.status === 2 && item.paymentMethod === 1"
>运费:{{ item.amount }}元</view
>
<text
@click.stop="handleDetails($event, item)"
class="delete"
v-if="
item.status === 2 &&
item.paymentStatus === 1 &&
item.paymentMethod === 1
"
>
<button class="uni-btn btn-default">去收款</button>
</text>
</view>
</template>
<script setup>
// 获取父组件数据
const props = defineProps({
item: {
type: Object,
default: () => ({}),
},
});
const emit = defineEmits(""); //子组件向父组件事件传递
//进入已取件详情
const handleDetails = (e, item) => {
emit("handleDetails", e, item);
};
</script>