<!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/base/center.css(v=${version})}" rel="stylesheet" type="text/css">
    <link th:href="@{/css/user-center/setting/upgrade.css(v=${version})}" rel="stylesheet" type="text/css">
</head>
<body>
<!-- 引用头部 -->
<template th:replace="components/header"></template>
<!-- 升级机构 -->
<div id="upgradePage">
    <div class="navLayout" v-cloak>
        <div v-if="isPC" class="crumbs">
            <span>机构管理中心</span>
            <span>&gt;</span>
            <span>机构升级</span>
        </div>
        <div class="wrap clear">
            <!--左侧导航-->
            <template th:replace="user-center/components/tableft"></template>
            <div class="right">
                <!--loading-->
                <div v-if="isRequset" class="loading">
                    <img src="/img/base/loading.gif">
                </div>
                <div class="container clear" v-else>
                    <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="clubUpgradeUser.contractEmail1" placeholder="请输入邮箱地址" :rule="rule.email" 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="clubUpgradeUser.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="clubUpgradeUser.sname" placeholder="请输入机构简称" :rule="rule.name" maxlength="50" needverify>
                            </div>
                            <div class="formLine">
                                <p><em>*</em>联系地址：</p>
                                <div class="address">
                                    <select name="provinceID" id="cProvince" @change="ChangeProvince" v-model="addressfrom.provinceID">
                                        <option value="" >请选择</option>
                                        <option v-for="(item ,index) in ProvinceList" :key="index" :value='item.provinceID' >{{item.name}}</option>
                                    </select>
                                    <select name="cityID" id="cCity" @change="ChangeGetcity($event)" v-model="addressfrom.cityID">
                                        <option value="" >请选择</option>
                                        <option v-for="(item ,index) in cityArray" :key="index" :value="item.cityID" >{{item.name}}</option>
                                    </select>
                                    <select name="townID" id="cTown" @change="ChangeGetcTown($event)" v-model="addressfrom.townID">
                                        <option value="" >请选择</option>
                                        <option v-for="(item ,index) in townArray" :key="index" :value="item.townID"  >{{item.name}}</option>
                                    </select>
                                    <textarea placeholder="建议您如实填写详细地址，例如：街道名称，门牌号码，楼层和房间号等信息"  v-model="clubUpgradeUser.address"></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="clubUpgradeUser.socialCreditCode" placeholder="请输入统一社会信用代码" maxlength="20">
                            </div>
                            <div class="formLine clear">
                                <div class="form-upload">
                                    <p><em>*</em>营业执照图片：</p>
                                    <div class="form-upload-image" v-if="clubUpgradeUser.businessLicenseImage!=''">
                                        <img class="upload-img" :src="clubUpgradeUser.businessLicenseImage" alt="" id="businessLicenseImage" @click="showViewerImageFn()">
                                        <i class="icon mIcon" @click="deleteBusinessImage()"></i>
                                    </div>
                                    <div class="formLine-file" v-else>
                                        <input ref="businessLicenseImage" class="file" type="file" accept="image/png,image/jpeg,image/gif,image/jpg"  @change="uploadBusinessLicenseImageFn">
                                        <i class="icon mIcon file-biss"></i>
                                    </div>
                                    <span class="errTips icon mIcon"></span>
                                </div>
                                <div class="form-upload-tips">
                                    <i class="icon mIcon icon-wen"></i>
                                    <div class="wen-tips">点击图片可放大图片</div>
                                </div>
                            </div>
                            <div class="formLine clear">
                                <div class="form-upload">
                                    <p>门头照：</p>
                                    <div class="form-upload-image" v-if="clubUpgradeUser.headpic!=''">
                                        <img class="upload-img" :src="clubUpgradeUser.headpic" alt="" id="uploadMentuzImage" @click="showViewerImageFn1()">
                                        <i class="icon mIcon" @click="deleteMentuzImage()"></i>
                                    </div>
                                    <div class="formLine-file" v-else>
                                        <input ref="businessMentuImage" class="file" type="file" accept="image/png,image/jpeg,image/gif,image/jpg"  @change="uploadMentuzImageFn">
                                        <i class="icon mIcon file-door"></i>
                                    </div>
                                </div>
                            </div>
                            <div class="formLine">
                                <p><em>*</em>机构类型：</p>
                                <label class="diyBox"><input type="radio" name="firstShopType" v-model="clubUpgradeUser.firstClubType" value="1" ><i class="icon mIcon">医美</i></label>
                                <label class="diyBox"><input type="radio" name="firstShopType" v-model="clubUpgradeUser.firstClubType" value="2" checked><i class="icon mIcon">生美</i></label>
                                <span class="errTips icon mIcon" tips="请选择公司类型"></span>
                            </div>
                            <div v-show="clubUpgradeUser.firstClubType == 1" class="formLine">
                                <label class="diyBox second"><input type="radio" name="secondClubType" v-model="clubUpgradeUser.secondClubType" value="1" checked><i class="icon mIcon">诊所</i></label>
                                <label class="diyBox second"><input type="radio" name="secondClubType" v-model="clubUpgradeUser.secondClubType" value="2" ><i class="icon mIcon">门诊</i></label>
                                <label class="diyBox second"><input type="radio" name="secondClubType" v-model="clubUpgradeUser.secondClubType" value="3" ><i class="icon mIcon">医院</i></label>
                                <span class="errTips icon mIcon" tips="请选择公司类型"></span>
                            </div>
                            <div v-show="clubUpgradeUser.firstClubType == 1" class="formLine">
                                <div class="form-upload">
                                    <p>资质：</p>
                                    <div class="form-upload-image" v-if="clubUpgradeUser.medicalPracticeLicenseImg!=''">
                                        <img class="upload-img" :src="clubUpgradeUser.medicalPracticeLicenseImg" alt="" id="medicalPracticeLicenseImg" @click="showViewerImageFn2()">
                                        <i class="icon mIcon" @click="deleteMedicalImage()"></i>
                                    </div>
                                    <div class="formLine-file" v-else>
                                        <input ref="businessMedicaImage" class="file" type="file"  accept="image/png,image/jpeg,image/gif,image/jpg" @change="uploadMedicaImageFn">
                                        <i class="icon mIcon file-zizhi"></i>
                                    </div>
                                    <span class="errTips icon mIcon"></span>
                                </div>
                                <div class="form-upload-tips">
                                    <i class="icon icon-wen"></i>
                                    <div class="wen-tips">点击图片可放大图片</div>
                                </div>
                            </div>
                            <div v-if="clubUpgradeUser.secondClubType == 2 || clubUpgradeUser.secondClubType == 3" class="formLine">
                                <p>科室：</p>
                                <input type="text" v-model.trim="clubUpgradeUser.department" placeholder="请填写您所经营的科室,用逗号隔开.(至少三个)" maxlength="50">
                            </div>
                            <div class="formLine clear" v-if="clubUpgradeUser.firstClubType == 1">
                                <p><em>*</em>主营内容：</p>
                                <p class="business clear">
                                    <label v-for="pro in medicaCampNullList" class="diyBox second" >
                                        <input type="checkbox" name="secondClubType" v-model="userMainPros" :value="pro.name" >
                                        <i class="icon mIcon">{{pro.name}}</i>
                                    </label>
                                </p>
                                <p class="business">
                                    <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-if="clubUpgradeUser.firstClubType == 2">
                                <p><em>*</em>主营内容：</p>
                                <p class="business clear">
                                    <label v-for="pro in mentuzCampNullList" class="diyBox second">
                                        <input type="checkbox" name="secondClubType" v-model="userMainPros" :value="pro.name" >
                                        <i class="icon mIcon">{{pro.name}}</i>
                                    </label>
                                </p>
                                <p class="business">
                                    <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="SubComfirUpgradeFn()">确认升级并提交审核</button>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </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/center.js(v=${version})}"></script>
<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/user-center/setting/upgrade.js(v=${version})}"></script>
</body>
</html>
