<mobile-main frameStyle="{{frameStyle}}" bind:back="back">
    <view slot="info" class="main" style="height:{{infoHeight}}px;">
        <form catchsubmit="formSubmit" catchreset="formReset">
            <view class="form" style="height:{{infoHeight-140}}px;">
                <view class="zero">
                    <view class="text">头像</view>
                    <van-uploader class="tou" file-list="{{fileList}}" preview-image="true" max-count="1" bind:after-read="afterRead" />
                </view>
                <view class="one">
                    <view class="text">昵称</view>
                    <input class="input" name="ranks" value="{{form.ranks}}" placeholder="" />
                </view>
                <view class="one">
                    <view class="text">机构</view>
                    <input class="input" name="mechanism" value="{{form.mechanism}}" placeholder="" />
                </view>
                <view class="one">
                    <view class="text">性别</view>
                    <picker name="sex" bindchange="bindPickerChange" value="{{index}}" range="{{form.sex}}">
                        <view class="input">{{form.sex[index]}}</view>
                    </picker>
                </view>
                <view class="one">
                    <view class="text">岗位</view>
                    <input class="input" name="post" value="{{form.post}}" placeholder="" />
                </view>
                <view class="one">
                    <view class="text">手机号</view>
                    <input class="input" name="phone" value="{{form.phone}}" placeholder="" />
                </view>
                <view class="one">
                    <view class="text">邮箱</view>
                    <input class="input" name="email" value="{{form.email}}" placeholder="" />
                </view>
            </view>
            <view class="btn-area">
                <button class="button" formType="submit">保存</button>
            </view>
        </form>
    </view>
</mobile-main>