|
|
|
|
@ -5,7 +5,8 @@
|
|
|
|
|
<view class="activityBox-top">
|
|
|
|
|
<!-- <image src="../../static/img/img_activity.jpg" style="width: 100%;height: 333rpx;"></image> -->
|
|
|
|
|
<swiper autoplay="true" :interval="4000" :duration="1000" :indicator-dots="true"
|
|
|
|
|
indicator-active-color="rgba(255, 255, 255, 0.7)" indicator-color="rgba(239, 149, 37, 1)" :current="topSwiperIndex" @change="topSwiperTab">
|
|
|
|
|
indicator-active-color="rgba(255, 255, 255, 0.7)" indicator-color="rgba(239, 149, 37, 1)"
|
|
|
|
|
:current="topSwiperIndex" @change="topSwiperTab">
|
|
|
|
|
<swiper-item v-for="(item,index) in list.banners" :key="index">
|
|
|
|
|
<view class="swiper-item">
|
|
|
|
|
<image :src="item.upload.url" mode="aspectFill"></image>
|
|
|
|
|
@ -48,7 +49,7 @@
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="colortext activityBox-row" v-if="list.status==1">
|
|
|
|
|
{{list.status==0?"已结束":"活动进行中"}} (已报名{{list.orders_total}}人)
|
|
|
|
|
{{list.rate_name}} (已报名{{list.orders_total}}人)
|
|
|
|
|
</view>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -62,7 +63,7 @@
|
|
|
|
|
<rich-text :nodes="list.content"></rich-text>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="infofooter flex-row" v-if="list.status!=0">
|
|
|
|
|
<view class="infofooter flex-row" v-if="list.isCanBook">
|
|
|
|
|
<view style="margin-right: 14rpx;flex: 1;">
|
|
|
|
|
<u-button type="primary" @click="tobook('team')">团体预约</u-button>
|
|
|
|
|
</view>
|
|
|
|
|
@ -115,6 +116,7 @@
|
|
|
|
|
},
|
|
|
|
|
loadActiveInfo() {
|
|
|
|
|
var that = this;
|
|
|
|
|
var nt = new Date();
|
|
|
|
|
this.util.request({
|
|
|
|
|
api: '/api/mobile/activity/show',
|
|
|
|
|
data: {
|
|
|
|
|
@ -123,8 +125,9 @@
|
|
|
|
|
longitude: that.longitude
|
|
|
|
|
},
|
|
|
|
|
utilSuccess: function(res) {
|
|
|
|
|
res.isCanBook = that.$moment(nt).isBefore(res.end_plan);
|
|
|
|
|
that.list = res;
|
|
|
|
|
that.list.end_time = that.$moment(res.end_time).format("HH:mm")
|
|
|
|
|
that.list.end_time = that.$moment(res.end_time).format("HH:mm");
|
|
|
|
|
wx.setStorage({
|
|
|
|
|
key: 'activityinfo',
|
|
|
|
|
data: res,
|
|
|
|
|
@ -193,13 +196,16 @@
|
|
|
|
|
padding: 22rpx 25rpx;
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
swiper {
|
|
|
|
|
height: 333rpx
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
swiper image {
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 333rpx;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.colortext {
|
|
|
|
|
color: #D98012
|
|
|
|
|
}
|
|
|
|
|
|