<My_GeneralTemplate padBot="30rpx">
    <!-- 用户头像 -->
    <view class="user_header">
        <view class="user_header_msg">
            <!-- 头像 -->
            <view class="user_headPortrait">
                <image wx:if="{{userMessage.attinfos[0].fobsurl}}" src="{{userMessage.attinfos[0].fobsurl}}" mode="aspectFill"></image>
                <image wx:else src="/static/userImage.png" mode="aspectFit"></image>
            </view>
            <!-- 修改头像 -->
            <My_UploadFiles upType="userImage" bind:imageChange="userImageChange" attinfos="{{userMessage.attinfos[0]}}" UploadShow='{{false}}' lineHeight="130rpx">
                <view class="changeImage">修改头像</view>
            </My_UploadFiles>
        </view>
        <view style="height: 2rpx; width: 100%; background-color: #979797; opacity: 0.3;"></view>
    </view>
    <!-- 表单输入区 -->
    <view class="user_message_input">
        <My_GreyRectangleForm title="账号名" required>
            <van-field autosize model:value="{{ fname }}" data-name="fname" bind:focus='inputFocus' bindblur='inputBlur' error="{{errTips.fname}}" input-class="input-class" placeholder="请输入账户名" border="{{ false }}" />
        </My_GreyRectangleForm>
        <My_GreyRectangleForm title="身份/职位" required>
            <van-field autosize model:value="{{ frole }}" data-name="frole" bind:focus='inputFocus' bindblur='inputBlur' error="{{errTips.frole}}" input-class="input-class" placeholder="身份/职位" border="{{ false }}" />
        </My_GreyRectangleForm>
        <My_GreyRectangleForm title="手机" required>
            <van-field autosize disabled model:value="{{ fphonenumber }}" data-name="fphonenumber" bind:focus='inputFocus' bindblur='inputBlur' error="{{errTips.fphonenumber}}" input-class="input-class" placeholder="身份/职位" border="{{ false }}" />
        </My_GreyRectangleForm>
        <My_GreyRectangleForm title="微信">
            <van-field autosize model:value="{{ fwechatno }}" input-class="input-class" placeholder="微信号/手机号" border="{{ false }}" />
        </My_GreyRectangleForm>
        <My_GreyRectangleForm title="地址">
            <van-field autosize model:value="{{ faddress }}" input-class="input-class" placeholder="请输入地址" border="{{ false }}" />
        </My_GreyRectangleForm>
        <My_GreyRectangleForm title="性别">
        </My_GreyRectangleForm>
        <My_GreyRectangleForm title="生日">
            <view style="width: 100%; height: 100%; z-index: 999; position: absolute;" bindtap="setDate"></view>
            <van-field autosize model:value="{{ fbirthdate }}" input-class="input-class" placeholder="点击设置" border="{{ false }}" />
        </My_GreyRectangleForm>
        <My_GreyRectangleForm title="邮箱">
            <van-field autosize model:value="{{ femail }}" input-class="input-class" placeholder="邮箱地址" border="{{ false }}" />
        </My_GreyRectangleForm>
    </view>
</My_GeneralTemplate>
<!-- 时间选择 -->
<My_selectTime id="SetDate" bind:getTimeData="setBbirthday"></My_selectTime>
<!-- 提交按钮 -->
<view class="submit_but">
    <van-button bindtap="submit" custom-class="custom-class" round color="linear-gradient(180deg, #82E0E9 0%, #4BBECF 100%);">保存</van-button>
</view>