|
|
|
|
@ -10,13 +10,17 @@
|
|
|
|
|
<view class="orderBox" :class="{'cancelBox':item.status==0}" @click="toinfo(item.id)">
|
|
|
|
|
<view class="orderBoxTitle flex-row">
|
|
|
|
|
<text class="orderBoxTitleTxt">{{item.type==1?"团队预约":"个人预约"}}</text>
|
|
|
|
|
<view
|
|
|
|
|
:class="item.status!=1?'cancelStatus orderBoxStatus':'orderBoxStatus'">{{item.status_name}}
|
|
|
|
|
<view :class="item.status!=1?'cancelStatus orderBoxStatus':'orderBoxStatus'">
|
|
|
|
|
{{item.status_name}}
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
|
|
|
|
|
<view class="orderBoxInfo flex-col">
|
|
|
|
|
<view class="orderBoxInfoRow flex-row">
|
|
|
|
|
<text class="iconfont icon-youkexuzhi"></text>
|
|
|
|
|
<text class="orderBoxInfoRowTxt">活动名称:{{item.activity.name||"加载中..."}}</text>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="orderBoxInfoRow flex-row" style="margin-top: 20rpx;">
|
|
|
|
|
<text class="iconfont icon-youkexuzhi"></text>
|
|
|
|
|
<text class="orderBoxInfoRowTxt">
|
|
|
|
|
订单信息:{{timeFormat(item.activity.created_at, 'MM月DD日')}}{{getHm(item.activity.start_time)}}-{{getHm(item.activity.end_time)}}丨{{item.total}}位观众</text>
|
|
|
|
|
@ -138,7 +142,7 @@
|
|
|
|
|
},
|
|
|
|
|
getHm(val) {
|
|
|
|
|
if (val) {
|
|
|
|
|
return this.$moment(val).format("hh:MM")
|
|
|
|
|
return this.$moment(val).format("HH:mm")
|
|
|
|
|
} else return "";
|
|
|
|
|
},
|
|
|
|
|
timeFormat(val, format) {
|
|
|
|
|
|