<view class="page">
  <view class='toast-box' hidden='{{ifName}}'>
    <view class='toastbg'></view>
    <view class='showToast'>
      <view class='toast-title'>
        <text>修改{{name}}</text>
      </view>
      <view class='toast-main'>
        <view class='toast-input'>
          <input placeholder='请输入{{name}}' value="{{name=='姓名'? memberInfo.nickname:memberInfo.post}}"
            bindinput='setValue' data-name='stuEidtName'></input>
        </view>
      </view>
      <view class='toast-button'>
        <view class='button1'>
          <button catchtap='cancel'>取消</button>
        </view>
        <view class='button2'>
          <button catchtap='confirm'>确定</button>
        </view>
      </view>
    </view>
  </view>
  <view style="padding: 0 24rpx;background:white;border-radius: 20rpx;margin-top: 24rpx">
    <view style="padding:4% 0;background:white;display:flex;border-bottom:1rpx solid #E5E5E5;" bindtap="navCropper">
      <view style="font-size:28rpx;width:24%;line-height: 100rpx;">头像</view>
      <view style="font-size:28rpx;width:70%;text-align:right">
        <image src="{{memberInfo.avatar? memberInfo.avatar:'/images/t.jpg'}}" mode="widthFix"
          style="width:100rpx;height:100rpx;border-radius:10rpx;">
        </image>
      </view>
      <view style="width:6%;line-height: 100rpx;text-align:right">
        <text class="iconfont iconyou" style="font-size:32rpx;color:#B2B2B2"></text>
      </view>
    </view>
    <view class="listBox" bindtap='change' data-name="姓名">
      <view style="width:24%;">姓名</view>
      <view style="width:70%;text-align:right;color:#888888">{{memberInfo.nickname}}</view>
      <view style="width:6%;text-align:right">
        <text class="iconfont iconyou" style="font-size:28rpx;color:#B2B2B2"></text>
      </view>
    </view>
    <view class="listBox">
      <view style="width:24%;">性别</view>
      <picker bindchange="sexChange" value="{{sexindex}}" range="{{sex}}"
        style="width:70%;text-align:right;color:#888888">
        <view>
          {{sex[sexindex]}}
        </view>
      </picker>
      <view style="width:6%;text-align:right">
        <text class="iconfont iconyou" style="font-size:28rpx;color:#B2B2B2"></text>
      </view>
    </view>
    <!-- <view class="listBox" bindtap='change' data-name="职务">
      <view style="width:24%;">职务</view>
      <view style="width:70%;text-align:right;color:#888888">{{memberInfo.post? memberInfo.post:'无'}}</view>
      <view style="width:6%;text-align:right">
        <text class="iconfont iconyou" style="font-size:28rpx;color:#B2B2B2"></text>
      </view>
    </view> -->
    <view class="listBox">
      <view style="width:24%;">园区</view>
      <picker bindchange="parkChange" name="park" value="{{parkindex}}" range="{{park}}">
        <text class="picker-txt">{{park[parkindex]}}</text>
      </picker>
      <view style="width:6%;text-align:right">
        <text class="iconfont iconyou" style="font-size:28rpx;color:#B2B2B2"></text>
      </view>
    </view>
    <!-- <view class="listBox" style="border:none;">
      <view style="width:24%;">公司</view>
      <view style="width:70%;text-align:right;color:#888888">{{memberInfo.customer.name? memberInfo.customer.name:'无'}}
      </view>
      <view style="width:6%;text-align:right">
        <text class="iconfont iconyou" style="font-size:28rpx;color:#B2B2B2"></text>
      </view>
    </view> -->
  </view>
  <button class="exitBtn" bindtap="exitaccount">退出登录</button>
</view>