<template>
    <div class="rencaifuwu">
        <img style="width: 100%; height: 450px; object-fit: cover" src="/assets/ability/userBanner.png" alt="" />
        <div class="content container">
            <div class="titlePeo" style="margin-top: 60px; margin-bottom: 50px">
                <div class="titletopt">
                    <img src="/assets/homepage/rihhj.png" alt="" />
                    <p>优选企业岗位</p>
                    <img src="/assets/homepage/lesftt.png" alt="" />
                </div>
            </div>
            <div class="itemBox">
                <div class="itemb" v-for="it in 3" :key="it" @click="dodetail">
                    <div class="itembT">
                        <div class="itembTT">
                            <div class="itembTTL">嵌入式软件测试工程师(偶尔出差)</div>
                            <div class="itembTTR">6-10K</div>
                        </div>
                        <div class="itembTB">
                            <div class="itembTBit">北京</div>
                            <div class="itembTBit">1-3年经验</div>
                            <div class="itembTBit">本科</div>
                            <div class="itembTBit">嵌入式</div>
                        </div>
                    </div>
                    <div class="itembB">
                        <div class="itembBL">北京关键科技股份有限公司</div>
                        <div class="itembBR">计算机软件</div>
                    </div>
                </div>
            </div>
        </div>

        <div class="pavan container">
            <el-pagination
                background
                @size-change="handleSizeChange"
                @current-change="handleCurrentChange"
                :current-page="queryParams.pageNum"
                :page-sizes="[10, 20, 30, 50]"
                :page-size="queryParams.pageSize"
                layout="total, sizes, prev, pager, next, jumper"
                :total="total"
            >
            </el-pagination>
        </div>
    </div>
</template>
<script>
import { mapGetters } from 'vuex'
export default {
    data() {
        return {
            total: 0,
            queryParams: {
                pageNum: 1,
                pageSize: 10,
            },
        }
    },
    mounted() {},
    beforeDestroy() {},
    computed: {
        ...mapGetters(['userinform', 'token']),
    },
    methods: {
        handleSizeChange(val) {
            console.log(`每页 ${val} 条`)
        },
        handleCurrentChange(val) {
            console.log(`当前页: ${val}`)
        },
        dodetail() {
            this.$router.push('/ability/detail')
        },
    },
}
</script>

<style scoped>
.container {
    width: 1200px;
    margin: auto;
}

.titlePeo p {
    font-weight: bold !important;
    font-size: 32px !important;
    color: #1a1a1a;
    margin: 0 15px;
}
.titletopt {
    display: flex;
    justify-content: center;
    align-items: center;
}

.pavan {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 60px;
    margin-top: 35px;
}
.itemBox {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}
.itemb {
    width: 585px;
    height: 185px;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0px 4px 27px 3px rgba(16, 60, 117, 0.1);
    border-radius: 6px;
    margin-bottom: 30px;
    cursor: pointer;
    transition: all 0.2s linear;
}
.itemb:hover {
    transform: scale(1.02);
}
.itembB {
    width: 585px;
    height: 60px;
    background: linear-gradient(270deg, rgba(253, 238, 1235, 0.65), rgba(234, 241, 252, 0.65));
    border-radius: 6px;
    font-weight: 500;
    font-size: 15px;
    color: #666666;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    box-sizing: border-box;
}
.itembT {
    width: 100%;
    height: calc(100% - 60px);
    padding: 30px 28px 0 28px;
    box-sizing: border-box;
}
.itembTT {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
}
.itembTTL {
    font-weight: bold;
    font-size: 18px;
    color: #000000;
}
.itembTTR {
    font-weight: bold;
    font-size: 18px;
    color: #fb3838;
}
.itembTB {
    display: flex;
    align-items: center;
}
.itembTBit {
    height: 30px;
    line-height: 30px;
    background: rgba(230, 231, 235, 0.3);
    border-radius: 3px;
    padding: 0 15px;
    box-sizing: border-box;
    margin-right: 20px;
    font-weight: 500;
    font-size: 15px;
    color: #666666;
}
</style>