<!--pages/newCircleEvent/newCircleEvent.wxml-->
<custom-navi text="活动发布" back="{{true}}" home="{{true}}"></custom-navi>
<view class='newCircleEvent'>
  <view class='con_newCircleEvent'>
    <view>
      <view class='textTitle'>活动标题</view>
      <input class="inputTextBox" placeholder='请输入活动标题' bindinput="inputTitle" value='{{title}}'></input>
    </view>
    <view>
      <view class='textTitle'>活动描述</view>
      <textarea placeholder='请输入活动描述' class="inputTextAreaBox" bindinput="inputComment" value='{{comment}}'></textarea>
    </view>
    <view>
      <view class='textTitle'>活动开始时间</view>
      <view class="timePickerRow">
        <picker class="inputDateBox" mode="date" start="{{calenderStart}}" end="" bindchange="selectStartDate">
          <input style="width:100%;height:20px;line-height:20px;" placeholder='请选择日期' value='{{startDate}}'></input>
        </picker >
        <picker class="inputTimeBox" mode="time" start="" end="" bindchange="selectStartTime">
          <input style="width:100%;height:20px;line-height:20px;" placeholder='请选择时间' value='{{startTime}}'></input>
        </picker >
      </view>
    </view>
    <view>
      <view class='textTitle'>活动结束时间</view>
      <view class="timePickerRow">
        <picker class="inputDateBox" mode="date" start="{{calenderStart}}" end="" bindchange="selectFinishDate">
          <input style="width:100%;height:20px;line-height:20px;" placeholder='请选择日期' value='{{finishDate}}'></input>
        </picker >
        <picker class="inputTimeBox" mode="time" start="" end="" bindchange="selectFinishTime">
          <input style="width:100%;height:20px;line-height:20px;" placeholder='请选择时间' value='{{finishTime}}'></input>
        </picker >
      </view>
    </view>
    <view>
      <view class='textTitle'>报名截止时间</view>
      <view class="timePickerRow">
        <picker class="inputDateBox" mode="date" start="{{calenderStart}}" end="" bindchange="selectEnrollDate">
          <input style="width:100%;height:20px;line-height:20px;" placeholder='请选择日期' value='{{enrollDate}}'></input>
        </picker >
        <picker class="inputTimeBox" mode="time" start="" end="" bindchange="selectEnrollTime">
          <input style="width:100%;height:20px;line-height:20px;" placeholder='请选择时间' value='{{enrollTime}}'></input>
        </picker >
      </view>
    </view>
<!--
    <view>
    <view class='textTitle'>活动时长</view>
      <input class="inputTextBox" placeholder='请输入活动时长' bindinput="inputTimeLength" value='{{timeLength}}'></input>
    </view>
-->
    <view class='frontImageView'>
      <view class='textTitle'>封面图片</view>
      <view class='frontImage'>
        <van-uploader file-list="{{ fileList }}" 
            max-count="1"
            multiple
            bind:after-read="afterRead"
            bind:delete="delete"/>
      </view>
    </view>
    <view style="margin-top:30px">
      <view class='textTitle'>活动地点</view>
      <input class="inputTextBox" placeholder='请输入完整的活动地点' bindinput="inputPosition" value='{{position}}'></input>
    </view>
    <view>
      <view class='textTitle'>允许社会人士参加</view>
      <van-switch style="margin-left:6%;" checked="{{ includeSocialUser }}" bind:change="onChangeIncludeSocialUser" size="20px" />
    </view>
    <view>
      <view class='textTitle'>最大人数(0为不限人数)</view>
      <input class="inputTextBox" placeholder='请输入最大人数' bindinput="inputMaxMember" value='{{maxMember}}'></input>
    </view>
    <view>
      <view class='textTitle'>负责人姓名</view>
      <input class="inputTextBox" placeholder='请输入负责人姓名' bindinput="inputLeaderName" value='{{leaderName}}'></input>
    </view>
    <view>
      <view class='textTitle'>负责人联系方式</view>
      <input class="inputTextBox" placeholder='请输入负责人联系方式' bindinput="inputLeaderContact" value='{{leaderContact}}'></input>
    </view>
    <view>
      <view class='textTitle'>集合时间</view>
      <view class="timePickerRow">
        <picker class="inputDateBox" mode="date" start="{{calenderStart}}" end="" bindchange="selectVenueDate">
          <input style="width:100%;height:20px;line-height:20px;" placeholder='请选择日期' value='{{venueDate}}'></input>
        </picker >
        <picker class="inputTimeBox" mode="time" start="" end="" bindchange="selectVenueTime">
          <input style="width:100%;height:20px;line-height:20px;" placeholder='请选择时间' value='{{venueTime}}'></input>
        </picker >
      </view>
    </view>
    <view>
      <view class='textTitle'>集合地点</view>
      <input class="inputTextBox" placeholder='请输入完整集合地点' bindinput="inputVenue" value='{{venue}}'></input>
    </view>
    <text class='applyButton' bindtap="applyEvent">提交审核</text>
  </view>
  <van-notify id="van-notify" />
</view>
