<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>