info.wxml 3.7 KB
<!--pages/addAddress/addAddress.wxml-->
<form bindsubmit='formSubmit'>
  <view class='content_item'>
    <view class='item_list' style='padding:10rpx 0'>
      <view class='list_title'>
        <image class='head_img' src='{{avatar}}'></image>
      </view>
      <view class='list_input' bindtap='chooseImg'>
        <input type='number' placeholder='编辑头像' disabled='true'></input>
        <view class='iconfont icon-fanhui'></view>
      </view>
    </view>
    <view class='item_list'>
      <view class='list_title'>
        <text>昵称</text>
      </view>
      <!-- bindtap='showMask' -->
      <view class='list_input'>
        <input type='number' placeholder='请输入' name='user_name' value='{{user_name}}' bindinput='getName'></input>
        <view class='iconfont icon-fanhui'></view>
      </view>
    </view>
  </view>
  <view class='content_item'>

    <view class='item_list'>
      <view class='list_title'>
        <text>性别</text>
      </view>
      <view class='list_input'>
        <picker class='chassify_picker' range='{{sex_array}}' value='{{sex_index}}' bindchange='setSex'>
          <input placeholder='请选择' value='{{sex_array[sex_index]}}' disabled='true'></input>
        </picker>
        <view class='iconfont icon-fanhui'></view>
      </view>
    </view>
    <view class='item_list'>
      <view class='list_title'>
        <text>出生日期</text>
      </view>
      <view class='list_input'>
        <picker mode='date' bindchange='setTime'>
          <input type='text' placeholder='未选择' value='{{birthday}}' disabled='true'></input>
        </picker>
        <view class='iconfont icon-fanhui'></view>
      </view>
    </view>
    <view class='item_list'>
      <view class='list_title'>
        <text>星座</text>
      </view>
      <view class='list_input'>
        <picker range='{{constellation_array}}' value='{{index}}' bindchange='setInfo'>
          <input type='text' placeholder='未选择' name='constellation' value='{{constellation}}' disabled='true'></input>
        </picker>
        <view class='iconfont icon-fanhui'></view>
      </view>
    </view>
  </view>
  <view class='content_item'>
    <view class='item_list'>
      <view class='list_title'>
        <text>身高</text>
      </view>
      <view class='list_input'>
        <input type='number' placeholder='请填写' name='stature' value='{{stature}}'></input>
        <view class='iconfont icon-fanhui'></view>
      </view>
    </view>
    <view class='item_list' style='border:0'>
      <view class='list_title'>
        <text>体重</text>
      </view>
      <view class='list_input'>
        <input type='number' placeholder='请填写' name='weight' value='{{weight}}'></input>
        <view class='iconfont icon-fanhui'></view>
      </view>
    </view>
    <view class='info_box'>
      <view class='list_title textarea_title'>
        <text>个性签名</text>
      </view>
      <view class='list_textarea'>
        <textarea placeholder='记录此刻的心情' maxlength='{{max}}' value='{{signature}}' bindinput='getText'>
          <text class='words_num'>{{current_num}}/{{max}}</text>
        </textarea>
      </view>
    </view>
  </view>
  <!-- 底部按钮  -->
  <view class='null_box'></view>
  <button class='save_address_btn' form-type='submit'>确定</button>
</form>

<!-- <view class='mask_box' wx:if='{{mask_state}}'>
  <view class='popup_box'>
    <view class='popup_title'>昵称</view>
    <view class='popup_input'><input placeholder='可妮兔'></input></view>
    <view class='popup_btn_box'>
      <view class='popup_btn' bindtap='cancleMak'>取消</view>
      <view class='popup_btn' bindtap='cancleMak'>确定</view>
    </view>
  </view>
</view> -->