<navbar home back text="填写报名信息"></navbar>
<view style="height:{{navigationBarHeight}} "></view>
<view  >
  <form bindsubmit="formSubmit">
    <view style='padding-bottom:100rpx;'>
      <view class='section' wx:if="{{selectques.name==1}}">
        <text>姓名</text>
        <input wx:if="{{username}}" name="username" type="text" placeholder='{{username}}' />
        <input wx:if="{{!username}}" name="username" type="text" placeholder='请填写名字' />
      </view>

      <view class='section' wx:if="{{selectques.phone==1}}">
        <text>手机号</text>
        <input wx:if="{{phone}}" name="phone" type="number" placeholder='{{phone}}'  disabled/>
        <input wx:if="{{!phone}}" name="phone" type="number" placeholder='请填写手机号' disabled />
      </view>

      <view class='section' wx:if="{{selectques.number==1}}">
        <text>人数</text>
        <input wx:if="{{number}}" name="number" type="number" placeholder='{{number}}' />
        <input wx:if="{{!number}}" name="number" type="number" placeholder='请填写人数' />
      </view>

      <view class='section' wx:if="{{selectques.age==1}}">
        <text>年龄</text>
        <input wx:if="{{age}}" name="age" type="number" placeholder='{{age}}' />
        <input wx:if="{{!age}}" name="age" type="number" placeholder='请填写年龄' />
      </view>

      <view class="section sec" wx:if="{{selectques.birth==1}}">
        <text>生日</text>
        <picker mode="date" value="{{date}}" start="1930-09-01" end="2017-09-01" bindchange="bindDateChange">
          <input wx:if="{{flag==1}}" class='input' placeholder='请输入生日' disabled/>
          <view wx:if="{{flag==2}}" class="picker"> {{date}}</view>
        </picker>
      </view>
      <view class="section section_gap" wx:if="{{selectques.sex==1}}">
        <text>性别</text>
        <radio-group class="radio-group" bindchange="radioChange">
          <radio class="radio" wx:for-items="{{items}}" wx:key="name" value="{{item.name}}" checked="{{item.checked}}">
            <text>{{item.value}}</text>
          </radio>
        </radio-group>
      </view>
      <view class='address' bindtap='address' wx:if="{{selectques.address==1}}">
        <text>住址</text>
        <view class='names' wx:if="{{address}}">{{address}}</view>
        <view class='names' wx:if="{{!address}}">请选择地址</view>
      </view>
      <view class='ques' wx:if="{{question&&question.length>0}}">
        <!-- <text class='questionTitle'>报名信息收集</text> -->
        <view class='answer' wx:for="{{question}}" wx:key="index">
          <text class="answerText">{{item.ques}}</text>
          <textarea class="answerTextarea" name="answer{{index}}" bindinput='change' type="textarea" placeholder='请填写您的回答'></textarea>
        </view>
      </view>
      <view wx:if="{{useImg==1}}">
        <view class='quesTitle'>{{imgDetail}}</view>
        <view class='up-img' wx:if="{{showReceiptUrl}}">
          <image src='{{receiptUrl}}' mode="widthFix"></image>
        </view>
        <view class='camera' bindtap='uploadImg'>
          <text>+</text>
        </view>
      </view>
    </view>
    <button class='btn' formType="submit" disabled='{{disabled}}' hover-class='active'>提交</button>
  </form>
</view>