<template>
  <div class="validation">
    <div class="container">
      <div class="content" v-if="activeTab == 0">
        <div class="content-top">
          <h3>密码重置</h3>
        </div>
        <form action="" class="forms">
          <div class="form-group">
            <input type="text"  class="form-control" placeholder="原手机号"/>
          </div>
          <div class="form-group">
            <input type="text" class="form-control msg" placeholder="验证码"/>
            <img src="/images/all/ide.png" class="msg"/>
          </div>
          <button class="btn">下一步</button>
        </form>
      </div>
      <div class="content" v-if="activeTab == 1">
        <div class="content-top">
          <h3>密码重置</h3>
          <div class="step">
            <img src="/images/all/step01.png" alt=""/>
            <div class="step-item"><span class="active">账号验证</span><span>密码设置</span><span>设置完成</span></div>
            <!--<a href="" class="return"><img src="/images/all/return.png" alt=""/></a>-->
          </div>
        </div>
        <div class="choose">
          <div class="active"><img src="/images/all/icon03.png" alt="" class="first"/><span>通过登录密码</span><i class="fa fa-angle-right second"></i></div>
          <div><img src="/images/all/icon01.png" alt="" class="first mob"/><span>通过验证手机</span><i class="fa fa-angle-right second"></i></div>
          <div><img src="/images/all/icon02.png" alt="" class="first"/><span>通过验证邮箱</span><i class="fa fa-angle-right second"></i></div>
          <div><img src="/images/all/icon04.png" alt="" class="first"/><span>通过人工申诉</span><i class="fa fa-angle-right second"></i></div>
        </div>
      </div>
      <div class="content" v-if="activeTab == 2">
        <div class="content-top">
          <h3>密码重置</h3>
          <div class="step">
            <img src="/images/all/step01.png" alt=""/>
            <div class="step-item"><span class="active">账号验证</span><span>密码设置</span><span>设置完成</span></div>
            <a href="" class="return"><img src="/images/all/return.png" alt=""/></a>
          </div>
        </div>
        <form action="">
          <div class="form-group">
            <input type="text"  class="form-control" placeholder="请输入当前密码"/>
          </div>
          <button class="btn">下一步</button>
        </form>
      </div>
      <div class="content" v-if="activeTab == 3">
        <div class="content-top">
          <h3>密码重置</h3>
          <div class="step">
            <img src="/images/all/step01.png" alt=""/>
            <div class="step-item"><span class="active">账号验证</span><span>密码设置</span><span>设置完成</span></div>
            <a href="" class="return"><img src="/images/all/return.png" alt=""/></a>
          </div>
        </div>
        <div class="content-bottom">
          <span class="use">使用手机号<em>183******08</em>接收验证码</span>
          <div class="form-group">
            <input type="text" class="form-control msg" placeholder="短信验证码"/>
            <span class="msg">获取验证码</span>
            <!--<span class="msg send">已发送(54s)</span>-->
          </div>
          <button class="btn">下一步</button>
        </div>
      </div>
      <div class="content" v-if="activeTab == 4">
        <div class="content-top">
          <h3>密码重置</h3>
          <div class="step">
            <img src="/images/all/step01.png" alt=""/>
            <div class="step-item"><span class="active">账号验证</span><span class="active">密码设置</span><span>设置完成</span></div>
            <a href="" class="return"><img src="/images/all/return.png" alt=""/></a>
          </div>
        </div>
        <div class="content-bottom">
          <span class="use">使用电子邮箱<em>183****08@qq.com</em>进行验证，有效期7天</span>
          <div class="warp"><button class="btn">发送验证请求</button></div>
        </div>
      </div>
      <div class="content" v-if="activeTab == 5">
        <div class="content-top">
          <h3>密码重置</h3>
          <div class="step">
            <img src="/images/all/step01.png" alt=""/>
            <div class="step-item"><span class="active">账号验证</span><span>密码设置</span><span>设置完成</span></div>
            <a href="" class="return"><img src="/images/all/return.png" alt=""/></a>
          </div>
        </div>
        <form action="">
          <div class="form-group">
            <input type="text" value="问题一" class="answer form-control"/>
            <ul>
              <li>您的母亲的生日是几月几日？</li>
              <li>您最喜欢的宠物叫什么名字？</li>
              <li>您最喜欢的电影片名是什么？</li>
              <li>您的学号是？</li>
            </ul>
          </div>
          <div class="form-group">
            <input type="text" class="form-control" placeholder="答案一"/>
          </div>
          <div class="form-group">
            <input type="text" value="问题一" class="answer form-control"/>
            <ul>
              <li>您的爷爷叫什么名字？</li>
              <li>您的配偶的生日是几月几日？</li>
              <li>您最喜欢的歌手是谁？</li>
              <li>您就读的小学学校全称是？</li>
            </ul>
          </div>
          <div class="form-group">
            <input type="text" class="form-control" placeholder="答案二"/>
          </div>
          <button class="btn">提交</button>
        </form>
      </div>
      <div class="content" v-if="activeTab == 6">
        <div class="content-top">
          <h3>密码重置</h3>
          <div class="step">
            <img src="/images/all/step02.png" alt=""/>
            <div class="step-item"><span class="active">账号验证</span><span class="active">密码设置</span><span>设置完成</span></div>
          </div>
        </div>
        <form action="">
          <div class="form-group">
            <input type="text" class="form-control" placeholder="新密码"/>
          </div>
          <div class="form-group">
            <input type="text" class="form-control" placeholder="确认密码"/>
          </div>
          <button class="btn">下一步</button>
        </form>
      </div>
      <div class="content" v-if="activeTab == 7">
        <div class="content-top">
          <h3>密码重置</h3>
          <div class="step">
            <img src="/images/all/step03.png" alt=""/>
            <div class="step-item"><span class="active">账号验证</span><span class="active">密码设置</span><span class="active">设置完成</span></div>
          </div>
        </div>
        <div class="content-bottom">
          <p class="passed"><img src="/images/all/pass.png" alt=""/>设置成功</p>
          <span>请妥善保管好自己的密码，保障自身的利益！</span>
          <div class="close-btn">关闭</div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
  export default {
    name: 'reset',
    data () {
      return {
        activeTab: 1
      }
    }
  }
</script>
<style lang="scss" scoped>
  .validation {
    margin: 0 auto;
    width: 100%;
    background: #eee;
  .container{
    padding-top: 50px;
    margin: 0 auto;
    width: 980px;
    text-align: center;
  .content{
    padding: 0 50px;
    margin: 50px auto 0;
    width: 100%;
    /*height: 540px;*/
    text-align: center;
    background: #fff;
  .content-top{
    height: 80px;
    line-height: 80px;
  h3{
    margin-bottom: 0;
    font-size: 24px;
    color: #000;
    border-bottom: 1px solid #dcdcdc;
  }
  .step{
    position: relative;
    margin-top: 10px;
  img{
    width: 315px;
    height: 46px;
  }
  .step-item{
    position: absolute;
    top: 45px;
    left: 265px;
  span{
    margin-right: 85px;
    font-size: 14px;
    color: #b4b4b4;
  }
  span.active {
    color: #0076ad;
  }
  }
  }
  }
  form {
    padding-bottom: 44px;
    margin-top: 152px;
  .form-group{
    position: relative;
    margin: 0 auto 16px;
    width: 360px;
    height: 44px;
    line-height: 44px;
  input{
    padding: 0 0 0 18px;
    width: 360px;
    height: 44px;
    line-height: 44px;
    font-size: 14px;
    color: #000;
    border-radius: 0;
  }
  input.msg{
    float: left;
    width: 210px;
    padding: 0 0 0 18px;
    height: 44px;
    line-height: 44px;
    font-size: 14px;
    color: #000;
    border-radius: 0;
  }
  img.msg{
    float: right;
    margin: 0;
    width: 130px;
    height: 44px;
    line-height: 44px;
    text-align: center ;
    font-size: 14px;
    border: 1px solid #dcdcdc;
    cursor: pointer;
  }
  input.answer {
    background: url("/images/all/more.png") no-repeat 325px center;
    cursor: pointer;
  }
  ul{
    display: none;
    position: absolute;
    top: 44px;
    left: 0;
    width: 360px;
    background: #fff;
    box-shadow: 0 0 5px rgba(0,0,0,.5);
    -moz-box-shadow: 0 0 5px rgba(0,0,0,.5);
    -o-box-shadow: 0 0 5px rgba(0,0,0,.5);
    -webkit-box-shadow: 0 0 5px rgba(0,0,0,.5);
    z-index: 10;
  li{
    padding-left: 18px;
    width: 100%;
    height: 30px;
    line-height: 30px;
    text-align: left;
    font-size: 14px;
    color: #000;
    cursor: pointer;
  &:hover{
     background: #0076ad;
     color: #fff;
   }
  }
  }
  span.tip{
    position: absolute;
    top: 0;
    right: -238px;
    font-size: 13px;
    color: #8c8c8c;
  a{
    font-size: 13px;
    color: #0076ad;
  }
  }
  i{
    position: absolute;
    top: 13px;
    left: 20px;
    font-size: 20px;
    color: #a0a0a0;
  }
  }
  .btn {
    margin: 34px 0 16px 0;
    width: 360px;
    height: 44px;
    line-height: 4px;
    font-size: 16px;
    color: #fff;
    background: #0076AD;
    border-radius: 3px;
  }
  }
  .forms{
    margin-top: 37px;
  }
  .content-bottom{
    margin: 155px auto 0;
    padding-bottom: 50px;
    width: 360px;
  div.warp{
    padding-bottom: 65px;
  }
  p{
    font-size: 24px;
    color: #323232;
  img{
    margin-right: 20px;
    width: 30px;
    height: 28px;
  }
  }
  p.pass{
    font-size: 24px;
    color: #e77405;
  img{
    height: 30px;
  }
  }
  p.passed {
    color: #2ab300;
  img{
    height: 30px;
  }
  }
  span{
    display: inline-block;
    margin: 15px 0 140px 0;
    font-size: 14px;
    color: #8b8b8b;
  }
  .close-btn{
    margin: 0 auto;
    width: 200px;
    height: 36px;
    line-height: 36px;
    font-size: 14px;
    text-align: center;
    color: #323232;
    border: 1px solid #d2d2d2;
    border-radius: 3px;
    cursor: pointer ;
  }
  span.use{
    display: inline-block;
    margin-bottom: 30px;
    width: 360px;
    font-size: 14px;
    color: #000;
    text-align: left;
  em{
    font-size: 14px;
    font-style: normal;
    color: #000;
  }
  }
  .form-group {
    margin: 0 auto 16px;
    position: relative;
    width: 360px;
    height: 44px;
    line-height: 44px;
  input{
    padding: 0 0 0 18px;
    width: 360px;
    height: 44px;
    line-height: 44px;
    font-size: 14px;
    color: #000;
    border-radius: 0;
  }
  input.msg{
    float: left;
    width: 210px;
    padding: 0 0 0 18px;
    height: 44px;
    line-height: 44px;
    font-size: 14px;
    color: #000;
    border-radius: 0;
  }
  span.msg{
    float: right;
    margin: 0;
    width: 130px;
    height: 44px;
    line-height: 44px;
    text-align: center ;
    font-size: 14px;
    color: #5a5a5a;
    background: #f4f4f4;
    border: 1px solid #dcdcdc;
    cursor: pointer;
  }
  span.msg.send{
    background: #d2d2d2;
    color: #fff;
  }
  }
  .btn {
    margin: 34px 0 10px 0;
    width: 360px;
    height: 44px;
    line-height: 4px;
    font-size: 16px;
    color: #fff;
    background: #0076AD;
    border-radius: 3px;
  }
  }
  .choose{
    margin: 155px auto 0;
    padding-bottom: 44px;
  div{
    padding: 0 15px;
    margin: 0 auto 16px;
    width: 360px;
    height: 60px;
    line-height: 60px;
    text-align: left;
    overflow: hidden;
    border: 1px solid #d2d2d2;
    cursor: pointer;
  &:hover,&.active{
             border-color: #0076ad;
  span{
    color: #0076ad;
  }
  i.second {
    color: #0076ad;
  }
  }
  img.first{
    float: left;
    margin: 24px 20px 0 0;
    font-size: 20px;
    color: #323232;
  }
  img.first.mob{
    margin: 22px 20px 0 5px;
    font-size: 28px;
  }
  i.second {
    float: right;
    margin: 20px 0 0 5px;
    font-size: 20px;
    color: #323232;
  }
  span{
    float: left;
    font-size: 14px;
    color: #323232;
  }
  }
  }
  a.return{
    position: absolute;
    left: 0;
    top: -15px;
  img{
    width: 34px !important;
    height: 34px !important;
  }
  }
  }
  }
  }
</style>
