<!-- LOGO -->
<view class="login_logo">
    <image src="../../static/logo.png" mode="aspectFill"></image>
</view>
<!-- 手机登录 -->
<block wx:if="{{pageType=='login'}}">
    <My_RectangularFrame title="手机登录">
        <view class="form_box">
            <!-- 手机号 -->
            <view class="input_text_box">
                <image class="input_text_img" src="../../static/login/Phone.png" mode="aspectFill"></image>
                <view class="input_text_input">
                    <van-field autosize model:value="{{ fphonenumber }}" data-name="fphonenumber" bind:focus='inputFocus' bindblur='inputBlur' error="{{errTips.fphonenumber}}" type="number" input-class="input-class" placeholder="请输入手机号" border="{{ false }}" />
                </view>
            </view>
            <!-- 验证码 -->
            <view class="input_text_box">
                <image class="input_text_img" src="../../static/login/verificationcode.png" mode="aspectFill"></image>
                <view class="input_text_input">
                    <van-field autosize model:value="{{ password }}" data-name="password" bind:focus='inputFocus' type="number" input-class="input-class" error="{{errTips.password}}" placeholder="请输入验证码" border="{{ false }}" />
                </view>
                <view class="input_text_code" bindtap="getVerifyCode">
                    获取
                </view>
            </view>
        </view>
    </My_RectangularFrame>
</block>
<!-- 个人注册 -->
<block wx:if="{{pageType=='signin'}}">
    <My_RectangularFrame title="欢迎进入布万家">
        <view class="form_box">
            <!-- 手机号 -->
            <view class="input_text_box">
                <image class="input_text_img" src="../../static/login/username.png" mode="aspectFit"></image>
                <view class="input_text_input">
                    <van-field autosize model:value="{{ fname }}" input-class="input-class" placeholder="请输入账号名" border="{{ false }}" />
                </view>
            </view>
            <!-- 验证码 -->
            <view class="input_text_box">
                <image class="input_text_img" src="../../static/login/identity.png" mode="aspectFill"></image>
                <view class="input_text_input">
                    <van-field autosize model:value="{{ frole }}" input-class="input-class" placeholder="请填写身份/职位" border="{{ false }}" />
                </view>
            </view>
        </view>
    </My_RectangularFrame>
</block>
<!-- 商户认证 -->
<block wx:if="{{pageType=='firm'}}">
    <My_RectangularFrame title="成为布万家商户">
        <view class="form_box firm">
            <!-- 品牌名 -->
            <view class="input_text_title">品牌名<text>*</text></view>
            <view class="input_text_box box_mar_bot">
                <view class="input_text_input marLeft">
                    <van-field autosize model:value="{{ fbrand }}" data-name="fbrand" bind:focus='inputFocus' bindblur='inputBlur' error="{{errTips.fbrand}}" input-class="input-class" placeholder="请输入品牌名" border="{{ false }}" />
                </view>
            </view>
            <!-- 品牌LOGO -->
            <view class="input_text_title">品牌LOGO<text>*</text></view>
            <view class="box_mar_bot">
                <My_UploadFiles id="loadFiles" UploadShow="{{true}}" upType="Logo" maxCount='1' logoTips="{{errTips.logoTips}}" size="65px" Tips="请上传logo图片"></My_UploadFiles>
            </view>
            <!-- 经营类目 -->
            <view style="position: relative; margin-bottom: 15rpx;">
                <view class="input_text_title">经营类目<text>*</text></view>
                <view style="width: 100%; height: 50%; z-index: 999; position: absolute;" bindtap="showPop"></view>
                <view class="input_text_box box_mar_bot">
                    <view class="input_text_input marLeft">
                        <van-field autosize model:value="{{ showSaleprodclass }}" data-name="showSaleprod" bind:focus='inputFocus' bindblur='inputBlur' error="{{errTips.showSaleprod}}" input-class="input-class" placeholder="请输入经营类目" border="{{ false }}" />
                    </view>
                </view>
            </view>
            <!-- 注册公司名 -->
            <view class="input_text_title">注册公司名<text>*</text></view>
            <view class="input_text_box box_mar_bot">
                <view class="input_text_input marLeft">
                    <van-field autosize model:value="{{ fagentname }}" data-name="fagentname" bind:focus='inputFocus' bindblur='inputBlur' error="{{errTips.fagentname}}" input-class="input-class" placeholder="请输入公司名称" border="{{ false }}" />
                </view>
            </view>
            <!-- 联系人 -->
            <view class="input_text_title">联系人<text>*</text></view>
            <view class="input_text_box box_mar_bot">
                <view class="input_text_input marLeft">
                    <van-field autosize model:value="{{ fcontact }}" data-name="fcontact" bind:focus='inputFocus' bindblur='inputBlur' error="{{errTips.fcontact}}" input-class="input-class" placeholder="请输入联系人" border="{{ false }}" />
                </view>
            </view>
            <!-- 联系方式 -->
            <view class="input_text_title">联系方式<text>*</text></view>
            <view class="input_text_box box_mar_bot">
                <view class="input_text_input marLeft">
                    <van-field autosize model:value="{{ fphonenumber }}" data-name="fphonenumber" bind:focus='inputFocus' bindblur='inputBlur' error="{{errTips.fphonenumber}}" input-class="input-class" placeholder="请输入联系方式" border="{{ false }}" />
                </view>
            </view>
            <!-- 公司介绍 -->
            <view class="input_text_title">公司介绍</view>
            <view class="input_text_box box_mar_bot textarea">
                <!-- 未做数据绑定 -->
                <textarea value="{{fintroduction}}" placeholder="请输入公司介绍" placeholder-style="color:#DAD9DB; font-size:30rpx;"></textarea>
            </view>
            <!-- 地址 -->
            <view class="input_text_title">地址</view>
            <view class="input_text_box box_mar_bot">
                <view class="input_text_input marLeft">
                    <van-field autosize model:value="{{ faddress }}" input-class="input-class" placeholder="请输入地址" border="{{ false }}" />
                </view>
            </view>
            <!-- 统一社会代码 -->
            <view class="input_text_title">统一社会代码</view>
            <view class="input_text_box box_mar_bot">
                <view class="input_text_input marLeft">
                    <van-field autosize model:value="{{ fdutyparagraph }}" input-class="input-class" placeholder="请输入统一社会代码" border="{{ false }}" />
                </view>
            </view>
        </view>
    </My_RectangularFrame>
</block>
<!-- 切换用户 -->
<block wx:if="{{pageType=='changeUser'}}">
    <My_RectangularFrame title="请选择账号">
        <My_ChangeUser userIndex='{{userIndex}}' bind:userChange="userChange"></My_ChangeUser>
    </My_RectangularFrame>
</block>
<!-- 提交按钮 -->
<view class="input_text_but">
    <van-button data-name="{{pageType}}" bindtap="submitData" size='large' round color="linear-gradient(180deg, #83E0E9 0%, #4CBECF 100%)">
        {{butText}}
    </van-button>
</view>
<!-- 跳过 -->
<view hidden="{{pageType=='login'||pageType=='changeUser'}}" class="jump-over">
    <text bindtap="jumpOverToIndex">{{pageType=="signin"?'进入首页':'跳过'}}</text>
</view>
<!-- 背景图片 -->
<My_Background></My_Background>
<!-- 弹出层 -->
<van-action-sheet show="{{ popups }}" bind:close="showPop">
    <My_Checkbox title="经营类目" saleprodclass="{{saleprodclass}}" bind:saleprodChange="saleprodChange"></My_Checkbox>
</van-action-sheet>