<!--pages/activity/activity.wxml-->
<!-- <import src="../../../wxParse/wxParse.wxml" /> -->
<view class="all">
	<view class="member">
		<view class="tool">
			<view class="dt" wx:if="{{thumb}}">
				<image src="{{thumb}}" mode='widthFix' />
			</view>
			<view class="dt" wx:if="{{!thumb}}">
				<image src="https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/image.png" mode='widthFix' />
			</view>
		</view>
		<van-cell-group>
			<van-cell title="活动介绍" value="查看详情" is-link bind:click="showIntro" />
		</van-cell-group>
		<diyfrom params="{{'returnData'}}" datas="{{form_id}}" wx:if="{{form_id && !is_enrol}}" desThumb="{{false}}"
			memberBtn="{{false}}" bindgofunarr="dfsave" class="diyfrom"></diyfrom>
		<view class="btn" wx:if="{{!is_enrol}}">
			<view class="button" catchtap="submit">提交</view>
		</view>
		<view wx:else class="btn" >
			<view class="button" catchtap="goDetail" style="background-color: #07c160;">已报名，查看报名信息 </view>
		</view>
	</view>
</view>
<van-popup custom-style="width:100%;height:100%;" show="{{intro}}" position="right" overlay="{{false}}">
	<view class="agreementContent">
		<van-nav-bar title="活动详情" left-text="" right-text="" left-arrow bind:click-left="showIntroClose" />
		<view class="msgbox">
			<!-- <block wx:if="{{article.nodes}}">
				<template is="wxParse" data="{{wxParseData:article.nodes}}" />
			</block>
			<block wx:else>
				<rich-text nodes="{{conference.content}}"></rich-text>
			</block> -->
			<!-- <rich-text nodes="{{conference.content}}"></rich-text> -->
			<mp-html content="{{conference.content}}"></mp-html>
		</view>
	</view>
</van-popup>
<block wx:for="{{diydata}}" wx:key="index">
	<block wx:if="{{item.type == 'diyselect'}}">
		<van-action-sheet show="{{item.diysishow}}" data-index="{{index}}" actions="{{item.sitem}}" bind:close="sitemClose"
			bind:select="sitemSelectBtn" data-idex="{{index}}" cancel-text="取消" bind:cancel="sitemClose" />
	</block>
</block>
<block wx:for="{{diydata}}" wx:key="index">
	<block wx:if="{{item.type == 'diycity'}}">
		<view class="b-mask {{item.showAdd}}" data-idex="{{index}}" bindtap="_closeDateLw"></view>
		<view class="dateBe {{item.showAdd}}">
			<view class="head">
				<view class="ll" data-idex="{{index}}" bindtap="_closeDateLw">取消</view>
				<view class="rr" data-idex="{{index}}" bindtap="resultAdd">确定</view>
			</view>
			<view class="main">
				<picker-view indicator-style="height: 50px;" style="width: 100%; height: 300px;"
					value="{{[pickerValue[0],pickerValue[1],pickerValue[2]]}}" bindchange="bindChange">
					<picker-view-column id="provinceData">
						<view wx:for="{{provinceData}}" wx:for-index="pidx" wx:key="{{pidx}}" style="line-height: 50px">
							{{item.areaname}}</view>
					</picker-view-column>
					<picker-view-column id="cityData">
						<view wx:for="{{cityData}}" wx:for-index="pidx" wx:key="{{pidx}}" style="line-height: 50px">
							{{item.areaname}}</view>
					</picker-view-column>
					<picker-view-column id="districtData">
						<view wx:for="{{districtData}}" wx:for-index="pidx" wx:key="{{pidx}}" style="line-height: 50px">
							{{item.areaname}}</view>
					</picker-view-column>
				</picker-view>
			</view>
		</view>
	</block>
</block>
<block wx:for="{{diydata}}" wx:key="index">
	<block wx:if="{{item.type == 'diydate'}}">
		<van-popup position="bottom" show="{{item.timeShow}}" data-idex="{{index}}" bind:close="PickerClose">
			<van-datetime-picker type="date" value="{{currentDate}}" data-idex="{{index}}" bind:cancel="PickerClose"
				bind:confirm="birthdayconfirm" bind:input="PickerChange" min-date="{{startDate}}" />
		</van-popup>
	</block>
</block>
