<template>
  <div class="mbanner">
    <!-- 轮播背景 -->
    <el-carousel  indicator-position="none" prev="none" height="900px" arrow="never" class="carousel">
      <el-carousel-item v-for='item in carList'>
        <div :class="item.car">
          <div class="widcen">
            <div class="appli" @click='applyRoute()'>申请经纪商</div>
          </div>
        </div>
      </el-carousel-item>
    </el-carousel>
    <!-- 导航栏 -->

    <div class="bg-topbar" v-show='scrollTopbar==false'>
      <div class="b-bg"></div>
      <div class="b-navbar">
        <div class="left logo"><img src="../../assets/img/mainLogo.png"></div>
        <div class="left nav-title active"><p>首页</p></div>
        <div class="left nav-title" @click='apply()'><p>申请经纪商</p><i class="hot">HOT</i></div>
        
          <div class="user" v-show='usertip==1'>
            <span><img src="../../../static/img/usericon.png"><p>{{username}}</p></span>
            <span @click='toLoginOut()'><img src="../../../static/img/logout.png"><p>退出</p></span>
          </div>

      </div>
    </div>
    <div class="bg-topbar bartwo" v-show='scrollTopbar==true'>
      <div class="b-bg"></div>
      <div class="b-navbar">
        <div class="left logo"><img src="../../assets/img/logo.png"></div>
        <div class="left nav-title active"><p>首页</p></div>    
        <div class="left nav-title" @click='apply()'><p>申请经纪商</p><i class="hot">HOT</i></div>
        <div class="user" v-show='usertip==1'>
          <span><img src="../../../static/img/usericon2.png"><p>{{username}}</p></span>
          <span @click='toLoginOut()'><img src="../../../static/img/logout2.png"><p>退出</p></span>
        </div>
      </div>
    </div>

    <!-- 登录 -->
    <div class="login" v-show='regshow==2'>
      <div class="box">
        <div class="innerbox">
          <el-tabs v-model="activeName" >
            <el-tab-pane label="邮箱登陆" name="first">
              <div class="login-line">
                <span><img src="../../assets/img/mail.png"></span>
                <input type="text" placeholder="请输入您的邮箱" class="input" v-model='loginform.email'>
              </div>
              <div class="login-line">
                <span><img src="../../assets/img/password.png"></span>
                <input type="password" placeholder="请输入您的密码" class="input" v-model='loginform.password'>
              </div>
              <div class="tip-line">
                <span class="forget" @click='regshow=3'>忘记密码？</span>
                <div class="switch-box">
                  <span @click='regshow=1'>免费注册！</span>
                </div>
              </div>
              <div class="tip-err"></div>
              <div class="submit-line">
                <button class="login-btn" @click="changetype('log',1);toLogin()">登陆</button>
              </div>
            </el-tab-pane>

            <el-tab-pane label="手机登陆" name="second">
              <div class="login-line">
                <span>
                  <el-select v-model="area" slot="prepend" placeholder="中国">
                    <el-option :label="msg.ch_name" :value="msg.code" v-for='msg in telarea'>
                    </el-option>
                  </el-select>
                </span>
                <input type="text" placeholder="请输入您的手机号码" class="input" v-model='loginform.mobile'>
              </div>
              <div class="login-line">
                <span><img src="../../assets/img/password.png"></span>
                <input type="password" placeholder="请输入您的密码" class="input" v-model='loginform.password'>
              </div>
              <div class="tip-line">
                <span class="forget" @click='regshow=3'>忘记密码？</span>
                <div class="switch-box">
                  <span @click='regshow=1'>免费注册！</span>
                </div>
              </div>
              <div class="tip-err"></div>
              <div class="submit-line">
                <button class="login-btn" @click="changetype('log',2);toLogin()">登陆</button>
              </div>
            </el-tab-pane>
          </el-tabs>
        </div>
      </div>
    </div>
    <!-- 注册 -->
    <div class="register" v-show='regshow==1'>
      <div class="box">
        <div class="innerbox">
          <el-tabs v-model="activeName" >
            <el-tab-pane label="邮箱注册" name="first">
              <div class="login-line">
                <span><img src="../../assets/img/mail.png"></span>
                <input type="text" placeholder="请输入您的邮箱" class="input" v-model='regform.email'>
              </div>
              <div class="icode-line">
                <input type="text" placeholder="请输入验证码" class="input" v-model='regform.code'>
                <button @click='changeParam(1);sendMail()'>发送验证码</button>
              </div>
              <div class="login-line">
                <span><img src="../../assets/img/password.png"></span>
                <input type="password" placeholder="请输入您的密码" class="input" v-model='regform.password'>
              </div>
              <div class="tip-line">
                <input type="checkbox" id="tip" class="input slect" v-model="checked">
                <span class="forget">我已了解<p @click="centerDialogVisible = true">风险提示</p>！</span>
                <div class="switch-box">
                  <span @click="regshow=2">立即登陆！</span>
                </div>
              </div>
              <div class="tip-err"></div>
              <div class="submit-line">
                <button class="login-btn" @click="changetype('reg',1);toRegister(checked)">注册</button>
              </div>
            </el-tab-pane>
            <el-tab-pane label="手机注册" name="second">
              <div class="login-line">
                <span>
                  <el-select slot="prepend" placeholder="中国" v-model="area">
                    <el-option :label="msg.ch_name" :value="msg.code" v-for='msg in telarea' >
                    </el-option>
                  </el-select>
                </span>
                <input type="text" placeholder="请输入您的手机号码" class="input" v-model='regform.mobile'>
              </div>
              <div class="icode-line">
                <input type="text" placeholder="请输入验证码" class="input" v-model='regform.code'>
                <button @click='changeParam(2);sendCode()'>发送验证码</button>
              </div>
              <div class="login-line">
                <span><img src="../../assets/img/password.png"></span>
                <input type="password" placeholder="请输入您的密码" class="input" v-model='regform.password'>
              </div>
              <div class="tip-line">
                <input type="checkbox" id="tip" class="input slect" v-model="checked">
                <span class="forget">我已了解<p @click="centerDialogVisible = true">风险提示</p>！</span>
                <div class="switch-box">
                  <span @click="regshow=2">立即登陆！</span>
                </div>
              </div>
              <div class="tip-err"></div>
              <div class="submit-line">
                <button class="login-btn" @click="changetype('reg',2);toRegister(checked)">注册</button>
              </div>
            </el-tab-pane>
          </el-tabs>
        </div>
      </div>
    </div>

    <!-- 密码找回 -->
    <div class="getback" v-show='regshow==3'>
      <div class="box">
        <div class="innerbox">
          <el-tabs v-model="activeName" >
            <el-tab-pane label="邮箱找回" name="first">
              <div class="login-line">
                <span><img src="../../assets/img/mail.png"></span>
                <input type="text" placeholder="请输入您的邮箱" class="input">
              </div>
              <div class="tip-line">
                <div class="switch-box">
                  <span @click="regshow=2">返回登陆！</span>
                </div>
              </div>
              <div class="tip-err"></div>
              <div class="submit-line">
                <button class="login-btn">发送邮件</button>
              </div>
            </el-tab-pane>
            <el-tab-pane label="手机找回" name="second" >
              <div class="login-line">
                <span>
                  <el-select v-model="select" slot="prepend" placeholder="中国" value='86'>
                    <el-option :label="msg.ch_name" :value="msg.code" v-for='msg in telarea'>
                    </el-option>
                  </el-select>
                </span>
                <input type="text" placeholder="请输入您的手机号码" class="input">
              </div>
              <div class="icode-line">
                <input type="text" placeholder="请输入验证码" class="input">
                <button>发送验证码</button>
              </div>
              <div class="login-line">
                <span><img src="../../assets/img/password.png"></span>
                <input type="password" placeholder="请输入您的密码" class="input passw">
                <i class="keyboard"><img src="../../../static/img/keyboard.png"></i>
              </div>
              <div class="login-line">
                <span><img src="../../assets/img/password.png"></span>
                <input type="password" placeholder="请再次输入您的密码" class="input passw">
                <i class="keyboard"><img src="../../../static/img/keyboard.png"></i>
              </div>
              <div class="tip-line">
                <div class="switch-box">
                  <span @click="regshow=2">返回登陆！</span>
                </div>
              </div>
              <div class="tip-err"></div>
              <div class="submit-line">
                <button class="login-btn">修改密码</button>
              </div>
            </el-tab-pane>
          </el-tabs>
        </div>
      </div>
    </div>
    <!-- 登陆成功 -->
    <div class="islogin" v-show='regshow==4'>
      <div class="box">
        <div class="innerbox">
          <p class="user-msg">欢迎您，{{username}}！</p>
          <div class="apply" @click='applyRoute()' v-show="applyform.company==undefined">申请经纪商</div>
          <div class="apply" @click='applyRoute()' v-show="applyform.company!=undefined">您的申请正在审核中</div>          
        </div>
      </div>  
    </div>

    <!-- 风险提示 -->
    
    <el-dialog title="FX66平台风险提示及免责声明" :visible.sync="centerDialogVisible">
      <div class="hide-scroll">
        <div class="statement-public">
          <h4>尊敬的FX66平台用户：</h4>
          <p>由于数字资产具有极高的投资风险，实行7*24小时连续交易，它没有像中国股市有涨跌停限制，且易受外界因素影响，价格波动较大！比特币不由货币当局发行，不具有法偿性与强制性，请务必在了解数字资产市场风险与风险自担的前提下谨慎、理性投资。</p>
          <h4 class="part-title">一、风险提示：</h4>
          <p v-for="pone in part1">{{pone.alist}}</p>
          <h4 class="part-title">二、反洗钱：</h4>
          <p v-for="ptwo in part2">{{ptwo.blist}}</p>
          <h4 class="part-title">三、免责声明：</h4>
          <p v-for="pth in part3">{{pth.clist}}</p>
        </div>
      </div>  
      <span slot="footer" class="dialog-footer">
        <button @click="centerDialogVisible = false,checked=true" class="read">我已阅读</button>
      </span>
    </el-dialog>
  
    <!-- 底栏 -->
    <div class="bt-bar" v-show='scrollBottombar==false'>
      <div class="bt-bg"></div>
      <div class="bt-navbar">
        <div class="bt-appli" @click='applyRoute()'>申请经纪商</div>
        <h1>热线电话: +86 173 5471 8363</h1>
      </div>
    </div>
    <div class="bt-bar bt-bartwo" v-show='scrollBottombar==true'>
      <div class="bt-bg"></div>
      <div class="bt-navbar">
        <div class="bt-appli" @click='applyRoute()'>申请经纪商</div>
        <h1>热线电话: +86 173 5471 8363</h1>
      </div>
    </div>
  </div>
</template>

<script>
  export default{
    data(){
      return{
        username:'',
        usertip:2,
        activeName: 'first',        
        select: '',
        scrollBottombar:false,
        scrollTopbar:false,
        regshow:2,
        checked:false,
        centerDialogVisible: false,
        Type:'sms',
        area:'中国',
        Authorization:'',
        loginform: {
          redirect_uri: 'http://33.cn',
          os: 'web',
          platform: 'fx66',
          broker_code: '04031632e48cd96e',
          type: 'sms',
          area: 86,
          password: '',
          mobile: '',
          email: '',
        },
        regform:{
          email:'',
          password:'',
          code:'',
          type:'sms',
          type:'',
          mobile:'',
          area:86,
          platkey:'zhaobi',
          codetype:'validate',
          param: 'FzmRandom',
        },
        carList:[
          {
            car:'car-1'
          },
          {
            car:'car-2'
          },
          {
            car:'car-3'
          }
        ],
        telarea:[],
        part1:[
          {
            clist:'1 、数字资产市场是全新的、未经确认的，而且可能不会增长。目前，数字资产主要由投机者大量使用，零售和商业市场使用相对较少。因此，数字资产价格易产生波动，并进而对数字资产投资产生不利影响。'
          },
          {
            alist:'2、因各国法律、法规和规范性文件的制定或者修改，数字资产交易随时可能被暂停、或被禁止。因此造成的经济损失全部由用户自行承担。'
          },
          {
            alist:'3、用户参与数字资产交易，需承受较高风险。用户应了解和理解此投资有可能导致部分损失或全部损失，所以用户应该以能承受的损失程度来决定投资的金额。'
          },
          {
            alist:'4 、用户应慎重考虑并用清晰的判断能力去评估自己的财政状况及上述各项风险而作出任何买卖数字资产的决定，并承担由此产生的全部损失，FX66对此不承担任何责任。'
          },
          {
            alist:'5 、用户了解FX66仅作为用户获取数字资产信息、寻找交易方、就数字资产的交易进行协商及开展交易的场所，FX66不参与用户的任何交易，故用户应自行谨慎判断确定相关数字资产及/或信息的真实性、合法性和有效性，并自行承担因此产生的责任与损失。'
          },
          {
            alist:'6、 FX66的任何意见、消息、探讨、分析、价格、建议和其他资讯均是一般的市场评论，并不构成投资建议。FX66不承担任何因依赖该资讯直接或间接而产生的损失，包括但不限于任何利润损失。'
          },
          {
            alist:'7、FX66的内容会随时更改并不作另行通知，FX66已采取合理措施确保网站资讯的准确性，但并不能保证其准确性程度，亦不会承担任何因FX66的资讯或因未能链结互联网、传送或接收任何通知和信息时的延误或失败而直接或间接产生的损失。'
          },
          {
            alist:'8、使用互联网形式的交易系统亦存有风险，包括但不限于软件，硬件和互联网链结的失败等。由于FX66不能控制互联网的可靠性和可用性，FX66不会对失真，延误和链结失败而承担任何责任。'
          }
        ],
        part2:[
          {
            blist:'为了维护金融稳定，防范洗钱风险。FX66将严格遵循相关法律，严格实行账户实名制，防范可能存在的金融风险。'
          },
          {
            blist:'1、FX66遵守和执行反洗钱法的规定，对用户进行身份识别、客户身份资料和交易记录保存制度，以及大额的和可疑交易报告的制度。'
          },
          {
            blist:'2、用户注册、挂失交易密码或者资金密码时，应当提供并上传身份证复印件，FX66对用户提供的身份证信息进行识别和比对。FX66有合理的理由怀疑用户使用虚假身份注册时，有权拒绝注册或者注销已经注册的账户。'
          },
          {
            blist:'3、FX66参照《金融机构大额交易和可疑交易报告管理办法》的规定，保存大额交易和有洗钱嫌疑的交易记录，在监管机构要求提供大额交易和可疑交易的记录时，向监管机构提供。'
          },
          {
            blist:'4、FX66对用户身份信息以及大额交易、可疑交易记录进行保存，依法协助、配合司法机关和行政执法机关打击洗钱活动，依照法律法规的规定协助司法机关、海关、税务等部门查询、冻结和扣划客户存款。'
          },
          {
            blist:'5、用户需要承诺在FX66注册的账户为本人操作，提供的所有证件，信息均真实有效。若在验证账户时发现提供的信息为虚假， 伪造或拒绝，虚假陈述资金来源及去向等，FX66有权在不通知用户的情况下冻结账户，并向公安机关举报。'
          }
        ],
        part3:[
          {
            clist:'1、FX66提供的信息（包括且不限于币种介绍、投资分析报告、预测文章信息及其他评论、数据、图表、指标、理论、直接的或暗示的指示）等仅供参考，FX66力求但不保证信息的准确性、完整。FX66不对因使用本网站全部或部分内容产生的或因依赖本网站内容而引致的任何损失承担任何责任。'
          },
          {
            clist:'2、FX66可能提供部分与其他网站的链接，前述链接仅为方便您的使用，FX66不对所链接网站的信息的真实性、有效性、合法性承担任何责任。'
          },
          {
            clist:'3、通过FX66服务购买或获取任何数据、信息或进行交易等行为或替代行为产生的费用及损失，包括但不限于收入损失，交易利润或合同损失，业务中断，预期可节省的货币的损失， 信息的损失，机会、商誉或声誉的损失，数据的损坏或损失，购买替代产品或服务的成本，数字资产消亡或退出市场，任何由于侵权（包括过失）、违约或其他任何原因产生的间接的、特殊的或附带性的损失或损害。'
          },
          {
            clist:'4、不论在何种情况下，FX66均不对由于信息网络正常的设备维护，信息网络连接故障，电脑、通讯或其他系统的故障，电力故障，罢工，劳动争议，暴乱，起义，骚乱，生产力或生产资料不足，火灾，洪水，风暴，爆炸，战争，政府行为，司法行政机关的命令或第三方的不作为而造成的不能服务或延迟服务承担责任。'
          },
          {
            clist:'5、基于互联网的特殊性，FX66不担保服务不会受中断，对服务的及时性、安全性都不作担保。FX66力图使用户能对本网站进行安全访问和使用，但FX66不能保证FX66包含的全部信息、程序、文本等完全安全，不受任何病毒、木马等恶意程序的干扰和破坏，故用户登陆、使用FX66任何服务或下载及使用该下载的任何程序、信息、数据等均是用户个人的决定并自行承担风险及可能产生的损失。'
          },
          {
            clist:'6、基于区块链交易平台的特殊性，FX66力图确保平台 365*24 小时保持在线。但FX66不能保证因 DDoS 攻击、服务器供应商暂停服务、网络供应商暂停服务或其他不可抗力等原因造成网站无法访问，交易大厅无法正常挂单、撤单，已挂单交易未能正常成交，区块链资产充提币长时间未到账等情况。由于以上原因造成用户资产损失的情况，FX66不承担任何责任。'
          },
          {
            clist:'7、用户有义务妥善保管好用户名和密码。通过用户的用户名和密码编辑、发布的任何信息或做出的任何行为都将被视为是用户自己的行为，对因此产生的任何损失FX66不承担任何责任。'
          },
          {
            clist:'8、任何非因FX66的原因而引起的与FX66服务有关的其它损失。'
          },
          {
            clist:'数字货币可能存在矿工预挖、庄家操控、团队解散、技术缺陷等问题，其价格波动较大，可能发生资产归零的风险。因此我们强烈建议您在自身能承受的风险范围内参与数字货币交易。请注意止盈止损，合理评估风险，请勿投入高于个人承受能力的金额！ 最终解释权归FX66所有。FX66感谢有您的陪伴！'
          }
        ],
        applyform:{},
      }
    },
    watch:{
      area: function(val){
        this.regform.area = val;
        this.loginform.area = val;
      },
      '$route':'changemsg',
    },
    methods:{
      handleScroll: function(){
        var scrollTop = document.documentElement.scrollTop || document.body.scrollTop;
        if (scrollTop!=0){
          this.scrollTopbar = true;
          if(scrollTop>790){
            this.scrollBottombar = true;
          }
          else{
            this.scrollBottombar = false;
          }
        }
        else{
          this.scrollTopbar = false;
        }
      },
      apply: function(){
        if(this.regshow==4){
          if(this.applyform.company!=undefined){
            this.$router.push({path:'/verify'});
          }else{
            this.$router.push({path:'/apply'});
          }
        }
        else{
          this.$notify({
              title:'提示',
              message: '请先登陆',
              type:'warning',
            })
        }
      },
      changetype: function(way,val){
        if (way=='reg'){
          if (val==2) {
            this.regform.type='sms';
          }else{
            this.regform.type='email';
          }
        }else if(way=='log'){
          if (val==2) {
            this.loginform.type='sms';
          }else{
            this.loginform.type='email';
          }
        } 
      },
      changeParam: function(val){
        if(val==1){
          this.regform.param='FzmRandom|FzmDateTime';
        }else if(val==2){
          this.regform.param='FzmRandom';
        }
      },
      toLogin: function(){
        const Form = this.loginform;
        console.log(Form);
        const param = new URLSearchParams();
        for(let item in Form){
          param.append(item,Form[item]);
        }

        this.axios.post('https://dev407.33.cn/api/broker/login',param).then((res)=>{
          const result = res.data;
          if(result.code!=200){
            console.log(result.message);
            this.$notify({
              title:'提示',
              message: result.message,
              type:'warning',
            })
          }else{
            this.$notify({
                title:'成功',
                message:'登陆成功',
                type:'success'
            })
            this.username = result.data.username;
            this.usertip = 1;
            this.regshow = 4;
            this.Authorization = 'Bearer '+result.data.access_token;
            sessionStorage.setItem('regshow',this.regshow);
            sessionStorage.setItem('usertip',this.usertip);
            sessionStorage.setItem('username',this.username);
            sessionStorage.setItem('token_code',this.Authorization);
            console.log('登陆成功');
            this.loadapplymsg();
          }
        })
      },
      toRegister: function(checked){
        const Form = this.regform;
        console.log(Form);
        const param = new URLSearchParams();
        for (let item in Form){
          param.append(item,Form[item]);
        }
        if(checked==false){
                this.$notify({
                title:'提示',
                message: '请阅读风险提示！',
                type:'warning',
                })
        }else{        
          this.axios.post('https://dev407.33.cn/api/broker/register',param).then((res)=>{
            const result = res.data;
              if(result.code!=200){
                console.log(result.message);
                this.$notify({
                  title:'提示',
                  message: result.message,
                  type:'warning',
                })
              }else{
                this.$notify({
                title:'成功',
                message:'注册成功',
                type:'success'
                })
                this.username = this.regform.email!=''? this.regform.email:this.regform.mobile;
                this.usertip = 1;
                this.regshow = 4;
                this.Authorization = 'Bearer '+result.data.access_token;
                sessionStorage.setItem('regshow',this.regshow);
                sessionStorage.setItem('usertip',this.usertip);
                sessionStorage.setItem('username',this.username);
                sessionStorage.setItem('token_code',this.Authorization);
                console.log('注册成功')
              }
          })
        }
      },
      toLoginOut: function(){
        this.axios({
          method: 'get',
          url: 'https://dev407.33.cn/api/member/loginout',
          headers: {Authorization: this.Authorization}
        }).then((res)=>{
          const result = res.data;
            if(result.code!=200){
              this.$notify({
                  title:'提示',
                  message: result.message,
                  type:'warning',
                })
            }else{
              this.$notify({
                title:'成功',
                message:'退出成功',
                type:'success'
              })
              this.regshow=2;
              this.usertip=2;
              this.username='';
              this.Authorization='';
              sessionStorage.setItem('regshow',this.regshow);
              sessionStorage.setItem('usertip',this.usertip);
              sessionStorage.setItem('username',this.username);
              sessionStorage.setItem('token_code',this.Authorization);
            }
        })
      },
      sendCode: function(){
        const Form = this.regform;
        const param = new URLSearchParams();
        for (let item in Form){
          param.append(item,Form[item]);
        }
        this.axios.post('https://dev407.33.cn/api/send/newsms',param).then((res)=>{
          const result = res.data;
          if(result.code!=200){
            console.log(result.message);
            this.$notify({
              title:'提示',
              message: result.message,
              type:'warning',
            })
          }else{
            this.username = result.data.username;
            this.regshow = 4;
            console.log('注册成功')
          }
        })
      },
      sendMail: function(){
        const Form = this.regform;
        const param = new URLSearchParams();
        for (let item in Form){
          param.append(item,Form[item]);
        }

        this.axios.post('https://dev407.33.cn/api/send/newmail',param).then((res)=>{
          const result = res.data;
          if(result.code!=200){
            console.log(result.message);
            this.$notify({
              title:'提示',
              message: result.message,
              type:'warning',
            })
          }else{
            console.log('发送成功')
          }
        })
      },
      changemsg: function(){
        this.regshow = sessionStorage.getItem('regshow')? sessionStorage.getItem('regshow'):2;
        this.usertip = sessionStorage.getItem('usertip')? sessionStorage.getItem('usertip'):2;
        this.username = sessionStorage.getItem('username')? sessionStorage.getItem('username'):'';
        this.Authorization = sessionStorage.getItem('token_code')? sessionStorage.getItem('token_code'):'';
      },
      applyRoute: function(){
        if(this.regshow==4){
          if(this.applyform.company!=undefined){
            this.$router.push({path:'/verify'});
          }else{
            this.$router.push({path:'/apply'});
          }
        }
        else{
          this.$router.push({path:'/apply'});
        }
      },
      loadapplymsg: function(){
        this.axios.get('https://dev407.33.cn/api/broker/applystatus',{headers:{Authorization: this.Authorization}}).then((res)=>{
          console.log(res.data.data.info);
          this.applyform = res.data.data.info;
        }).catch((err)=>{
          console.log(err);
        })
      }
    },
    mounted(){
      window.addEventListener('scroll', this.handleScroll);
      this.changemsg();     
      this.axios.get('https://dev407.33.cn/api/data/country',{}).then((res)=>{
        this.telarea = res.data.data;
      })
      .catch((err)=>{
        console.log(err);
      });
    }
  }

</script>


<style scoped>
.mbanner{
  position: relative;
  height: 900px;
  .carousel{
    position: absolute;
    width: 100%;
    height: 900px;  
  }
  .hot{
    position: relative;
    margin: -75px 0 0 80px;
    background-color: #ff4e00;
    color: #fff;
    display: block;
    width: 38px;
    height: 18px;
    line-height: 18px;
    font-size: 12px;
    border-radius: 2px;
    top: 8px;
    right: 0;
  }
  .hot:after{
    content: "";
    width: 0;
    height: 0;
    position: absolute;
    z-index: -1;
    bottom: 0;
    left: 30%;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 14px solid #ff4e00;
    margin-bottom: -8px;
    transform: rotate(30deg);
  }
  .car-1{
    height: 900px;
    background: url(../../assets/img/banner.png) no-repeat center top;    
  }
  .car-2{
    height: 900px;
    background: url(../../assets/img/banner1.png) no-repeat center top;   
  }
  .car-3{
    height: 900px;
    background: url(../../assets/img/banner2.png) no-repeat center top;   
  }
  .statement-public{
    text-align: left;
    background-color: #f6f6f6;
    padding: 30px;
    height: 500px;
    overflow: auto;
    h4{
      font-size: 16px;
      color: #165e8d;
      line-height: 24px;
      font-weight: 500px;
    }
    .part-title{
      margin-top: 30px;
    }
  }
  .statement-public::-webkit-scrollbar {
    display: none;
  }
  .read{
    width: 140px;
    height: 40px;
    border-radius: 20px;
    background-color: #1a6fa6;
    border: 0;
    font-size: 18px;
    color: #fff;
    cursor: pointer;
  }
  .bg-topbar{
    z-index: 30;
    position: fixed;
    top: 0;
    width: 100%;
    .b-bg{
      position: absolute;
      width: 100%;
      height: 75px;
      background-color: rgba(0, 0, 0, 0.2);
      opacity: 0.8;
    }
    .b-navbar{
      position: relative;
      margin: 0 auto;
      width: 1200px;
      height: 75px;
      color: #fff;
      .left{
        float: left;
        line-height: 75px;
        img{
          margin-top: 20px;
        }
        p{
          font-family: MicrosoftYaHei;
          font-size: 14px;
          line-height: 24px;
          color: #fff;
          line-height: 75px;
        }
      }

        .user{
          display: inline;
          float: right;
          margin-top: 25px;
          span{
            float: left;
            cursor: pointer;
            margin-left: 30px;
          }
          p{
            float: right;
            margin-left: 5px;
            font-size: 14px;
          }
          img{
            width: 20px;
          }
        }
      
      .nav-log{
        float: right;
        height: 17px;
        width: 50px;
        font-size: 14px;
      }
      .nav-register{
        float: right;
        height: 17px;
        width: 50px;
        font-size: 14px;
        border-right: 1px solid #60c0ff;
      }
      .r-act{
        color: #60c0ff;
      }
      .logo{
        margin-right: 55px;
        img{
          width: 98px;
          height: 33px;
        }
      }
      .nav-title{
        width: 118px;
        cursor: pointer;
      }
      .active{
        background: #fff;
        p{
        color: #1a6fa6;
        }
      }
    }
  }
  .bartwo{
    .b-bg{
      background-color: rgba(255, 255, 255, 1);
      opacity: 1;
    }
    p{
      color: #333 !important;
    }
    .active{
      background: #1a6fa6 !important;
      p{
        color: #fff !important;
      }
    }
    
  }
  .widcen{
    width: 1200px;
    margin: 0 auto;
  }
  .appli{
    position: relative;
    margin-right: 1000px;
    top: 430px;
    width: 155px;
    height: 43px;
    background-color: #ffdf00;
    cursor: pointer;
    line-height: 43px;
    font-size: 16px;
    color: #154bb2;
  }
  .islogin{
    position: relative;
    width: 1200px;
    margin: 0 auto;
    .box{
      position: relative;
      margin-top: 180px;
      left: 810px;
      width: 390px;
      background-color: hsla(0,0%,100%,.4);
      padding: 15px;
      position: absolute;
      right: 0;
      top: 0;
      z-index: 50;
      z-index: 20;
      .innerbox{
        background-color: #fff;
        padding: 50px 20px 46px;
        color: #333;
        .user-msg{
          font-size: 25px;
          color: #1a6fa6;
        }
        .apply{
          margin-top: 50px;
          width: 100%;
          height: 50px;
          line-height: 50px;
          border: 1px solid #d2d2d2;
          background-color: transparent;
          margin-bottom: 20px;
          font-size: 18px;
          cursor: pointer;
        }
      }
    } 
  }
  .login{
    position: relative;
    width: 1200px;
    margin: 0 auto;
  
  /*登陆样式*/
    .box{
      z-index: 20;
      position: relative;
      top: 180px;
      left: 810px;
      width: 390px;
      height: 400px;
      padding: 15px;
      background-color: hsla(0,0%,100%,.4);
      .innerbox{
        width: 360px;
        height: 370px;
        background: #fff;
        padding: 50px 20px 0;
        color: #333;
        .login-line:nth-of-type(1){
          margin-top: 20px;
        }
        .login-line{
          position: relative;
          width: 310px;
          height: 50px;
          line-height: 50px;
          margin: 0 auto;
          border: 1px solid #dcdcdc;
          text-align: left;
          margin-bottom: 10px;
        }
        .icode{
          position: relative;
          width: 160px;
          height: 50px;
          line-height: 50px;
          margin-left: 5px;
          border: 1px solid #dcdcdc;
          text-align: left;
          margin-bottom: 15px;
          input{
            position: absolute;
            margin-top: 10px;
            padding-left: 10px;
            line-height: 30px;
            border: 0;
            font-size: 14px;
            width: 140px;
          }
        }
        .icode-btn{
/*          position: relative;
          top: -65px;
          left: 180px;*/
          margin-top: -65px;
          margin-left: 180px;
          width: 134px;
          height: 50px;
          background-color: #ffe366;
          font-size: 14px;
          line-height: 50px;
          color: #333333;
          cursor: pointer;
        }
        .login-line span{
          display: inline-block;
          width: 50px;
          height: 50px;
          text-align: center;
          border-right: 1px solid #dcdcdc;
          img{
            padding-top: 10px;
            width: 24px;
          }
        }
        .login-line input{
          position: absolute;
          margin-top: 10px;
          padding-left: 10px;
          line-height: 30px;
          border: 0;
          font-size: 14px;
          width: 250px;
        }
        .tip-line{
            font-size: 14px;
            line-height: 24px;
            color: #333333;
            padding: 5px;
            .forget{
              float: left;
              cursor: pointer;
            }
        }
        .switch-box{
          display: inline-block;
          font-size: 14px;
          line-height: 24px;
          color: #1a6fa6;
          float: right;
          cursor: pointer;
        }
        .login-btn{
          width: 150px;
          height: 50px;
          margin-top: 30px;
          background-color: #1a6fa6;
          border: none;
          font-size: 18px;
          line-height: 24px;
          color: #ffffff;
          cursor: pointer;
        }
      }
    }
  }
  /*注册样式*/
  .register,.getback{
    position: relative;
    width: 1200px;
    margin: 0 auto;
    height: 400px;
    .box{
      z-index: 20;
      position: relative;
      top: 180px;
      left: 810px;
      width: 390px;
      height: 460px;
      padding: 15px;
      background-color: hsla(0,0%,100%,.4);
      .innerbox{
        width: 360px;
        height: 430px;
        background: #fff;
        padding: 50px 20px 0;
        color: #333;
        .login-line:nth-of-type(1){
          margin-top: 20px;
        }
        .login-line{
          position: relative;
          width: 310px;
          height: 50px;
          line-height: 50px;
          margin: 0 auto;
          border: 1px solid #dcdcdc;
          text-align: left;
          margin-bottom: 10px;
        }
        .icode{
          position: relative;
          width: 160px;
          height: 50px;
          line-height: 50px;
          margin-left: 5px;
          border: 1px solid #dcdcdc;
          text-align: left;
          margin-bottom: 15px;
          input{
            position: absolute;
            margin-top: 10px;
            padding-left: 10px;
            line-height: 30px;
            border: 0;
            font-size: 14px;
            width: 140px;
          }
        }
        .icode-btn{
/*          position: relative;
          top: -65px;
          left: 180px;*/
          margin-top: -65px;
          margin-left: 180px;
          width: 134px;
          height: 50px;
          background-color: #ffe366;
          font-size: 14px;
          line-height: 50px;
          color: #333333;
          cursor: pointer;
        }
        .login-line span{
          display: inline-block;
          width: 50px;
          height: 50px;
          text-align: center;
          border-right: 1px solid #dcdcdc;
          img{
            padding-top: 10px; 
            width: 24px;
          }
        }
        .login-line input{
          position: absolute;
          margin-top: 10px;
          padding-left: 10px;
          line-height: 30px;
          border: 0;
          font-size: 14px;
          width: 250px;
        }
        .icode-line{
          width: 310px;
          height: 50px;
          line-height: 50px;
          margin: 0 auto;
          text-align: left;
          margin-bottom: 10px;
          button{
            width: 130px;
            height: 50px;
            background: #ffe366;
            border: 0;
            position: absolute;
            margin-left: 10px;
            font-size: 14px;
            color: #666;
            cursor: pointer;
          }
        }
        .icode-line input{
          border: 1px solid #dcdcdc;
          height: 50px;
          padding-left: 10px;
          line-height: 30px;
          font-size: 14px;
        }
        .tip-line{
            font-size: 14px;
            line-height: 24px;
            color: #333333;
            padding: 5px;
            .forget{
              float: left;
            }
            p{
              display: inline-block;
              color: #1a6fa6;
              cursor: pointer;
            }
            #tip{
              float: left;
              margin-right: 10px;
            }
        }
        .switch-box{
          display: inline-block;
          font-size: 14px;
          line-height: 24px;
          color: #1a6fa6;
          float: right;
          cursor: pointer;
        }
        .login-btn{
          width: 150px;
          height: 50px;
          margin-top: 30px;
          background-color: #1a6fa6;
          border: none;
          font-size: 18px;
          line-height: 24px;
          color: #ffffff;
          cursor: pointer;
        }
      }
    }
  }
  .getback{
    .passw{
      width: 180px !important;
    }
    .keyboard{
      float: right;
      border: none;
      height: 32px;
      margin-top: 8px;
      img{
        width: 32px;
      }
    }
    .login-btn{
      margin-top: 20px !important;
      margin-left: 80px;
      cursor: pointer;
    }
    .switch-box{
      margin-top: -10px;
    }
    .box{
      height: auto;
      .innerbox{
        height: auto;
      }
      .login-btn{
        margin-bottom: 30px;
      }
    }

  }
  .bt-bar{
    z-index: 30;
    position: absolute;
    bottom: 0;
    width: 100%;
    .bt-bg{
      position: absolute;
      width: 100%;
      height: 95px;
      background-color: rgba(0, 0, 0, 0.46);
      opacity: 0.8;
    }
    .bt-navbar{
      position: relative;
      margin: 0 auto;
      width: 1200px;
      height: 95px;
      .bt-appli{
        float: left;
        margin-top: 30px;
        margin-left: 328px;
        width: 140px;
        height: 40px;
        border-radius: 20px;
        background-color: #1a6fa6;
        font-size: 18px;
        font-weight: 700;
        line-height: 40px;
        color: #ffffff;
        cursor: pointer;
      }
      h1{
        float: left;
        margin-left: 60px;
        font-size: 25px;
        font-weight: 700;
        line-height: 95px;
        color: #ffffff;
      }
    }
  }
  .bt-bartwo{
    position: fixed;
  }
}
.slect{
  margin-top: 5px;
}
    
</style>

<style>
.mbanner{
	.el-tabs__nav{
  	margin-left: 60px;
  }
  .el-tabs__item{
  	font-family: MicrosoftYaHeiLight;
		font-size: 20px;
		line-height: 24px;
		color: #333333;
  }
  .is-active{
  	color: #1a6fa6;
  }
  .el-tabs__active-bar{
  	background-color: #1a6fa6;
  }
  .el-select{
    width: 50px;
    border-radius: 0;
  }
  .el-input__inner{
		padding: 0 3px;
  	height: 49px;
  	border-radius: 0;
  	font-size: 12px;
  }
  .el-input__suffix{
  	right: 1px;
  }
  .input-with-select .el-input-group__prepend {
    background-color: #fff;
  }
  .is-focus:not(:active){
  	box-shadow: none !important;
  	border-radius: 0 !important;
  }
  .el-dialog__header{
  	padding-top: 30px;
  }
  .el-dialog__title{
  	color: #165e8d;
    font-size: 24px;
    line-height: 24px;
    font-weight: 700;
  }
  .el-dialog__headerbtn{
		font-size: 25px;
  }
  .el-dialog__close{
    color: #bfcbd9;
  }
  .el-dialog{
  	width: 1100px;
  }
  .el-dialog__body{
  	padding-bottom: 5px;
  }
	.el-dialog__footer{
		text-align: center;
	}
}
</style>