<view class="setupItem">
    <view class="label" bindtap="updImg" data-type="avatar">
        <view class="label-name">
            <image class="label-name-img" src="https://cdn.shuiganying.com/images/2023/04/04/92bfc09706bc88dcb1dfe7de959dbb38.png" mode="aspectFill"></image>
            <view class="label-name-text">修改头像</view>
        </view>
        <view class="label-tips">
            <image class="label-name-head" src="{{avatar ? avatar : '/static/imgs/userHead.png'}}" mode="aspectFill"></image>
            <image class="label-name-arrow" src="/static/icons/arrow_more.png" mode="widthFix"></image>
        </view>
    </view>
    <view class="label" bindtap="updImg" data-type="nickname">
        <view class="label-name">
            <image class="label-name-img" src="https://cdn.shuiganying.com/images/2023/04/04/3a96069a287b0de017a3c316b258ba98.png" mode="aspectFill"></image>
            <view class="label-name-text">用户昵称</view>
        </view>
        <view class="label-tips">
            <view class="label-name-nickName">{{nickName}}</view>
            <image class="label-name-arrow" src="/static/icons/arrow_more.png" mode="widthFix"></image>
        </view>
    </view>
</view>

<view class="setupItem">
    <view class="label" bindtap="updImg" data-type="name">
        <view class="label-name">
            <image class="label-name-img" src="https://cdn.shuiganying.com/images/2023/04/11/0bc07e80fdfbdf8116b88a1ea424a7dc.png" mode="aspectFill"></image>
            <view class="label-name-text">真实姓名</view>
        </view>
        <view class="label-tips">
            <view class="label-name-nickName">{{userData.name != '' ? userData.name : '填写真实姓名'}}</view>
            <image class="label-name-arrow" src="/static/icons/arrow_more.png" mode="widthFix"></image>
        </view>
    </view>
    <view class="label">
        <view class="label-name">
            <image class="label-name-img" src="https://cdn.shuiganying.com/images/2023/04/11/43e0d6957a9ed4e82d40569cd46fbf42.png" mode="aspectFill"></image>
            <view class="label-name-text">出生年月</view>
        </view>
        <view class="label-tips">
            <picker class="entry" mode="date" value="{{birthday}}" bindchange="bindDateChange" end="2023-12-31">
                {{birthday != '' ? birthday : '请选择出生年月'}}<image class="label-name-arrow" src="/static/icons/arrow_more.png" mode="widthFix"></image>
            </picker>
        </view>
    </view>
    <view class="label">
        <view class="label-name">
            <image class="label-name-img" src="https://cdn.shuiganying.com/images/2023/04/11/90494a71bcd9197f461d0a72ec9675a1.png" mode="aspectFill"></image>
            <view class="label-name-text">年龄</view>
        </view>
        <view class="label-tips">
            <view class="label-name-nickName">{{userData.age != '' ? userData.age : '-- '}}岁</view>
        </view>
    </view>
    <view class="label" data-type="nickname">
        <view class="label-name">
            <image class="label-name-img" src="https://cdn.shuiganying.com/images/2023/04/11/e46db9876d39e75757080e444bcc4c0a.png" mode="aspectFill"></image>
            <view class="label-name-text">性别</view>
        </view>
        <view class="label-tips">
            <picker class="entry" bindchange="radioChange" value="{{sexIndex}}" range="{{sexArray}}" range-key="name" mode="selector">
                <view class="picker">
                    {{sexArray[sexIndex].name}}
                </view>
            </picker>
            <image class="label-name-arrow" src="/static/icons/arrow_more.png" mode="widthFix"></image>
        </view>
    </view>
</view>

<!-- 修改用户昵称 start -->
<view class="publicBack" wx:if="{{nameState}}"></view>
<view class="publicPop" wx:if="{{nameState}}">
    <view class="publicPop-cont">
        <view class="free-title">{{reviseType == 'nickname' ? '用户昵称' : '真实姓名'}}</view>
        <form bindsubmit="freeform" class="site-form">
            <view class="free-input">
                <input placeholder="限制5个字符" type="text" value="{{nameValue}}"  bindinput="bindinput" name="name"></input>
            </view>
            <view class="publicPop-btn">
                <view class="publicPop-btn-go publicPop-btn-border" bindtap="establish">暂不修改</view>
                <button class="publicPop-btn-go" form-type="submit" disabled="{{disabled}}">确认提交</button>
            </view>
        </form>
    </view>
</view>