You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
122 lines
2.7 KiB
122 lines
2.7 KiB
<template>
|
|
<view class="bg">
|
|
<div class="box">
|
|
<view class="box-title">{{detail.status_text}}</view>
|
|
<view class="item">
|
|
<view class="title">下单日期:</view>
|
|
<view class="subtitle">{{detail.create_time}}</view>
|
|
</view>
|
|
<view class="item">
|
|
<view class="title">订单号:</view>
|
|
<view class="subtitle">{{detail.order_id}}</view>
|
|
</view>
|
|
</div>
|
|
|
|
<div class="box">
|
|
<view class="box-title" style="text-align: left;">产品信息</view>
|
|
<view class="item">
|
|
<view class="title">产品类型:</view>
|
|
<view class="subtitle">{{detail.type_id == 1 ? '线路' : '导游'}}</view>
|
|
</view>
|
|
<view class="item">
|
|
<view class="title">产品名称:</view>
|
|
<view class="subtitle">{{detail.goods_title}}</view>
|
|
</view>
|
|
<view class="item">
|
|
<view class="title">规格名称:</view>
|
|
<view class="subtitle">{{detail.specifications_name}}</view>
|
|
</view>
|
|
<view class="item">
|
|
<view class="title">产品单价:</view>
|
|
<view class="subtitle">{{detail.money / 100}}元</view>
|
|
</view>
|
|
</div>
|
|
|
|
<div class="box">
|
|
<view class="box-title" style="text-align: left;">订单信息</view>
|
|
<view class="item">
|
|
<view class="title">订单数量:</view>
|
|
<view class="subtitle">{{detail.num}}</view>
|
|
</view>
|
|
<view class="item">
|
|
<view class="title">总价:</view>
|
|
<view class="subtitle">{{detail.pay_money / 100}}元</view>
|
|
</view>
|
|
<view class="item">
|
|
<view class="title">使用时间:</view>
|
|
<view class="subtitle">{{detail.use_date}}</view>
|
|
</view>
|
|
<view class="item" v-if="detail.contact">
|
|
<view class="title">出行人信息:</view>
|
|
<view class="subtitle">{{detail.contact.name}}</view>
|
|
</view>
|
|
<view class="item" v-if="detail.contact">
|
|
<view class="title">出行人手机号:</view>
|
|
<view class="subtitle">{{detail.contact.tel}}</view>
|
|
</view>
|
|
</div>
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
data() {
|
|
return {
|
|
detail: {}
|
|
}
|
|
},
|
|
onLoad(option) {
|
|
if(option.id) {
|
|
this.Post({
|
|
child_id: option.id
|
|
},'/api/Merchants/detail').then(res => {
|
|
this.detail = res.data
|
|
})
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
.bg {
|
|
min-height: 100vh;
|
|
background: #F5F5F5;
|
|
padding: 50rpx 26rpx;
|
|
}
|
|
|
|
.box {
|
|
padding: 30rpx 26rpx;
|
|
background: #FFFFFF;
|
|
border-radius: 13rpx;
|
|
margin-bottom: 30rpx;
|
|
|
|
.box-title {
|
|
text-align: center;
|
|
font-weight: bold;
|
|
font-size: 32rpx;
|
|
color: #000000;
|
|
}
|
|
|
|
.item {
|
|
margin-top: 20rpx;
|
|
display: flex;
|
|
|
|
.title {
|
|
min-width: 210rpx;
|
|
font-weight: 500;
|
|
font-size: 28rpx;
|
|
color: #000000;
|
|
}
|
|
|
|
.subtitle {
|
|
font-weight: 500;
|
|
font-size: 28rpx;
|
|
color: #646464;
|
|
|
|
span {
|
|
color: #96684F;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</style>
|