<!--package_mine/pages/userInfo/index.wxml-->
<view class="form_container">
    <view class="form_item {{formRules.nickname.warning ? 'warning' : ''}}">
        <text><text style="color: red;">*</text>用户名称：</text>
        <view class="value_box">
            <input style="width: 100%;height: 100%;" type="text" maxlength="100" placeholder="请输入您的姓名" placeholder-style="font-size: 24rpx; color: #A6A6A6;" adjust-position="{{true}}" value="{{form.nickname}}"
    data-name="nickname" name="nickname" bindinput="bindValue" />
        </view>
        <text class="tips">请输入用户名称</text>
    </view>
    <view class="upload_images {{formRules.headimgurl.warning? 'warning': ''}}">
        <text><text style="color: red;">*</text>个人头像：</text>
            <view class="image_preview" wx:if="{{form.headimgurl}}">
                <image class="image_item" src="{{form.headimgurl}}" mode="aspectFill">
                </image>
                <div class="close" catchtap="deleteImage"></div>
            </view>
            <view class="upload_image" bindtap="uploadImage" wx:if="{{form.headimgurl.length<1}}">
                <image style="height: 56rpx;width: 56rpx;" mode="widthFix" src="../../../assets/img/upload.png"></image>
            </view>
        <text class="tips">请上传个人头像</text>
    </view>
    <view class="btn_list">
        <view class="btn_item cancel_btn" bindtap="return">返回</view>
        <view class="btn_item submit_btn" bindtap="submit">确定</view>
    </view>

</view>
