Files
YGChatCS/pages/order/components/UserInfo/index.vue
2025-07-30 20:55:26 +08:00

36 lines
921 B
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="user-info mb12">
<view class="user-info-title">游客信息</view>
<view class="user-info-item">
<text class="label">联系游客</text>
<text class="value">{{ orderData.visitorName }}</text>
</view>
<view class="user-info-item">
<text class="label">联系电话</text>
<text class="value">{{ orderData.contactPhone }}</text>
</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>
@import "./styles/index.scss";
</style>