<view class="page">
  <view class='title'>参团信息</view>

  <view class='group'>

    <view class='list'>
      <view class='list-title'>姓名</view>
      <view class='list-content border'>
        <i-input class="row" type="text" bind:change='bindNameChange' value="{{ realName }}" maxlength="30" placeholder="请输入姓名" i-class="input"/>
      </view>
    </view>

    <view class='list'>
      <view class='list-title'>年龄</view>
      <view class='list-content border'>
        <i-input value="{{ age }}" bind:change='bindAgeChange' type="number" placeholder="1998" maxlength="4" i-class="input"/>
      </view>
    </view>

    <view class='list'>
      <view class='list-title'>性别</view>
      <view class='list-content border'>
        <picker bindchange="bindSexChange" value="{{sex_index}}" range="{{sex}}">
          <view class="picker">
            {{sex[sex_index]}}
          </view>
        </picker>
      </view>
    </view>    

    <view class='list'>
      <view class='list-title'>手机号码</view>
      <view class='list-content border'>
        <i-input value="{{ iphone }}" bind:change='bindPhoneInput' type="number" maxlength="11" placeholder="请输入手机号" i-class="input"/>
        <view bindtap="sendCode" class='label yzm'>{{ djs || '获取验证码'}}</view>
      </view>
    </view>

    <view class='list' wx:if='{{!sid}}' >
      <view class='list-title'>验证码</view>
      <view class='list-content border'>
        <i-input i-class="input" value="{{ yzm }}"  type="number" maxlength="4" bind:change='bindCodeInput'/>        
      </view>
    </view>
  </view>

  <i-button i-class="radius distance primary" bind:click="handleClick" type="primary" shape="circle">保存</i-button>

</view>