modifyPersonInformation.wxml 3.6 KB
<!--pages/my/modifyPersonInformation/modifyPersonInformation.wxml-->
<view class='page'>
  <view class='banner'>
    <view class='iconfont icon-fanhui' catchtap='get_my'></view>
    <view class='coupons'>修改个人信息</view>
  </view>

  <view class='content_item'>
    <view class='item_list' bindtap='changePhoto'>
      <view class='content_title'>头像</view>
      <view class='person_information_box'>
        <view class='head_portrait'>
          <image src='{{photoPath}}'></image>
        </view>
        <view class='iconfont icon-jinru'></view>
      </view>
    </view>

    <view class='item_list' bindtap='getamend_nickname'>
      <view class='content_title'>昵称</view>
      <view class='person_information_box'>
      <view>
        <view class='content_information' wx:if='{{!nick_names}}'>{{nick_name}}</view>
        <view class='content_information' wx:else>{{nick_names}}</view>
        </view>
        <view class='iconfont icon-jinru'></view>
      </view>
    </view>

    <view class='item_list'>
      <view class='content_title'>性别</view>
      <view class='person_information_box'>
        <!-- <view class='content_information'>男</view> -->
        <!-- <picker class='content_information'>
          <text>男</text>
        </picker> -->
        <view>
        <view class='content_information' bindtap='changeSex' wx:if='{{choose==10}}'>{{sex}}</view>
         <view class='content_information' bindtap='changeSex' wx:elif='{{choose==1}}'>男</view>
         <view class='content_information' bindtap='changeSex' wx:elif='{{choose==2}}'>女</view>
         </view>
        <view class='iconfont icon-jinru'></view>

      </view>
    </view>

    <view class='item_list'>
      <view class='content_title'>生日</view>
      <view class='person_information_box'>
        <!-- <picker mode="date" class='content_information'>
          <text>{{user.birthday}}</text>
        </picker> -->
        <picker mode="date" value="{{date}}" start="1920-01-01" end="2019-06-01" bindchange="bindDateChange"  class='content_information'>
    <view>{{birthday}}</view>
  </picker>
        <view class='iconfont icon-jinru'></view>
      </view>
    </view>

    <view class='item_list' bindtap='getamend_nickphone'>
      <view class='content_title'>手机号</view>
      <view class='person_information_box'>
        <!-- <view class='content_information'>男</view> -->
        <view class='content_information'>{{phone}}</view>
        <view class='iconfont icon-jinru'></view>
      </view>
    </view>

 <view class='new_address_btn' bindtap='confirmUpdate'>确认修改</view>

  </view>

</view>
<view wx:if='{{flag}}' class='mask'>
        <view class='show_change_sex'>
                <view class='choose_sex'>选择性别</view>
                <view class='choose'>
                        <view class='man'>
                                <view class='xuanzhong'>
                                              <view class='iconfont icon-weixuanzhong {{choose===1?"active":""}}' bindtap='choose1'></view>
                                </view>
                                <view class='nan'>男</view>
                        </view>
                        <view class='man'>
                                <view class='xuanzhong'>
                                              <view class='iconfont icon-weixuanzhong {{choose===2?"active":""}}' bindtap='choose2'></view>
                                </view>
                                <view class='nan'>女</view>
                        </view>
                </view>
                <view class='confirm' bindtap='hide'>确定 </view>
        </view>
</view>