<!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/bind.css(v=${version})}" rel="stylesheet" type="text/css">
</head>
<body>
<!-- 引用头部 -->
<template th:replace="account/components/header"></template>

<!-- 绑定运营人员 -->
<div id="bindPage">
    <div class="signAccount bind">
        <div class="title center">绑定运营人员</div>
        <div class="title-tips">
            <p>您的微信尚未绑定任何账号，请输入您的账号密码，并填写自己的基本信息提交后即可微信扫码直接登录</p>
        </div>
        <div class="registerClub clear">
            <form>
                <div class="title">机构账号</div>
                <div class="formLine">
                    <p><em>*</em>账号：</p>
                    <input class="mobileOrEmail" type="text" v-model.trim="user.mobileOrEmail" placeholder="请输入邮箱/手机号" :rule="rule.mobileOrEmail" 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="password" v-model.trim="user.password" autocomplete="new-password" placeholder="请输入8-16位数字和字母组合" :rule="rule.password" maxlength="32" @blur="blurHandle($event)" needverify>
                    <i class="checked icon mIcon"></i>
                    <span class="errTips icon mIcon" tips="8-16位数字或字母或字符"></span>
                </div>
                <div class="title">运营人员信息</div>
                <div class="formLine">
                    <p><em>*</em>姓名：</p>
                    <input type="text" v-model.trim="user.linkName" 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  class="massageBtn"  type="text" v-model.trim="user.mobile" placeholder="请输入您的常用手机号" :rule="rule.phone" maxlength="11" @blur="blurHandle($event)" needverify>
                    <i class="checked icon mIcon"></i>
                    <span class="errTips icon mIcon" tips="请输入有效电话号码"></span>
                </div>
                <div class="formLine code">
                    <p><em>*</em>短信验证码：</p>
                    <input type="text" v-model.trim="user.verificationCode" autocomplete="off" placeholder="请输入短信验证码" :rule="rule.code"  maxlength="6" @blur="blurHandle($event)" needverify>
                    <i class="checked icon mIcon"></i>
                    <span class="errTips icon mIcon" tips="请输入有效短信验证码"></span>
                    <a class="getCode" href="javascript:void(0);" @click="getMobileImage" :class="[isMobileDisabled  ? 'disabled' : '']">{{ mobileCodeText }}</a>
                </div>
                <div class="subLine">
                    <button class="btn" type="button" :class="loginLoading ? 'disabled':''"  @click="BindConfirmFn()">提交</button>
                </div>
            </form>
        </div>
    </div>
    <div class="content-model"  :class="isCodeModel ? 'active' : ''">
        <div class="model-main">
            <div class="model-title"><p>获取短信验证码</p><i class="icon mIcon icon-close"  @click="closeCodeModel"></i></div>
            <div class="model-content">
                <div class="model-form">
                    <input class="input" type="text" placeholder="请输入图形验证码" v-model="imageCode" maxlength="4">
                    <div class="image"><img :src="codeImagePath" alt=""></div>
                    <div class="refresh" @click="refreshCodeImage">
                        <i class="icon mIcon"></i>
                        <span>刷新</span>
                    </div>
                </div>
                <div class="model-button">
                    <div class="button"  @click="getMobileCodeFn">获取短信验证码</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/common/serviceapi/user.service.js(v=${version})}"></script>
<script charset="utf-8" type="text/javascript" th:src="@{/js/account/bind.js(v=${version})}"></script>
</body>
</html>
