<!DOCTYPE html>
<html lang="zh-CN" xmlns:th="https://www.thymeleaf.org" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="https://www.thymeleaf.org ">
<head>
    <title>采美365网-中国美业全方位线上交易服务互动平台，做美业，上采美</title>
    <template th:replace="components/head-link"></template>
    <link th:href="@{/css/base/form.css(v=${version})}" rel="stylesheet" type="text/css">
    <link th:href="@{/css/account/upgrade.css(v=${version})}" rel="stylesheet" type="text/css">
</head>
<body>
<!-- 引用头部 -->
<template th:replace="account/components/header"></template>

<!-- 升级机构 -->
<div id="upgradePage">
    <div class="signAccount">
        <div class="title">升级会员机构</div>
        <div class="title-tips"><p>补充以下详细信息即可升级为会员机构，享受更多更好的服务</p></div>
        <div class="registerClub clear">
            <!--机构注册表单-->
            <form>
                <div class="formLine">
                    <p><em>*</em>邮箱：</p>
                    <input type="text" v-model.trim="clubUser.name" placeholder="请输入邮箱地址" :rule="rule.name" maxlength="50" @blur="blurHandle($event)" needverify>
                    <i class="checked icon mIcon"></i>
                    <span class="errTips icon mIcon" tips="请输入正确的邮箱地址"></span>
                </div>
                <div class="formLine">
                    <p><em>*</em>机构名称：</p>
                    <input type="text" v-model.trim="clubUser.name" placeholder="请与营业执照的注册名称保持一致" :rule="rule.name" maxlength="50" @blur="blurHandle($event)" needverify>
                    <i class="checked icon mIcon"></i>
                    <span class="errTips icon mIcon" tips="请输入正确的联系人姓名"></span>
                </div>
                <div class="formLine">
                    <p>机构简称：</p>
                    <input type="text" v-model.trim="clubUser.name" placeholder="请输入机构简称" :rule="rule.name" maxlength="50" needverify>
                </div>
                <div class="formLine">
                    <p><em>*</em>联系地址：</p>
                    <div class="address">
                        <select><option value="">请选择</option></select>
                        <select><option value="">请选择</option></select>
                        <select><option value="">请选择</option></select>
                        <textarea placeholder="建议您如实填写详细收货地址，例如：街道名称，门牌号码，楼层和房间号等信息"></textarea>
                    </div>
                    <i class="checked icon mIcon"></i>
                    <span class="errTips icon mIcon" tips="请输入正确的联系地址"></span>
                </div>
                <div class="formLine">
                    <p>营业执照：</p>
                    <input type="text" v-model.trim="clubUser.businessLicense" placeholder="请输入统一社会信用代码" :rule="rule.license" maxlength="50" @blur="blurHandle($event)" needverify>
                    <i class="checked icon mIcon"></i>
                    <span class="errTips icon mIcon" tips="请输入正确的统一社会信用代码"></span>
                </div>
                <div class="formLine">
                    <p><em>*</em>营业执照图片：</p>
                    <div v-if="clubUser.businessLicenseImage!=''">
                        <img :src="clubUser.businessLicenseImage" alt="">
                    </div>
                    <div class="formLine-file" v-else>
                        <input class="file" type="file" v-model="clubUser.businessLicenseImage">
                        <i class="icon file-biss"></i>
                    </div>
                    <span class="errTips icon mIcon"></span>
                </div>
                <div class="formLine">
                    <p>门头照：</p>
                    <div v-if="clubUser.businessLicenseImage!=''">
                        <img :src="clubUser.businessLicenseImage" alt="">
                    </div>
                    <div class="formLine-file" v-else>
                        <input class="file" type="file" v-model="clubUser.businessLicenseImage">
                        <i class="icon file-door"></i>
                    </div>
                    <span class="errTips icon mIcon"></span>
                </div>
                <div class="formLine">
                    <p><em>*</em>机构类型：</p>
                    <label class="diyBox"><input type="radio" name="firstShopType" v-model="clubUser.firstShopType" value="1" ><i class="icon mIcon">医美</i></label>
                    <label class="diyBox"><input type="radio" name="firstShopType" v-model="clubUser.firstShopType" value="2" checked><i class="icon mIcon">生美</i></label>
                    <span class="errTips icon mIcon mIcon" tips="请选择公司类型"></span>
                </div>
                <div v-show="clubUser.firstShopType == 1" class="formLine">
                    <label class="diyBox second"><input type="radio" name="department" v-model="clubUser.department" value="1" checked><i class="icon mIcon">诊所</i></label>
                    <label class="diyBox second"><input type="radio" name="department" v-model="clubUser.department" value="2" ><i class="icon mIcon">门诊</i></label>
                    <label class="diyBox second"><input type="radio" name="department" v-model="clubUser.department" value="3" ><i class="icon mIcon">医院</i></label>
                    <span class="errTips icon mIcon mIcon" tips="请选择公司类型"></span>
                </div>
                <div v-show="clubUser.firstShopType == 1" class="formLine">
                    <p>资质：</p>
                    <div v-if="clubUser.businessLicenseImage!=''">
                        <img :src="clubUser.businessLicenseImage" alt="">
                    </div>
                    <div class="formLine-file" v-else>
                        <input class="file" type="file" v-model="clubUser.businessLicenseImage">
                        <i class="icon file-zizhi"></i>
                    </div>
                    <span class="errTips icon mIcon"></span>
                </div>
                <div v-show="clubUser.department != 1" class="formLine">
                    <p>科室：</p>
                    <input type="text" v-model.trim="clubUser.name" placeholder="请填写您所经营的科室,用逗号隔开.(至少三个)" :rule="rule.name" maxlength="50">
                </div>
                <div class="formLine clear" v-show="clubUser.firstShopType == 1">
                    <p><em>*</em>主营内容：</p>
                    <p class="business">
                        <label v-for="pro in mentuzCampNullList" class="diyBox second"><input type="checkbox" name="secondShopType" v-model="clubUser.mainPros" :value="pro" ><i class="icon mIcon">{{pro.name}}</i></label>
                        <input type="text" placeholder="请输入其他自定义品项目" v-model.trim="mainProEdit">
                        <a href="javascript:void(0);" @click="mainProAdd()">确认添加</a>
                    </p>
                    <span class="errTips icon mIcon" tips="请选择或添加主营产品"></span>
                </div>
                <div class="formLine clear" v-show="clubUser.firstShopType == 2">
                    <p><em>*</em>主营内容：</p>
                    <p class="business">
                        <label v-for="pro in medicaCampNullList" class="diyBox second"><input type="checkbox" name="secondShopType" v-model="clubUser.mainPros" :value="pro" ><i class="icon mIcon">{{pro.name}}</i></label>
                        <input type="text" placeholder="请输入其他自定义品项目" v-model.trim="mainProEdit">
                        <a href="javascript:void(0);" @click="mainProAdd()">确认添加</a>
                    </p>
                    <span class="errTips icon mIcon" tips="请选择或添加主营产品"></span>
                </div>
                <div class="subLine">
                    <button class="btn" type="button" @click="clubRegister()">提交审核</button>
                </div>
            </form>
        </div>
    </div>
</div>

<!-- 引入底部 -->
<template th:replace="components/footer"></template>
<template th:replace="components/foot-link"></template>
<script charset="utf-8" type="text/javascript" th:src="@{/js/common/serviceapi/user.service.js(v=${version})}"></script>
<script charset="utf-8" type="text/javascript" th:src="@{/js/account/upgrade.js(v=${version})}"></script>
</body>
</html>
