<template>
  <div class="apply-block">
    <indexHeader></indexHeader>
    <div class="apply-content">
      <div class="banner-box">
        <img src="../../assets/img/apply/banner.png" alt="">
      </div>
      <div class="indextab">
        <el-steps :active="3" :align-center="true">
          <el-step title="填写申请信息"></el-step>
          <el-step title="审核中"></el-step>
          <el-step title="申请通过"></el-step>
        </el-steps>
      </div>
      <div class="apply-form" v-if="show1">
        <div class="tab-line">
          <h2>经纪商申请</h2>
        </div>
        <div class="apply-form-box">
          <div class="left-part part2">
            <h4>经济商申请标准:</h4>
            <h5>经纪商是需要具有一定资源并能独立运营的公司、机构或团体。</h5>
            <p>1.经纪商所辖客户交易手续费的70%为返佣；</p>
            <p>2.经纪商可自行设置客户的提款手续费标准；</p>
            <p>3.经纪商可招募代理商，并在经纪商后台调整代理商返佣标准；</p>
            <p>4.经纪商所辖客户有不当得利的行为（恶意刷单、利用BUG等），手续费不返还；</p>
            <p>5.经纪商可在后台查看直发客户及代理客户的交易统计表；</p>
          </div>
          <div class="right-part" id="containDiv">
            <el-form v-model="applyform" label-width="138px">
              <el-form-item label="公司/机构名称:">
                <el-input v-model="applyform.name" placeholder="请输入您所在的公司或者机构名称"></el-input>
              </el-form-item>
              <el-form-item label="姓名:">
                <el-input v-model="applyform.name" placeholder="请输入您的姓名"></el-input>
              </el-form-item>
              <el-form-item label="手机号:">
                <el-input v-model="applyform.name" placeholder="请输入您的手机号码"></el-input>
              </el-form-item>
              <!-- <el-form-item label="其他联系方式:" class="textareabox">
                <textarea  cols="30" rows="2" v-model="applyform.desc" placeholder="请输入您的其他联系方式 如：微信、邮箱等"></textarea>
              </el-form-item> -->
              <el-form-item label="活动形式">
                <el-input type="textarea" v-model="applyform.name" placeholder="请输入您的其他联系方式 如：微信、邮箱等"></el-input>
              </el-form-item>
              <el-form-item label="所在地:" class="location-box">
                <el-select v-model="locationGroup.country" class="firstbox" clearable placeholder="所属国家">
                  <el-option
                    v-for="item in countryOptions"
                    :key="item.value"
                    :label="item.label"
                    :value="item.value">
                  </el-option>
                </el-select>
                <el-select v-model="locationGroup.city" class="firstbox" clearable placeholder="所属城市">
                  <el-option
                    v-for="item in cityOptions"
                    :key="item.value"
                    :label="item.label"
                    :value="item.value">
                  </el-option>
                </el-select>
              </el-form-item>
              <el-form-item>
                <el-button @click="applyNow">立即申请</el-button>  
              </el-form-item>
            </el-form>
            <p class="tip">
              *您好，我们尊重每一个客户的隐私。
              一旦提交了以上内容则表明您同意FX66使用以上提供的信息与您联系，为您解答您所咨询的产品及服务。
            </p>
          </div>
        </div>
        <div class="server-block">
          <div class="tt-line">
            <hr>
            <h3>联系我们 快速申请</h3>
            <hr>
          </div>         
          <h4 class="sub-title">Contact us for quick application</h4>
          <ul class="serverList">
            <li 
              v-for="(item,index) in contactList" 
              @mouseenter="showBtn3('contactList',1,index)" 
              @mouseleave="showBtn3('contactList',0,index)">
              <img v-show="item.state===0" :src="item.baseUrl" alt="">
              <img v-show="item.state===1" :src="item.hoverUrl" alt="">
              <p v-for="i in item.text">{{i}}</p>
            </li>
          </ul>
        </div>
      </div>
      <div class="success-apply" v-if="show3">
        <div class="tab-line">
          <h2>经纪商申请</h2>
        </div>
        <p>
          <i class="el-icon-circle-check"></i>
        </p>
        <h5>恭喜您已经成功申请成为经济商！</h5>
        <p>您可用现在的账号和密码登录后台！如有疑问，可联系我们！</p>
        <button>登录后台</button>
      </div>
      <!-- 弹框立即申请 -->
      <div class="dialogapply">
        <el-dialog
        class="dialog-content"
          :visible.sync="dialogVisible">
          <span class="content"><i class="el-icon-circle-check"></i>您的申请已经提交成功！</span>
          <p>我们会尽快通过电话与您沟通，请保持手机畅通，谢谢！</p>
        </el-dialog>
      </div>
      <!-- 弹框登录提示 -->
      <div class="dialogapply">
        <el-dialog
        class="dialog-content"
          :visible.sync="dialogtit">
          <span class="content"><i class="el-icon-information"></i>登陆后才可申请经济商！</span><br>
          <button>立即登陆</button>
        </el-dialog>
      </div>
    </div>
  </div>
</template>

<script>
import indexHeader from "../../components/header.vue"
// import indexFooter from "../../components/footer.vue"
import location from "../../components/location.vue"
export default{
  data(){
    return{
      dialogtit:false,
      dialogVisible:false,
      show3: false,
      show1: true,
      applycheck:true,
      applyItem:1,
      locationData:[
        {
          name:"申请代理",
          link:"/apply"
        },
      ],
      contactList:[
        {
          baseUrl:"static/img/apply/phone.png",
          hoverUrl:"static/img/apply/phoneHover.png",
          state:0,
          text:["400-1566-899"],
        },
        {
          baseUrl:"static/img/apply/qq.png",
          hoverUrl:"static/img/apply/qqHover.png",
          state:0,
          text:["345106800","545967811"],
        },
        {
          baseUrl:"static/img/apply/wx.png",
          hoverUrl:"static/img/apply/wxHover.png",
          state:0,
          text:["326982014@qq.com"],
        },
      ],
      applyform:{
        name:"",
        desc:'',
      },
      locationGroup:{
        country:"",
        city:""
      },
      countryOptions:[
        {
          value: '选项1',
          label: '黄金糕'
        },
        {
          value: '选项2',
          label: '双皮奶'
        },
        {
          value: '选项3',
          label: '蚵仔煎'
        },
        {
          value: '选项4',
          label: '龙须面'
        },
      ],
      cityOptions:[
        {
          value: '选项1',
          label: '黄金糕'
        },
        {
          value: '选项2',
          label: '双皮奶'
        },
        {
          value: '选项3',
          label: '蚵仔煎'
        },
        {
          value: '选项4',
          label: '龙须面'
        },
      ],
      serverBlock:[
        {
          name:'1',
          text:"FX66具备一键交易功能，<br/>闪电交易，专业快捷!",
          state:0,
        },
        {
          name:'2',
          text:"FX66具备一键交易功能，<br/>闪电交易，专业快捷!",
          state:0,
        },
        {
          name:'3',
          text:"FX66具备一键交易功能，<br/>闪电交易，专业快捷!",
          state:0,
        },
        {
          name:'4',
          text:"FX66具备一键交易功能，<br/>闪电交易，专业快捷!",
          state:0,
        },
      ],
    }
  },
  components:{
    indexHeader,
    // indexFooter,
    location
  },
  mounted(){
  },
  methods:{
    showBtn3(key,val,index){
      this[key][index].state=val;     
    },
    applyNow(){
      this.dialogtit=true;
    }
  }
}
</script>
<style>
.apply-content{
  .el-button, .el-textarea__inner{
    min-height: 40px;
    max-height: 150px;
  }
}
</style>
<style scoped>
.apply-content{
  padding-top:75px;
  .tt-line{
    display: flex;
    align-items: center;
    justify-content: space-between;
    h3{
      font-size: 35px;
      font-weight: bold;
      line-height: 1;
    }
    hr{
      width: 420px;
      height: 1px;
      background-color: #e5e5e5;
      border:0;
    }
  }
  .sub-title{
    font-size: 20px;
    color: #999;
    margin-top: 12px;
  }
  .server-block{
    /*height: 600px;*/
    width: 1200px;
    margin: 0 auto;
    padding-top: 50px;
    .serverList{
      margin-top: 50px;
      padding: 0 188px 70px 188px;
      display: flex;
      justify-content:space-between;
      img{
        margin-bottom:20px;
      }
      p{
        line-height: 1;
        font-size: 20px;
        margin-bottom: 10px;
      }
      p:last-child{
        margin-bottom: 0;
      }
    }
  }
  .apply-form{
    background: #fff;
    width: 1200px;
    margin: 0 auto 20px auto;
    .tab-line{
      border-bottom: 1px solid #e5e5e5;
      margin-bottom: 50px;
      height: 80px;
      h2{
        line-height: 80px;
        font-size: 24px;
        font-weight: bold;
      }
    }
    &-box{
      text-align: left;
      margin: 0 75px;            
      color: #333;
      display: flex;
      .change-box{
        text-align: center;
        font-size: 28px;
        line-height: 80px;
        color: #fff;
        width: 30px;
        height: 80px;
        background: #1697f3;
        margin-top: 180px;
      }
      .right-part{
        width: 480px !important;
        /*margin: 0 auto;*/
        /*flex: 1;*/
        margin-left: 40px;
        .tip{
          padding-left: 28px;
          color: #3884d3;
          font-size: 14px;
        }
        .el-form{
          .el-input__inner{
            border-radius: 0;
            border-color: #bfbfbf;
          }
          .el-button{
            display: block;
            width: 100%;
            border: 0;
            border-radius: 0;
            background-color: #0176c3;
            color: #fff;
            height: 40px;
            line-height: 40px;
            padding-top: 0;
          }
          .textareabox{
            textarea{
              width: 342px!important;
              min-height: 70px;
              max-height: 120px;
              border:1px solid #bfcbd9;
              border-radius: 4px;
              padding:8px 10px;
            }
          }
          .location-box{
            .firstbox{
              width: 165px;
            }
            .el-form-item__content{
              display: flex;
            }
            .el-select+.el-select{
              margin-left: 8px;
            }
          }
          
        }
      }
      .left-part{
        width: 530px;
        border:1px solid #e5e5e5;
        padding: 20px;
        position: relative;
        &.part2{
          height: 320px;
        }
        h4{
          font-size: 16px;
          line-height: 1;
        }
        h5{
          color:#0176c3;
          margin-top: 20px;
          font-size: 14px;
        }
        p{
          margin-top: 20px;
          font-size: 14px;
        }
        &:before{
          content: "";
          position: absolute;
          top: 50%;
          right: -10px;
          transform: translateY(-50%);
          display: block;
          border-left: 10px solid #e5e5e5;
          border-top: 10px solid transparent;
          border-bottom: 10px solid transparent;
        }
        &:after{
          content: "";
          position: absolute;
          top: 50%;
          right: -8px;
          transform: translateY(-50%);
          display: block;
          border-left: 8px solid #fff;
          border-top: 8px solid transparent;
          border-bottom: 8px solid transparent;
        }
      }     
    }
  }
  .indextab{
    width: 1200px;
    height: 110px;
    background: #fff;
    margin: 0 auto;
    margin-bottom: 10px;
    padding-left: 280px;
    padding-top: 20px;  
  }
  .success-apply{
    width: 1200px;
    background: #fff;
    margin: 0 auto;
    margin-bottom: 10px;
    .tab-line{
      border-bottom: 1px solid #e5e5e5;
      margin-bottom: 50px;
      height: 80px;
      h2{
        line-height: 80px;
        font-size: 24px;
        font-weight: bold;
      }
    }
    p{
      color: #666;
      font-size: 12px;
      i{
        font-size: 50px;
        color: green;
      }
    }
    h5{
        line-height: 80px;
        font-size: 24px;
        font-weight: bold;
    }
    button{
      border: 1px solid #e5e5e5;
      color: #1a6fa6;
      height: 35px;
      width: 120px;
      border-radius: 25px;
      margin-top: 30px;
      margin-bottom: 60px;
      font-size: 16px;
      font-weight: bold;
      transition: all 0.3s ease 0s;
      -moz-transition: all 0.3s ease 0s;
      -webkit-transition: all 0.3s ease 0s;
      -o-transition: all 0.3s ease 0s;
      cursor: pointer;
    }
    button:hover{
      background: #1a6fa6;
      color: #fff;
    }
  }
  .dialogapply{
    .dialog-content{
      width: 1200px!important;
      left: 50%;
      margin-left: -600px;
      button{
        border: 1px solid #e5e5e5;
        color: #1a6fa6;
        height: 35px;
        width: 120px;
        border-radius: 25px;
        margin-top: 30px;
        margin-bottom: 40px;
        font-size: 16px;
        font-weight: bold;
        transition: all 0.3s ease 0s;
        -moz-transition: all 0.3s ease 0s;
        -webkit-transition: all 0.3s ease 0s;
        -o-transition: all 0.3s ease 0s;
        cursor: pointer;
      }
      button:hover{
        background: #1a6fa6;
        color: #fff;
      }
    }
    .content{
      font-size: 24px;
      color: #1a6fa6;
      i{
        font-size: 26px;
        margin-right: 10px;
      }

    }
    p{
      margin-top: 20px;
      margin-bottom: 70px;
    }
  }
  .banner-box{
    height: 400px;
    position: relative;
    overflow: hidden;
    margin-bottom: 10px;
    img{
      height: 100%;
      position: relative;
      left: 50%;
      transform: translateX(-50%);
    }
  } 
}
</style> 