<template>
  <div style="background: #f0f0f0;padding-bottom:50px">
    <div class="banner">
      <img src="~@/assets/images/yzrc.jpg" alt="">
    </div>
    <div class="bread">
      <div>
        <span>当前位置:首页-优质人才</span>
      </div>
    </div>
    <div class="smart-device">
      <div class="smart-title">
        <span><span>企业招聘</span>ENTERPRISE RECRUITMENT</span>
      </div>
      <div class="smart-device-content">
        <div class="list-content">
          <div v-if="active==1" class="case-list">
            <div class="case-content">
              <ul class="list-table">
                <li style="background:">
                  <div>
                    <p>
                      {{ detail.name }}
                    </p>
                  </div>
                  <div>
                    <p>
                      {{ detail.peopleNumber }}名
                    </p>
                  </div>
                  <div>
                    <p>
                      {{ detail.company }}
                    </p>
                  </div>
                  <div>
                    <p>
                      发布日期{{ detail.createTime }}
                    </p>
                  </div>
                </li>
                <div style="background: #fff;" class="job-detail">
                  <div>
                    招聘要求：{{ detail.workRequire }}
                  </div>
                  <div>
                    工作经验要求：{{ detail.recruitRecruit }}
                  </div>
                  <div class="join-op" @click="detail1(1)">
                    <span>申请职位</span>
                  </div>
                </div>

              </ul>
            </div>
          </div>
        </div>
      </div>
    </div>
    <Message :show-dialog="showInfo" @closePop="closeMessage" />
  </div>
</template>

<script>
import Message from '@/views/message/index'
export default {
    components: {
        Message
    },
    data() {
        return {
            showInfo: false,
            active: 1,
            detail: {}
        }
    },
    mounted() {
        document.documentElement.scrollTop = document.body.scrollTop = 0 // 回到顶部
        this.detail = this.$route.query
    },
    methods: {
        closeMessage() {
            this.showInfo = false
        },
        detail1(index) {
            // this.$router.push({path:'/zhaoshang/detail1?smallType='+index})
            this.showInfo = true
        }
    }
}
</script>

<style scoped>
    .banner img{
        width: 100% !important;
    }
    .join-op{
        text-align: center;
    }
    .join-op span{
        display: inline-block;
        background: #996eee;
        color: #fff;
        padding: 10px 30px;
    }
    @media screen and (min-width: 1000px){
        .bread{
            background: #fff;
        }
        .bread div{
            width: 1200px;
            margin: 0 auto;
            text-align: left;
            padding: 0.8rem 0;
            font-size: 1rem;
        }
        .smart-title{
            margin-top:2rem;
            margin-bottom:2rem;
        }
        .smart-device{
            width: 1200px;
            margin: 0 auto;
            text-align: left;
            font-size: 1rem;
        }
        .smart-device span span{
            font-size: 2rem;
            display: inline-block;
            position: relative;
            padding-right: 1rem;
            margin-right: 1rem;
            font-weight: 900;
        }
        .smart-device span span:after{
            content: '';
            width: 1px;
            height: 15px;
            background: #666;
            position: absolute;
            right: 0;
            bottom: 7px;
        }
        .device-title img{
            width: 80%;
        }
        .nav-list{
            display: flex;
            justify-content: center;
            flex-wrap: nowrap;
            margin: 2rem auto;
            width: 50%;
        }
        .nav-list li{
            min-width: 33.33%;
            max-width: 33.33%;
            text-align: center;
            color: #666;
            font-size: 0.8rem;
            cursor: pointer;
        }
        .nav-list li span{
            border-bottom: 2px solid #f0f0f0;
            padding-bottom: 0.8rem;
        }
        .active span{
            display: inline-block;
            border-bottom: 2px solid #FF6A00!important;
            color: #333;
        }
        .list-table li{
            overflow: hidden;
            width: 100%;
            background: #996eee;
            padding: 1rem 0;
            display: flex;
        }
        .list-table li>div{
            flex: 1;
            text-align: center;
            overflow: hidden;
            color: #fff;
        }
        .list-table li>div button{
            background: #fff;
            border: none;
            color: #333;
        }
        /*.list-table li>div:nth-child(1){*/
        /*    width: 20%;*/
        /*    text-align: center;*/
        /*}*/
        /*.list-table li>div:nth-child(2){*/
        /*    width: 60%;*/
        /*}*/
        /*.list-table li>div:nth-child(3){*/
        /*    width: 20%;*/
        /*    text-align: right;*/
        /*}*/
        /*.list-table li>div:nth-child(3) span{*/
        /*    margin-right: 1rem;*/
        /*}*/
    }
    @media screen and (max-width: 1000px){
        .banner{
            display: none;
        }
        .bread{
            display: none;
        }
        .smart-title{
            margin-top:2rem;
            margin-bottom:2rem;
        }
        .smart-title span span{
            font-size: 0.8rem;
        }
        .smart-title span{
            font-size: 0.6rem;
        }
        .smart-device{
            width: 90%;
            margin: 0 auto;
            text-align: left;
            font-size: 1rem;
            overflow: hidden;
        }
        .smart-device span span{
            font-size: 1.5rem;
            display: inline-block;
            position: relative;
            padding-right: 1rem;
            margin-right: 1rem;
            font-weight: 900;
        }
        .smart-device span span:after{
            content: '';
            width: 1px;
            height: 15px;
            background: #666;
            position: absolute;
            right: 0;
            bottom: 7px;
        }
        .device-title img{
            width: 100%;
        }
        .nav-list{
            display: flex;
            justify-content: center;
            flex-wrap: nowrap;
            margin: 2rem;
        }
        .nav-list li{
            min-width: 33.33%;
            max-width: 33.33%;
            text-align: center;
            color: #666;
            font-size: 0.8rem;
            cursor: pointer;
        }
        .nav-list li span{
            border-bottom: 2px solid #f0f0f0;
            padding-bottom: 0.8rem;
        }
        .active span{
            display: inline-block;
            border-bottom: 2px solid #FF6A00!important;
            color: #333;
            font-weight:800!important;
        }
        .list-table li{
            overflow: hidden;
            width: 100%;
            background: #996eee;
            display: flex;
            flex-wrap: wrap;
        }
        .list-table li>div{
            width: 50%;
            overflow: hidden;
            color: #fff;
            margin: 0.5rem 0;
        }
        .list-table li>div p{
            width: 88%;
            margin: 0 auto;
            font-size: 0.8rem;
        }
        /*.list-table li>div:nth-child(1){*/
        /*    width: 30%;*/
        /*    text-align: center;*/
        /*}*/
        /*.list-table li>div:last-child{*/
        /*    text-align: right;*/
        /*    margin-right: 1rem;*/

        /*}*/
        .list-table li>div button{
            background: #fff;
            border: none;
            color: #333;
        }

    }
    .list-table{
        width: 100%;
    }
    .list-table p{
        white-space:nowrap;
        overflow: hidden;
    }
    .join-policy h3{
        margin: 1rem 0;
    }
    .join-policy p{
        line-height: 2rem;
    }
    .job-detail>div{
        width: 90%;
        margin: 0 auto;
        padding: 1rem 0;
    }
    .job-detail>div p{
        line-height: 2rem;
        font-size: 0.8rem;
    }
</style>
