feat: 订单详情接口对接
This commit is contained in:
@@ -2,13 +2,13 @@
|
||||
<view class="goods-info mb12">
|
||||
<view class="hotel-header">
|
||||
<image class="hotel-icon" src="./images/icon_house.png"></image>
|
||||
<text class="hotel-name">天沐温泉酒店</text>
|
||||
<text class="hotel-name">{{ orderData.commodityName }}</text>
|
||||
</view>
|
||||
<view class="goods-detail">
|
||||
<image class="goods-image" :src="goodsImage"></image>
|
||||
<image class="goods-image" :src="orderData.commodityCoverPhoto"></image>
|
||||
<view class="goods-description">
|
||||
<text class="goods-title">温泉早鸟票</text>
|
||||
<text class="goods-date">预定时间:5月1日</text>
|
||||
<text class="goods-title">{{ orderData.commodityName }}</text>
|
||||
<text class="goods-date">预定时间:{{ orderData.checkInData }}</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="included-services">
|
||||
@@ -26,9 +26,24 @@
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
const goodsImage = 'https://example.com/path/to/image.jpg'; // Replace with actual image URL
|
||||
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';
|
||||
@import "./styles/index.scss";
|
||||
</style>
|
||||
Reference in New Issue
Block a user