Files
YGChatCS/pages/order/components/GoodsInfo/index.vue
2025-08-01 11:29:03 +08:00

50 lines
1.5 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="goods-info mb12">
<view class="hotel-header">
<image class="hotel-icon" src="./images/icon_house.png"></image>
<text class="hotel-name">{{ orderData.commodityName }}</text>
</view>
<view class="goods-detail">
<image class="goods-image" :src="orderData.commodityCoverPhoto"></image>
<view class="goods-description">
<text class="goods-title">{{ orderData.commodityName }}</text>
<text class="goods-date">预定时间{{ orderData.checkInData }}</text>
</view>
</view>
<view class="included-services">
<text class="services-title">包含服务</text>
<view class="service-item">
<text class="service-name">· 精致下午茶</text>
<text class="service-quantity">1</text>
</view>
<view class="service-item">
<text class="service-name">· 接机或接站</text>
<text class="service-quantity">1</text>
</view>
</view>
</view>
</template>
<script setup>
import { defineProps } from "vue";
defineProps({
orderData: {
type: Object,
required: true,
default: () => ({
id: "",
createTime: "",
contactName: "",
contactPhone: "",
orderStatus: "0", // pending-待处理, completed-已完成, cancelled-已取消
orderType: undefined, // 0-酒店订单, 1-门票订单, 2-其他订单, undefined-工单
}),
},
});
</script>
<style scoped lang="scss">
@import "./styles/index.scss";
</style>