<form bindsubmit="formSubmit">
  <view class='section'>
    <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 sec">
    <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">
    <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'>
    <text>住址</text>
    <view class='names' wx:if="{{name}}">{{name}}</view>
    <view class='names' wx:if="{{!name}}">请选择地址</view>
  </view>
  <button class='btn' formType="submit" hover-class='active'>修改会员资料</button>
</form>