刘翔宇-旅管家 3 years ago
parent 3c9ff0d9f5
commit fd1e3f5686

@ -20,10 +20,17 @@
<view class="activityBox-row flex-row justify-between"> <view class="activityBox-row flex-row justify-between">
<view class="tag tag_green activityBox_btn"> <view class="tag tag_green activityBox_btn">
<text>{{isUnde(item.type_name)}}</text> <text>{{isUnde(item.type_name)}}</text>
</view> </view>
<view class="tag" :class="{activityBox_btn:item.isCanBook}"> <block v-if="item.orders_count==item.total">
<text>{{item.isCanBook?"立即报名":"不可报名"}}</text> <view class="tag">
</view> <text>已约满</text>
</view>
</block>
<block v-else>
<view class="tag" :class="{activityBox_btn:item.isCanBook}">
<text>{{item.isCanBook?"立即报名":"不可报名"}}</text>
</view>
</block>
</view> </view>
<view class="activityBox-row"> <view class="activityBox-row">

@ -63,7 +63,7 @@
<rich-text style="text-indent: 2em;font-size: 28rpx;" :nodes="list.content"></rich-text> <rich-text style="text-indent: 2em;font-size: 28rpx;" :nodes="list.content"></rich-text>
</view> </view>
</view> </view>
<view class="infofooter flex-row" v-if="list.isCanBook"> <view class="infofooter flex-row" v-if="list.isCanBook&&list.total!=list.orders_total">
<view style="margin-right: 14rpx;flex: 1;"> <view style="margin-right: 14rpx;flex: 1;">
<u-button type="primary" @click="tobook('team')"></u-button> <u-button type="primary" @click="tobook('team')"></u-button>
</view> </view>

@ -9,14 +9,18 @@
<block v-for="(item,index) in listOrder" :key="index"> <block v-for="(item,index) in listOrder" :key="index">
<view class="orderBox" :class="{'cancelBox':item.status==0}" @click="toinfo(item.id)"> <view class="orderBox" :class="{'cancelBox':item.status==0}" @click="toinfo(item.id)">
<view class="orderBoxTitle flex-row"> <view class="orderBoxTitle flex-row">
<text class="orderBoxTitleTxt">{{item.type==1?"团队预约":"个人预约"}}</text> <text class="orderBoxTitleTxt">{{item.type==1?"团队预约":"个人预约"}}</text>
<view <view :class="item.status!=1?'cancelStatus orderBoxStatus':'orderBoxStatus'">
:class="item.status!=1?'cancelStatus orderBoxStatus':'orderBoxStatus'">{{item.status_name}} {{item.status_name}}
</view> </view>
</view> </view>
<view class="orderBoxInfo flex-col"> <view class="orderBoxInfo flex-col">
<view class="orderBoxInfoRow flex-row"> <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="iconfont icon-youkexuzhi"></text>
<text class="orderBoxInfoRowTxt"> <text class="orderBoxInfoRowTxt">
订单信息{{timeFormat(item.activity.created_at, 'MM月DD日')}}{{getHm(item.activity.start_time)}}-{{getHm(item.activity.end_time)}}{{item.total}}位观众</text> 订单信息{{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) { getHm(val) {
if (val) { if (val) {
return this.$moment(val).format("hh:MM") return this.$moment(val).format("HH:mm")
} else return ""; } else return "";
}, },
timeFormat(val, format) { timeFormat(val, format) {

@ -66,10 +66,10 @@
<view class="imgsname"> <view class="imgsname">
<text class="orderBoxTitleTxt">{{item.name}}</text> <text class="orderBoxTitleTxt">{{item.name}}</text>
<text class="orderBoxTitleTxt" style="font-size: 28rpx;" v-if="item.is_open==1"> <text class="orderBoxTitleTxt" style="font-size: 28rpx;" v-if="item.is_open==1">
使用身份证 凭身份证参加活动
</text> </text>
<text style="font-size: 28rpx;" class="orderBoxTitleTxt" v-if="item.is_open==0"> <text style="font-size: 28rpx;" class="orderBoxTitleTxt" v-if="item.is_open==0">
不可使用身份证 可凭二维码参加活动
</text> </text>
</view> </view>

Loading…
Cancel
Save