<!--pages/ucenter/center/center.wxml-->
<!-- <view class='title'>

</view> -->
<view class="container">
  <view class="user_text">
    <!--<open-data class="userAvatarUrl" bindtap="" type='userAvatarUrl'></open-data>-->
    <view class="userAvatarUrl" bindtap="">
      <image src='{{isLogin&&!userInfo.flag?userInfo.avatar:"/images/userhead.png"}}'></image>
    </view>
    <text class='bold'>{{userInfo.userName}}</text>
  </view>
</view>

<view class='main'>
  <view class='context'>
    <view class='context_input'>
      <view class='input_view'>
        <view class="input_text_view">
          <!-- <image class='account_img' src='/images/account.png'></image> -->
          <text class="input_text">用户名</text>
        </view>
        <input disabled='true' value='{{userInfo.loginName}}'></input>
      </view>
      <view class='input_view'>
        <view class="input_text_view">
          <!-- <image class='man_img' src='/images/man.png'></image> -->
          <text class="input_text">性别</text>
        </view>
        <!-- <input wx:if='{{userInfo.sex==1}}' disabled='true' type='text' placeholder-class='placeholder' value='男'></input>
        <input wx:if='{{userInfo.sex==2}}' disabled='true' type='text' placeholder-class='placeholder' value='女'></input>
        <input wx:if='{{userInfo.sex==3}}' disabled='true' type='text' placeholder-class='placeholder' value='保密'></input> -->
        <picker class="picker" bindchange="inputSex" range-key="text" range="{{sexType}}">
          <text wx:if='{{ sexIndex==null}}'>请选择性别</text>
          <text wx:if='{{ sexIndex!=null}}'>{{sexType[sexIndex-1].text}}</text>
        </picker>
        <view class="zan-ft">
          <image src='/images/enter.png'></image>
        </view>
      </view>
      <view class='input_view'>
        <view class="input_text_view">
          <!-- <image class='email_img' src='/images/email.png'></image> -->
          <text class="input_text">邮箱</text>
        </view>
        <input disabled='true' bindtap="inputEmail" type='text' placeholder-class='placeholder' value='{{!userInfo.email?"去填写":userInfo.email}}'>
        </input>
        <view class="zan-ft">
          <image src='/images/enter.png'></image>
        </view>
      </view>
      <view class='input_view'>
        <view class="input_text_view">
          <text class="input_text">车牌号</text>
        </view>
        <input disabled='true' bindtap="inputCarNum" type='text' placeholder-class='placeholder' value='{{!userInfo.license_number?"去填写":userInfo.license_number}}'>
        </input>
        <view class="zan-ft">
          <image src='/images/enter.png'></image>
        </view>
      </view>
    </view>

<!-- <view style="width: 100%;margin-top:50rpx">
  <ad unit-id="adunit-8eb13875bcf592b0" ad-intervals="30"></ad>
</view> -->
    
    <view class="errorMsg">
      <text>{{errorMsg}}</text>
    </view>

  </view>
</view>