<!--pages/personinfo/personinfo.wxml-->
<!-- 标题栏 -->
<view class="top-bar">
    <!-- 沉浸栏 -->
    <view style="width:100%;height:{{statusBarHeight}}px"></view>
    <!-- 标题栏 这里就可以自定义写标题 -->
    <view class="bar-text">
        <view class="left" bindtap = "updateUser">
            <image class="left-img" src="../../images/icons/left.png"></image>
        </view>
        <text>个人</text>
    </view>
</view>
<view class="container">
    <view class="head-img card">
        <view class="title">头像</view>
        <view class="info" bindtap='upload'>
            <image class="" src="{{imgUrl}}">

            </image>
        </view>
    </view>
    <view class="user-name">
        <view class="title">昵称</view>
        <view class="info">
            <input type="text" value="{{userName}}" name="user" bindblur="changeUserName" />
        </view>
        <image class="icon" src="../../images/icons/next-gray.png">

        </image>
    </view>
    <view class="sex">
        <view class="title">性别</view>
        <view class="info">
            <picker bindchange="bindPickerChange" value="{{sex}}" range="{{array}}" bindchange="changeSex">
                {{array[sex]}}
            </picker>
        </view>
        <image class="icon" src="../../images/icons/next-gray.png">

        </image>
    </view>
    <view class="birth">
        <view class="title">生日</view>
        <view class="info">
            <picker mode="date" value="{{date}}" start="1970-01-01" end="{{endDate}}" bindchange="changeBirth">
                {{birth}}
            </picker>
        </view>
        <image class="icon" src="../../images/icons/next-gray.png">

        </image>

    </view>
    <!-- <view class="tel">
        <view class="title">手机</view>
        <view class="info">
            <input type="text" value="{{tel}}" bindblur = "changeTel"/>
        </view>
        <image class="icon" src="../../images/icons/next-gray.png">

        </image>
    </view> -->
</view>