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

<!-- 找回密码表单 -->
<div id="forGetPasswordPage">
    <div class="signAccount clear">
        <div class="title">{{title}}</div>
        <div class="forget-form"  v-if="showTabContentIndex == 0">
            <form>
                <div class="formLine" >
                    <p><em>*</em>手机号(<span>若手机号已暂停使用，可使用 <a href="javascript:void(0);" @click="checkedEmailFn">邮箱验证</a></span>)：</p>
                    <input  class="massageBtn"  type="text" v-model.trim="phonePwd.mobileOrEmail" 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="phonePwd.activateCode" 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="formLine">
                    <p><em>*</em>新密码：</p>
                    <input type="password" v-model.trim="phonePwd.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>
                    <i class="icon showPwd" @click="showPassword($event)"></i>
                </div>
                <div class="formLine">
                    <p><em>*</em>确认密码：</p>
                    <input type="password" v-model.trim="phonePwd.confirmPwd" autocomplete="new-password" placeholder="请再次确认新密码" :rule="rule.password" maxlength="32" @blur="blurHandle($event)" needverify>
                    <i class="checked icon mIcon"></i>
                    <span class="errTips icon mIcon" tips="8-16位数字或字母或字符"></span>
                    <i class="icon showPwd" @click="showPassword($event)"></i>
                </div>
                <div class="subLine">
                    <button class="btn" type="button" :class="loginLoading ? 'disabled':''"  @click="findPhonePwd()">提交</button>
                </div>
            </form>
        </div>
        <div class="forget-form"  v-if="showTabContentIndex == 1">
            <form>
                <div class="formLine" >
                    <p><em>*</em>邮箱(<span>若忘记邮箱，可使用 <a href="javascript:void(0);" @click="checkedPhoneFn">手机号</a></span>)：</p>
                    <input  class="emailMsgBtn"  type="text" v-model.trim="emailPwd.mobileOrEmail" placeholder="请输入邮箱" :rule="rule.email" maxlength="30" @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="emailPwd.activateCode" autocomplete="off" placeholder="请输入短信验证码" :rule="rule.emailCode"  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="getEmailCodeFn" :class="[isEmailDisabled  ? 'disabled' : '']">{{ emailCodeText }}</a>
                </div>
                <div class="formLine">
                    <p><em>*</em>登录密码：</p>
                    <input type="password" v-model.trim="emailPwd.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>
                    <i class="icon showPwd" @click="showPassword($event)"></i>
                </div>
                <div class="formLine">
                    <p><em>*</em>确认密码：</p>
                    <input type="password" v-model.trim="emailPwd.confirmPwd" autocomplete="new-password" placeholder="请再次确认新密码" :rule="rule.password" maxlength="32" @blur="blurHandle($event)" needverify>
                    <i class="checked icon mIcon"></i>
                    <span class="errTips icon mIcon" tips="8-16位数字或字母或字符"></span>
                    <i class="icon showPwd" @click="showPassword($event)"></i>
                </div>
                <div class="subLine">
                    <button class="btn" type="button" :class="loginLoading ? 'disabled':''"  @click="findEmailPwd()">提交</button>
                </div>
            </form>
        </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>
</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/forget.js(v=${version})}"></script>
</body>
</html>
