<view class="swiper-cont container-fill">
	<swiper class="imageContainer" bindchange="handleChange" previous-margin="50rpx" next-margin="50rpx" circular autoplay>
		<block wx:for="{{lbArr}}" wx:key="index">
			<swiper-item class="item">
				<image class="itemImg {{currentIndex == index ? 'active': ''}}" src="{{item.src}}"></image>
			</swiper-item>
		</block>
	</swiper>
	<image src="../../images/show.png" style="width:750rpx;margin-left:0rpx;height:200rpx;margin-top:20rpx" bindtap="goShare"></image>
	<view style="display:flex;margin-left:30rpx;margin-top:30rpx;margin-bottom:30rpx">
		<view style='width:10rpx;height:45rpx;background-color:#986aff;margin-right:20rpx;border-radius:10rpx'></view>近期活动
	</view>
	<!-- <image wx:if='{{arr.length==0&&arr1.length==0}}' src="../../images/empty.png" style="width:320rpx;height:320rpx;margin-left:215rpx"></image>
	<view wx:if='{{arr.length==0&&arr1.length==0}}' style="color:#999;width:750rpx;height:320rpx;top:550rpx;left:0rpx;text-align:center">近期还没有活动呦</view> -->

	<image wx:if='{{arr.length==0}}' bindtap="goActiveDefault" style="width:750rpx;height:280rpx" src="../../images/activeDefault0.jpg"></image>
	<view wx:for="{{arr}}" wx:key="index" class="box" bindtap="goActive" data-activeStatus='{{item.activeStatus}}' data-id='{{item.id}}' data-openId='{{item.openId}}'>
		<view class="top">
			<image src="../../images/logo.png" style="width:80rpx;height:75rpx;border-radius:20rpx"></image>
			<view class="text">
				<view class="title">{{item.title}}</view>
				<view class="remark">{{item.remark}}</view>
			</view>
			<view wx:if="{{item.openId==null&&item.activeStatus!=-1}}" class="btn btn1">报名</view>
			<view wx:if="{{item.enterStatus==0&&item.activeStatus!=-1}}" class="btn btn1">审核中</view>
			<view wx:if="{{item.enterStatus==1&&item.activeStatus!=-1}}" class="btn btn1">审核通过</view>
			<view wx:if="{{item.enterStatus==-1&&item.activeStatus!=-1}}" class="btn btn1">审核失败</view>
			<view wx:if="{{item.activeStatus==-1}}" class="btn btn1">已结束</view>
		</view>
		<image src="{{item.faceUrl}}" class="img2"></image>
		<view class="p1">
			<van-icon name="clock-o" color="#a267ff" size="35rpx" />
			<view style="margin-left:15rpx">活动时长：{{item.activeTime}}</view>
		</view>
		<view class="p1">
			<van-icon name="location-o" color="#a267ff" size="35rpx" />
			<view style="margin-left:15rpx">活动地点：{{item.address}}</view>
		</view>
	</view>
	<!-- <view wx:for="{{arr1}}" wx:key="index" class="box" bindtap="goActive" data-id='{{item.id}}' data-openId='{{item.openId}}'>
			<view class="top">
				<image src="../../images/logo.png" style="width:80rpx;height:75rpx;border-radius:20rpx"></image>
				<view class="text">
					<view class="title">{{item.title}}</view>
					<view class="remark">{{item.remark}}</view>
				</view>
				<view wx:if="{{item.openId==null}}" class="btn btn1">报名</view>
				<view wx:if="{{item.enterStatus==0}}" class="btn btn1">审核中</view>
				<view wx:if="{{item.enterStatus==1}}" class="btn btn1">审核通过</view>
				<view wx:if="{{item.enterStatus==-1}}" class="btn btn1">审核失败</view>
			</view>
			<image src="{{item.faceUrl}}" class="img2"></image>
			<view class="p1">
				<van-icon name="clock-o" color="#a267ff" size="35rpx" />
				<view style="margin-left:15rpx">活动时间：{{item.activeTime}}</view>
			</view>
			<view class="p1">
				<van-icon name="location-o" color="#a267ff" size="35rpx" />
				<view style="margin-left:15rpx">活动地点：{{item.address}}</view>
			</view>
		</view> -->
	<!-- </view> -->
	<view style="margin-bottom:150rpx;position:relative">
		<van-divider customStyle="color: #666666; border-color: #999999; font-size: 28rpx;" contentPosition="center">仅展示最近一个月的数据</van-divider>
	</view>
</view>
<view class="tabbar">
	<view class="tab1" bindtap="goIndex">
		<image src="../../images/active_bar1.png" style="width:40rpx;height:40rpx;padding-top:10rpx"></image>
		<view style="color:#a342ff">首页</view>
	</view>
	<view class="tab1">
		<image src="../../images/unactive_bar2.png" style="width:40rpx;height:40rpx;padding-top:10rpx"></image>
		<button type="primary" id="red" session-from="nickName={{userInfo.nickName}}|avatarUrl={{userInfo.avatarUrl}}" open-type="contact">客服</button>
	</view>
	<view class="tab1" bindtap="goMy">
		<image src="../../images/unactive_bar3.png" style="width:40rpx;height:40rpx;padding-top:10rpx"></image>
		<view>我的</view>
	</view>
</view>
<view wx:if="{{!letterStatus}}" style="width:100vw;height:100vh;background:rgba(0,0,0,0.8);position:fixed;top:0rpx;text-align:center" catchtouchmove="preventTouchMove">
	<image src="../../images/xin.png" class="xin"></image>
	<view>
		<van-icon name="close" color="#fff" size="50rpx" style="margin-top:20rpx" bindtap="closeLetter" />
	</view>
</view>