<template>
    <div class="zwbw">
        <div class="topBg">
            <!-- 页面头部 -->
            <HomePageHead></HomePageHead>
            <!-- 页面导航 -->
            <HomePageNavigation></HomePageNavigation>
        </div>

        <!-- 面包屑导航 -->
        <div class="breadcrumb">
            <div class="inner">
                <span class="location">当前位置:</span>
                <el-breadcrumb :separator-icon="ArrowRight">
                    <el-breadcrumb-item>
                        <NuxtLink to="/">首页</NuxtLink>
                    </el-breadcrumb-item>
                    <el-breadcrumb-item>
                        <NuxtLink to="/">法治调研中心-政务百网</NuxtLink>
                    </el-breadcrumb-item>
                </el-breadcrumb>
            </div>
        </div>

        <!-- 网站列表 -->
        <div class="webSite">
            <table border="1" cellspacing="0" cellpadding="0">
                <tr>
                    <th>网站名称</th>
                    <th class="hide">网站URL</th>
                    <th class="hide">二维码（点击放大）</th>
                    <th>操作</th>
                </tr>
                <tr>
                    <td>
                        <a href="">法制内参</a>
                    </td>
                    <td class="hide">
                        <a href="">http://fzncl.org.cn/</a>
                    </td>
                    <td class="hide"><img src="" alt=""></td>
                    <td>
                        <a href="#">首页</a>
                        <span>|</span>
                        <a href="#">登录</a>
                        <span>|</span>
                        <a href="#">简介</a>
                        <span>|</span>
                        <a href="#">联系</a>
                        <span>|</span>
                        <a href="#">服务</a>
                        <span>|</span>
                        <a href="#">地图</a>
                    </td>
                </tr>
                <tr>
                    <td>
                        <a href="">法制内参</a>
                    </td>
                    <td class="hide">
                        <a href="">http://fzncl.org.cn/</a>
                    </td>
                    <td class="hide"><img src="" alt=""></td>
                    <td>
                        <a href="#">首页</a>
                        <span>|</span>
                        <a href="#">登录</a>
                        <span>|</span>
                        <a href="#">简介</a>
                        <span>|</span>
                        <a href="#">联系</a>
                        <span>|</span>
                        <a href="#">服务</a>
                        <span>|</span>
                        <a href="#">地图</a>
                    </td>
                </tr>
            </table>
        </div>

        <!-- 分页器 -->
        <div class="pagination pagination_phone_none" v-if="total > 0">
            <el-pagination size="small" background layout="total, prev, pager, next" :total="total" class="mt-4"
                :page-size="pageSize" :current-page="pageNum" prev-text="上一页" next-text="下一页"
                @current-change="changePage" />
        </div>
        <div class="pagination pagination_pc_none" v-if="total > 0">
            <el-pagination pager-count="5" size="small" background layout="pager" :total="total" class="mt-4"
                :page-size="pageSize" :current-page="pageNum" @current-change="changePage" />
        </div>

        <!-- 页面底部 -->
        <HomeFoot></HomeFoot>
    </div>
</template>

<script setup>
import { ref, onMounted } from 'vue'
import { ElBreadcrumb, ElBreadcrumbItem, ElPagination } from 'element-plus'
import { ArrowRight } from '@element-plus/icons-vue'

// 分页器
let pageNum = ref(1);
let total = ref(1);
let pageSize = ref(10);

// 分页器切换页码
const changePage = (val) => {
    pageNum.value = val;
}

</script>

<style lang="less" scoped>
@media screen and (min-width: 1401px) {
    .zwbw {
        font-family: '微软雅黑', Microsoft YaHei;

        //导航条
        .breadcrumb {
            width: 100%;
            height: 30PX;
            line-height: 30PX;
            margin-top: 20PX;
            margin-bottom: 20PX;

            .inner {
                width: 1400PX;
                border: 1PX solid #ccc;
                color: #000;
                font-size: 16PX;
                margin: 0 auto;

                .location {
                    margin-right: 20PX;
                    width: 100PX;
                    height: 22PX;
                    font-family: Microsoft YaHei, Microsoft YaHei;
                    font-weight: 400;
                    font-size: 16PX;
                    color: #000;
                    line-height: 23PX;
                    text-align: left;
                    font-style: normal;
                    text-transform: none;
                }
            }

            :deep(.el-breadcrumb__separator) {
                color: #000;
                font-weight: bold;
                margin: 0 9PX;
            }

            :deep(.el-breadcrumb) {
                display: inline-block;
                vertical-align: -4PX;
            }

            :deep(.el-breadcrumb__inner a),
            :deep(.el-breadcrumb__inner.is-link) {
                color: #000;
                font-weight: 400;
                text-decoration: none;
                transition: var(--el-transition-color);
            }

            :deep(.el-breadcrumb__item:last-child .el-breadcrumb__inner),
            :deep(.el-breadcrumb__item:last-child .el-breadcrumb__inner a),
            :deep(.el-breadcrumb__item:last-child .el-breadcrumb__inner a:hover),
            :deep(.el-breadcrumb__item:last-child .el-breadcrumb__inner:hover) {
                color: #000;
            }

            span {
                font-weight: 400;
                font-size: 16PX;
                color: #000;
                line-height: 23PX;
                text-align: left;
                font-style: normal;
                text-transform: none;
            }
        }

        //网站列表
        .webSite {
            width: 1400PX;
            overflow: hidden;
            margin: 20PX auto;

            table {
                width: 100%;
                height: auto;
                border-spacing: 0;
                border-collapse: collapse;

                tr {
                    width: 100%;
                    height: auto;
                    overflow: hidden;

                    &:first-child {
                        height: 50PX;
                        line-height: 50PX;
                    }

                    th {
                        font-size: 16PX;
                        font-weight: 400;
                    }

                    td {
                        height: auto;
                        overflow: hidden;
                        text-align: center;
                        font-size: 16PX;

                        a {
                            font-size: 16PX;
                            color: #2b96f1;
                        }

                        &:nth-child(1) {
                            width: 15%;
                        }

                        &:nth-child(2) {
                            width: 20%;
                        }

                        &:nth-child(3) {
                            width: 20%;
                            padding-top: 3PX;

                            img {
                                width: 80PX;
                                height: 80PX;
                            }
                        }

                        &:nth-child(4) {
                            width: 30%;
                            text-align: center;

                            span {
                                display: inline-block;
                                font-size: 12PX;
                                padding: 0 10PX;
                            }
                        }
                    }
                }
            }
        }

        // 分页器
        .pagination {
            width: 100%;
            height: 34PX;
            margin-left: 141PX;
            display: flex;
            justify-content: center;
            margin: 20PX 0;
            padding: 10PX 0;

            // font-size: 16PX;
            // :deep(.el-pagination) {
            //     font-size: 12px;
            // }
            .el-pagination::v-deep {
                font-size: 12px;
            }

            // 鼠标移入后字体颜色
            .el-pagination::v-deep :hover {
                color: #1aa0f7;
            }

            .el-pagination.is-background::v-deep .btn-next,
            .el-pagination.is-background::v-deep .btn-prev {
                width: 70PX;
                height: 34PX;
                margin: 0PX 10PX;
                border-radius: 4PX;
            }

            .el-pagination.is-background::v-deep .el-pager li {
                margin: 0PX 10PX;
                width: 38PX;
                height: 34PX;
                border-radius: 4PX;
            }

            .el-pagination.is-background::v-deep .btn-next.is-active,
            .el-pagination.is-background::v-deep .btn-prev.is-active,
            .el-pagination.is-background::v-deep .el-pager li.is-active {
                background-color: #1aa0f7;
                color: #fff;
            }
        }

        .pagination_pc_none {
            display: none;
        }
    }
}

@media screen and (min-width: 801px) and (max-width: 1400px) {
    .zwbw {
        font-family: '微软雅黑', Microsoft YaHei;

        //导航条
        .breadcrumb {
            width: 100%;
            height: 30PX;
            line-height: 30PX;
            margin-top: 20PX;
            margin-bottom: 20PX;

            .inner {
                width: 100%;
                border: 1PX solid #ccc;
                color: #000;
                font-size: 16PX;
                margin: 0 auto;

                .location {
                    margin-right: 20PX;
                    width: 100PX;
                    height: 22PX;
                    font-family: Microsoft YaHei, Microsoft YaHei;
                    font-weight: 400;
                    font-size: 16PX;
                    color: #000;
                    line-height: 23PX;
                    text-align: left;
                    font-style: normal;
                    text-transform: none;
                }
            }

            :deep(.el-breadcrumb__separator) {
                color: #000;
                font-weight: bold;
                margin: 0 9PX;
            }

            :deep(.el-breadcrumb) {
                display: inline-block;
                vertical-align: -5PX;
            }

            :deep(.el-breadcrumb__inner a),
            :deep(.el-breadcrumb__inner.is-link) {
                color: #000;
                font-weight: 400;
                text-decoration: none;
                transition: var(--el-transition-color);
            }

            :deep(.el-breadcrumb__item:last-child .el-breadcrumb__inner),
            :deep(.el-breadcrumb__item:last-child .el-breadcrumb__inner a),
            :deep(.el-breadcrumb__item:last-child .el-breadcrumb__inner a:hover),
            :deep(.el-breadcrumb__item:last-child .el-breadcrumb__inner:hover) {
                color: #000;
            }

            span {
                font-weight: 400;
                font-size: 16PX;
                color: #000;
                line-height: 23PX;
                text-align: left;
                font-style: normal;
                text-transform: none;
            }
        }

        //网站列表
        .webSite {
            width: 100%;
            overflow: hidden;
            margin: 20PX auto;
            padding: 0 5PX;
            box-sizing: border-box;

            table {
                width: 100%;
                height: auto;
                border-spacing: 0;
                border-collapse: collapse;

                tr {
                    width: 100%;
                    height: auto;
                    overflow: hidden;

                    &:first-child {
                        height: 50PX;
                        line-height: 50PX;
                    }

                    th {
                        font-size: 16PX;
                        font-weight: 400;
                    }

                    td {
                        height: auto;
                        overflow: hidden;
                        text-align: center;
                        font-size: 16PX;

                        a {
                            font-size: 16PX;
                            color: #2b96f1;
                        }

                        &:nth-child(1) {
                            width: 15%;
                        }

                        &:nth-child(2) {
                            width: 20%;
                        }

                        &:nth-child(3) {
                            width: 20%;
                            padding-top: 3PX;

                            img {
                                width: 80PX;
                                height: 80PX;
                            }
                        }

                        &:nth-child(4) {
                            width: 30%;
                            text-align: center;

                            span {
                                display: inline-block;
                                font-size: 12PX;
                                padding: 0 10PX;
                            }
                        }
                    }
                }
            }
        }

        // 分页器
        .pagination {
            width: 100%;
            height: 34PX;
            margin-left: 141PX;
            display: flex;
            justify-content: center;
            margin: 20PX 0;
            padding: 10PX 0;

            // 鼠标移入后字体颜色
            .el-pagination::v-deep :hover {
                color: #1aa0f7;
            }

            .el-pagination.is-background::v-deep .btn-next,
            .el-pagination.is-background::v-deep .btn-prev {
                width: 70PX;
                height: 34PX;
                margin: 0PX 10PX;
                border-radius: 4PX;
            }

            .el-pagination.is-background::v-deep .el-pager li {
                margin: 0PX 10PX;
                width: 38PX;
                height: 34PX;
                border-radius: 4PX;
            }

            .el-pagination.is-background::v-deep .btn-next.is-active,
            .el-pagination.is-background::v-deep .btn-prev.is-active,
            .el-pagination.is-background::v-deep .el-pager li.is-active {
                background-color: #1aa0f7;
                color: #fff;
            }
        }

        .pagination_pc_none {
            display: none;
        }
    }
}

@media screen and (max-width: 800px) {
    .zwbw {
        font-family: '微软雅黑', Microsoft YaHei;

        //导航条
        .breadcrumb {
            width: 100%;
            height: 120px;
            line-height: 120px;
            margin-top: 80px;
            margin-bottom: 80px;

            .inner {
                width: 100%;
                border: 1px solid #ccc;
                color: #000;
                font-size: 32px;

                .location {
                    margin-right: 40px;
                    width: 200px;
                    height: 42px;
                    font-family: Microsoft YaHei, Microsoft YaHei;
                    font-weight: 400;
                    font-size: 32px;
                    color: #000;
                    line-height: 46px;
                    text-align: left;
                    font-style: normal;
                    text-transform: none;
                }
            }

            :deep(.el-breadcrumb__separator) {
                color: #000;
                font-weight: bold;
                margin: 0 18px;
            }

            :deep(.el-breadcrumb) {
                display: inline-block;
                vertical-align: -8px;
            }

            :deep(.el-breadcrumb__inner a),
            :deep(.el-breadcrumb__inner.is-link) {
                color: #000;
                font-weight: 400;
                text-decoration: none;
                transition: var(--el-transition-color);
            }

            :deep(.el-breadcrumb__item:last-child .el-breadcrumb__inner),
            :deep(.el-breadcrumb__item:last-child .el-breadcrumb__inner a),
            :deep(.el-breadcrumb__item:last-child .el-breadcrumb__inner a:hover),
            :deep(.el-breadcrumb__item:last-child .el-breadcrumb__inner:hover) {
                color: #000;
            }

            span {
                font-weight: 400;
                font-size: 32px;
                color: #000;
                line-height: 46px;
                text-align: left;
                font-style: normal;
                text-transform: none;
            }
        }

        //网站列表
        .webSite {
            width: 100%;
            overflow: hidden;
            margin: 20px auto;

            .hide {
                display: none;
            }

            table {
                width: 100%;
                height: auto;
                border-spacing: 0;
                border-collapse: collapse;

                tr {
                    width: 100%;
                    height: auto;
                    overflow: hidden;

                    &:first-child {
                        height: 100px;
                        line-height: 100px;
                    }

                    th {
                        font-size: 32px;
                        font-weight: 400;
                    }

                    td {
                        height: auto;
                        overflow: hidden;
                        text-align: center;
                        font-size: 30px;

                        a {
                            font-size: 30px;
                            color: #2b96f1;
                        }

                        &:nth-child(1) {
                            width: 15%;
                        }

                        &:nth-child(2) {
                            width: 20%;
                        }

                        &:nth-child(3) {
                            width: 20%;
                            padding-top: 3px;

                            img {
                                width: 80px;
                                height: 80px;
                            }
                        }

                        &:nth-child(4) {
                            width: 30%;
                            text-align: center;

                            span {
                                display: inline-block;
                                font-size: 24px;
                                padding: 0 10px;
                            }
                        }
                    }
                }
            }
        }

        // 分页器
        .pagination {
            width: 100%;
            height: 68px;
            margin-left: 282px;
            display: flex;
            justify-content: center;
            margin: 40px 0;
            padding: 10px 0;

            // 鼠标移入后字体颜色
            .el-pagination::v-deep :hover {
                color: #1aa0f7;
            }

            .el-pagination.is-background::v-deep .btn-next,
            .el-pagination.is-background::v-deep .btn-prev {
                width: 140px;
                height: 68px;
                margin: 0px 20px;
                border-radius: 8px;
            }

            .el-pagination.is-background::v-deep .el-pager li {
                margin: 0px 20px;
                width: 68px;
                height: 68px;
                border-radius: 8px;
                font-size: 28px;
            }

            .el-pagination.is-background::v-deep .btn-next.is-active,
            .el-pagination.is-background::v-deep .btn-prev.is-active,
            .el-pagination.is-background::v-deep .el-pager li.is-active {
                background-color: #1aa0f7;
                color: #fff;
            }
        }

        .pagination_phone_none {
            display: none;
        }
    }
}
</style>