<!--pages/conferenceList/conferenceList.wxml-->
<view class="all">
	<van-nav-bar title="活动报名" right-text="报名记录" bind:click-right="goMeetingIndex" />
	<block wx:for="{{conference}}" wx:key="index">
		<view class="member">
			<view class="tool">
				<view class="h3 c-content">{{item.title}}</view>
				<view class="ul">
					<view class="li">
						<view class="dt" wx:if="{{item.thumb}}">
							<image src="{{item.thumb}}" mode='widthFix' />
						</view>
						<view class="dt" wx:if="{{!item.thumb}}">
							<image src="https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/coupon.jpg" mode='widthFix' />
						</view>
					</view>
				</view>
				<view class="h3 message">
					<view class="span">活动时间</view>
					<view class="span right">{{item.starttime}} 至 {{item.endtime}}</view>
				</view>
				<block wx:if="{{item.is_enrol==0}}">
					<view class="h3 c-button" wx:if="{{item.is_end==0&&item.max_limit!=item.total}}">
						<view class="button y8" data-id="{{item.id}}" catchtap="goactivity">我要报名</view>
					</view>
					<view class=" h3 c-button" wx:elif="{{item.is_end==0&&item.max_limit==item.total}}">
						<view class="button y8 disabled">报名人数已满，请等待下次活动或者选择其他活动</view>
					</view>
					<view class="h3 c-button" wx:elif="{{item.is_end==1}}">
						<view class="button y8 disabled">活动已过期，请等待下次活动或者选择其他活动</view>
					</view>
				</block>
				<block wx:elif="{{item.is_enrol==1}}">
					<view class="h3 c-button" wx:if="{{item.is_end==0}}">
						<view class="button" catchtap="onActivityInfo" data-id="{{item.id}}">已报名，点击查看报名信息</view>
					</view>
					<view class="h3 c-button" wx:elif="{{item.is_end==1}}">
						<view class="button disabled" catchtap="onActivityInfo" data-id="{{item.id}}">活动已过期，请等待下次活动或者选择其他活动</view>
					</view>
				</block>
			</view>
		</view>
	</block>
</view>
