<!--pages/operUserInfo/operUserInfo.wxml-->
<view class="pageWrap">
	<!-- 个人信息 -->
	<view class="area shadow">
		<view bindtap="uploadAvatar" class="logo">
			<view class="label">头像</view>
			<view class="content">
				<image class="avatar" wx:if="{{!user.avatar}}" src="../../images/default-avatar.png"></image>
				<image class="avatar" wx:if="{{user.avatar}}" src="{{globalUrl+user.avatar}}"></image>
				<i class="iconfont icon-arrowr"></i>
			</view>
		</view>
		<view bindtap="showNickName" class="lineGroup">
			<view class="lineInner">
				<view class="label">昵称</view>
				<view class="content">
					<view wx:if="{{user.nickName}}" class="text">{{user.nickName}}</view>
					<view wx:if="{{!user.nickName}}" class="placeholderStyle">请输入</view>
				</view>
			</view>
		</view>
		<view class="lineGroup">
			<view class="lineInner">
				<view class="label">姓名</view>
				<view class="content">
					<view class="text">{{userInfo.userName}}</view>
				</view>
			</view>
		</view>
		<picker bindchange="setSex" value="{{sexIndex}}" range="{{sex}}" class="lineGroup">
			<view class="lineInner">
				<view class="label">性别</view>
				<view class="content">
					<view wx:if="{{user.sex}}" class="text">{{sex[sexIndex]}}</view>
					<view wx:if="{{!user.sex}}" class="placeholderStyle">请选择</view>
				</view>
			</view>
		</picker>
		<view class="lineGroup">
			<view class="lineInner">
				<view class="label">预留手机号码</view>
				<view class="content">
					<view class="text">{{userInfo.mobile}}</view>
				</view>
			</view>
		</view>
		<view bindtap="showIntro" class="lineGroup">
			<view class="lineInner">
				<view class="label">个人简介</view>
				<view class="content">
					<view wx:if="{{user.personalProfile}}" class="text textarea">{{user.personalProfile}}</view>
					<view wx:if="{{!user.personalProfile}}" class="placeholderStyle textarea">请输入</view>
				</view>
			</view>
		</view>
	</view>
</view>
<ipx-placeholder></ipx-placeholder>
<customer-modal id="nickName" title="昵称" bindconfirm="getNickName"></customer-modal>
<customer-modal id="intro" title="个人简介" bindconfirm="getIntro"></customer-modal>