|
|
|
|
@ -20,22 +20,25 @@
|
|
|
|
|
<view class="activityBox-row flex-row justify-between">
|
|
|
|
|
<view class="tag tag_green activityBox_btn">
|
|
|
|
|
<text>{{isUnde(item.type_name)}}</text>
|
|
|
|
|
</view>
|
|
|
|
|
<block v-if="item.orders_count==item.total">
|
|
|
|
|
<view class="tag">
|
|
|
|
|
<text>已约满</text>
|
|
|
|
|
</view>
|
|
|
|
|
</block>
|
|
|
|
|
<block v-else>
|
|
|
|
|
<view class="tag" :class="{activityBox_btn:item.isCanBook}">
|
|
|
|
|
<text>{{item.isCanBook?"立即报名":"不可报名"}}</text>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
<block v-if="item.orders_count==item.total">
|
|
|
|
|
<view class="tag" v-if="item.isCanBook">
|
|
|
|
|
<text>已约满</text>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="tag" v-else>
|
|
|
|
|
<text>{{item.rate_name}}</text>
|
|
|
|
|
</view>
|
|
|
|
|
</block>
|
|
|
|
|
<block v-else>
|
|
|
|
|
<view class="tag" :class="{activityBox_btn:item.isCanBook}">
|
|
|
|
|
<text>{{item.isCanBook?"立即报名":"不可报名"}}</text>
|
|
|
|
|
</view>
|
|
|
|
|
</block>
|
|
|
|
|
</view>
|
|
|
|
|
|
|
|
|
|
<view class="activityBox-row">
|
|
|
|
|
<text class="icon-shijian iconfont"></text>
|
|
|
|
|
<text>活动时间:{{getHm(item.start_time)}}-{{getHm(item.end_time)}}</text>
|
|
|
|
|
<text>活动时间:{{timeFormat(item.start_time,"yyyy年MM月DD日")}} {{getHm(item.start_time)}}-{{getHm(item.end_time)}}</text>
|
|
|
|
|
|
|
|
|
|
</view>
|
|
|
|
|
<!-- <view class="activityBox-row">
|
|
|
|
|
@ -139,8 +142,11 @@
|
|
|
|
|
},
|
|
|
|
|
getHm(val) {
|
|
|
|
|
if (val) {
|
|
|
|
|
return this.$moment(val).format("HH:mm:ss")
|
|
|
|
|
return this.$moment(val).format("HH:mm")
|
|
|
|
|
} else return "";
|
|
|
|
|
},
|
|
|
|
|
timeFormat(val, format) {
|
|
|
|
|
return this.$moment(val).format(format)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|