|
@@ -1,13 +1,419 @@
|
|
|
<template>
|
|
|
-
|
|
|
+ <!-- 综合展示 -->
|
|
|
+ <div class="ComprehensiveDisplayMain">
|
|
|
+ <!-- 第一层:新闻中心、平台介绍 -->
|
|
|
+ <div class="ComprehensiveDisplayMain_IntroductionOfNewsCenterAndPlatform">
|
|
|
+ <!-- 新闻中心 -->
|
|
|
+ <el-card class="Newscenter">
|
|
|
+ <!-- 新闻中心标题 -->
|
|
|
+ <div slot="header" class="clearfix userSelect_None">
|
|
|
+ <span class="clearfix_title"><i class="elIcon el-icon-message-solid"></i>新闻中心</span>
|
|
|
+ <span class="clearfix_titleEn" type="text">News Center</span>
|
|
|
+ </div>
|
|
|
+ <!-- 新闻中心主题 -->
|
|
|
+ <div class="Newscenter_main">
|
|
|
+ <!-- 图片轮播区域 -->
|
|
|
+ <el-carousel class="Newscenter_main_byArea" height="200px">
|
|
|
+ <el-carousel-item v-for="(item, index) in NewscenterAreas" :key="index">
|
|
|
+ <el-image style="cursor: pointer" :src="item.imageUrl" @click="Jump(item.jumpUrl)" :alt="item.alt"> </el-image>
|
|
|
+ <div class="Newscenter_main_byArea_alt userSelect_None">
|
|
|
+ <el-tooltip class="item" effect="dark" :content="item.alt" :open-delay="1000">
|
|
|
+ <span>{{ item.alt }}</span>
|
|
|
+ </el-tooltip>
|
|
|
+ </div>
|
|
|
+ </el-carousel-item>
|
|
|
+ </el-carousel>
|
|
|
+ <!-- 新闻中心内容 -->
|
|
|
+ <div class="Newscenter_main_content">
|
|
|
+ <!-- 标题 -->
|
|
|
+ <el-tooltip class="item" effect="dark" :content="NewscenterData.NewscenterTitle" :open-delay="1000">
|
|
|
+ <div class="title" @click="Jump(NewscenterData.NewscenterUrl)">{{ NewscenterData.NewscenterTitle }}</div>
|
|
|
+ </el-tooltip>
|
|
|
+ <!-- 内容 -->
|
|
|
+ <el-tooltip class="item" effect="dark" :content="NewscenterData.NewscenterContent" :open-delay="1000">
|
|
|
+ <div class="content userSelect_None">
|
|
|
+ {{ NewscenterData.NewscenterContent }}
|
|
|
+ </div>
|
|
|
+ </el-tooltip>
|
|
|
+ <!-- 小标题 -->
|
|
|
+ <div v-if="NewscenterData.NewscenterTitles.length > 0">
|
|
|
+ <el-carousel height="70px" direction="vertical">
|
|
|
+ <el-carousel-item v-for="index in Math.ceil(NewscenterData.NewscenterTitles.length / 2)" :key="index">
|
|
|
+ <el-tooltip
|
|
|
+ class="item"
|
|
|
+ effect="dark"
|
|
|
+ :content="NewscenterData.NewscenterTitles[2 * index - 2].title"
|
|
|
+ :open-delay="1000"
|
|
|
+ >
|
|
|
+ <div class="titles" @click="Jump(NewscenterData.NewscenterTitles[2 * index - 2].url)">
|
|
|
+ {{ NewscenterData.NewscenterTitles[2 * index - 2].title }}
|
|
|
+ </div>
|
|
|
+ </el-tooltip>
|
|
|
+ <div v-if="NewscenterData.NewscenterTitles[2 * index - 1]">
|
|
|
+ <el-tooltip
|
|
|
+ class="item"
|
|
|
+ effect="dark"
|
|
|
+ :content="NewscenterData.NewscenterTitles[2 * index - 1].title"
|
|
|
+ :open-delay="1000"
|
|
|
+ >
|
|
|
+ <div class="titles" @click="Jump(NewscenterData.NewscenterTitles[2 * index - 1].url)">
|
|
|
+ {{ NewscenterData.NewscenterTitles[2 * index - 1].title }}
|
|
|
+ </div>
|
|
|
+ </el-tooltip>
|
|
|
+ </div>
|
|
|
+ </el-carousel-item>
|
|
|
+ </el-carousel>
|
|
|
+ </div>
|
|
|
+ <div v-else>暂无数据</div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </el-card>
|
|
|
+ <!-- 平台介绍 -->
|
|
|
+ <el-card class="PlatformIsIntroduced">
|
|
|
+ <!-- 平台介绍标题 -->
|
|
|
+ <div slot="header" class="clearfix userSelect_None">
|
|
|
+ <span class="clearfix_title"><i class="elIcon el-icon-s-flag"></i>平台介绍</span>
|
|
|
+ <span class="clearfix_titleEn" type="text">Platform Introduction</span>
|
|
|
+ </div>
|
|
|
+ <!-- 平台介绍主题 -->
|
|
|
+ <div class="PlatformIsIntroduced_main" v-html="PlatformIsIntroducedContent"></div>
|
|
|
+ </el-card>
|
|
|
+ </div>
|
|
|
+ <!-- 第二层:中国地理信息平台 -->
|
|
|
+ <el-card
|
|
|
+ class="ComprehensiveDisplayMain_ChinaGeographicInformationCenter"
|
|
|
+ >
|
|
|
+ <!-- 平台介绍内容 -->
|
|
|
+ <span class="ChinaGeographicInformationCenterTitle userSelect_None" @click="undefinedFunction()">中国地理信息平台</span>
|
|
|
+ </el-card>
|
|
|
+ <!-- 第三层:服务中心 -->
|
|
|
+ <el-card class="ComprehensiveDisplayMain_ServiceCenter">
|
|
|
+ <!-- 服务中心标题 -->
|
|
|
+ <div slot="header" class="clearfix userSelect_None">
|
|
|
+ <span class="clearfix_title"><i class="elIcon el-icon-s-cooperation"></i>服务中心</span>
|
|
|
+ <span class="clearfix_titleEn" type="text">Service Center</span>
|
|
|
+ </div>
|
|
|
+ <!-- 服务中心主题 -->
|
|
|
+ <div class="ServiceCenter_main userSelect_None">
|
|
|
+ <div @click="undefinedFunction()"><i class="el-icon-s-operation" style="margin-right: 47px"></i>数据管理</div>
|
|
|
+ <div @click="undefinedFunction()"><i class="el-icon-s-promotion" style="margin-right: 47px"></i>专题发布</div>
|
|
|
+ <div @click="undefinedFunction()"><i class="el-icon-data-line" style="margin-right: 47px"></i>数据可视化</div>
|
|
|
+ </div>
|
|
|
+ </el-card>
|
|
|
+ </div>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
export default {
|
|
|
-
|
|
|
-}
|
|
|
+ name: "ComprehensiveDisplay",
|
|
|
+ components: {},
|
|
|
+ data() {
|
|
|
+ // 后续可调用后端接口动态显示
|
|
|
+ return {
|
|
|
+ // 新闻中心轮播
|
|
|
+ NewscenterAreas: [
|
|
|
+ {
|
|
|
+ imageUrl: "http://zfcxjst.hebei.gov.cn/dtlsj/202205/W020220518322335295754.jpg",
|
|
|
+ jumpUrl: "http://zfcxjst.hebei.gov.cn/dtlsj/202205/t20220517_316299.html",
|
|
|
+ alt: "于文学在石家庄市督导检查自建房安全隐患排查整治工作"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ imageUrl: "http://zfcxjst.hebei.gov.cn/dtlsj/202205/W020220520541128729525.jpg",
|
|
|
+ jumpUrl: "http://zfcxjst.hebei.gov.cn/dtlsj/202205/t20220520_316317.html",
|
|
|
+ alt: "周仲明到河北省住房和城乡建设厅专题调研"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ imageUrl: "http://zfcxjst.hebei.gov.cn/sylbt/202205/W020220517418513508357.jpg",
|
|
|
+ jumpUrl: "http://zfcxjst.hebei.gov.cn/sylbt/202205/t20220517_316294.html",
|
|
|
+ alt: "河北省住房和城乡建设厅举办“奋进新征程 建功新时代”青年干部交流会"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ imageUrl: "http://zfcxjst.hebei.gov.cn/sylbt/202205/W020220527577333537379.jpg",
|
|
|
+ jumpUrl: "http://zfcxjst.hebei.gov.cn/sylbt/202205/t20220527_316375.html",
|
|
|
+ alt: "河北省住房和城乡建设厅举办扣好廉洁从政“第一粒扣子”青年干部主题演讲比赛"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ imageUrl: "http://zfcxjst.hebei.gov.cn/sylbt/202205/W020220523637616449653.jpg",
|
|
|
+ jumpUrl: "http://zfcxjst.hebei.gov.cn/sylbt/202205/t20220523_316327.html",
|
|
|
+ alt: "河北省住房和城乡建设厅召开党组扩大会议"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ // 新闻中心右侧
|
|
|
+ NewscenterData: {
|
|
|
+ NewscenterTitle: "河北省住房和城乡建设厅举办扣好廉洁从政“第一粒扣子”青年干部主题演讲比赛",
|
|
|
+ NewscenterUrl: "http://zfcxjst.hebei.gov.cn/sylbt/202205/t20220527_316375.html",
|
|
|
+ NewscenterContent:
|
|
|
+ "为教育引导青年干部坚定理想信念,牢记初心使命,正确对待权力,时刻自重自省,严守纪法规矩,按照省直机关纪检监察工作安排,5月26日,河北省住房和城乡建设厅举办扣好廉洁从政“第一粒扣子”青年干部演讲比赛。厅党组成员、总规划师吴铁,党组成员、副厅长赵春旺,二级巡视员翟佳麟及总经济师李景会到场观看比赛并为获奖人员颁奖。",
|
|
|
+ NewscenterTitles: [
|
|
|
+ {
|
|
|
+ title: "河北省住房和城乡建设厅举办扣好廉洁从政“第一粒扣子”青年干部主题演讲比赛",
|
|
|
+ url: "http://zfcxjst.hebei.gov.cn/xinwenzhongxin/gongzuodongtai/202205/t20220527_316375.html"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: "163个项目列入2022年河北省建设科技研究项目指导性计划",
|
|
|
+ url: "http://zfcxjst.hebei.gov.cn/xinwenzhongxin/gongzuodongtai/202205/t20220524_316332.html"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: "河北省住房和城乡建设厅举办扣好廉洁从政“第一粒扣子”青年干部主题演讲比赛",
|
|
|
+ url: "http://zfcxjst.hebei.gov.cn/xinwenzhongxin/gongzuodongtai/202205/t20220527_316375.html"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: "163个项目列入2022年河北省建设科技研究项目指导性计划",
|
|
|
+ url: "http://zfcxjst.hebei.gov.cn/xinwenzhongxin/gongzuodongtai/202205/t20220524_316332.html"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: "河北省住房和城乡建设厅举办扣好廉洁从政“第一粒扣子”青年干部主题演讲比赛",
|
|
|
+ url: "http://zfcxjst.hebei.gov.cn/xinwenzhongxin/gongzuodongtai/202205/t20220527_316375.html"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: "163个项目列入2022年河北省建设科技研究项目指导性计划",
|
|
|
+ url: "http://zfcxjst.hebei.gov.cn/xinwenzhongxin/gongzuodongtai/202205/t20220524_316332.html"
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ // 平台介绍,纯文本或者html文本都可以
|
|
|
+ PlatformIsIntroducedContent: `<p>“河北省住房和城乡建设厅”网站由河北省住房和城乡建设厅主办,河北省住房和城乡建设厅信息中心承办。本法律声明阐述之条款和条件适用于所有登陆“河北省住房和城乡建设厅”网站的用户,以及其他网站或单位与该网站的法律关系。</p><p>
|
|
|
+河北省住房和城乡建设厅是“河北省住房和城乡建设厅”网站的所有者。“河北省住房和城乡建设厅”网站上刊载的所有内容,包括文字、图片、声音、图表、色彩的组合,版面设计,专题专栏目录与名称、内容分类等的版权均属河北省住房和城乡建设厅所有,受《中华人民共和国著作权法》及其它相关法律的保护。</p><p>
|
|
|
+他人将“河北省住房和城乡建设厅”网站提供的内容与服务用于商业、盈利、广告性目的时,需征得河北省住房和城乡建设厅或相关权利人许可,注明作者及文章出处,并依法向权利人支付报酬。</p><p>
|
|
|
+使用者将“河北省住房和城乡建设厅”网站提供的内容与服务用于非商业用途时,应遵守著作权法以及其他相关法律的规定,不得侵犯“河北省住房和城乡建设厅”网站及相关权利人的权益。</p><p>
|
|
|
+凡作者或权利人声明不得转载的文章或图片,任何单位及个人不得转载。</p><p>
|
|
|
+未经河北省住房和城乡建设厅授权,任何人不得建立该网站的镜像。</p>`
|
|
|
+ };
|
|
|
+ },
|
|
|
+ computed: {},
|
|
|
+ mounted() {},
|
|
|
+ methods: {
|
|
|
+ Jump(jumpUrl) {
|
|
|
+ window.open(jumpUrl);
|
|
|
+ },
|
|
|
+ undefinedFunction() {
|
|
|
+ this.$message.info("敬请期待!");
|
|
|
+ }
|
|
|
+ }
|
|
|
+};
|
|
|
</script>
|
|
|
|
|
|
<style lang="less" scoped>
|
|
|
-
|
|
|
-</style>
|
|
|
+// 主题
|
|
|
+.ComprehensiveDisplayMain {
|
|
|
+ display: flex;
|
|
|
+ flex-direction: column;
|
|
|
+ align-items: center;
|
|
|
+ // 第一层:新闻中心、平台介绍
|
|
|
+ &_IntroductionOfNewsCenterAndPlatform {
|
|
|
+ width: 100%;
|
|
|
+ display: flex;
|
|
|
+ justify-content: space-between;
|
|
|
+ align-items: center;
|
|
|
+ align-content: center;
|
|
|
+ flex-wrap: wrap;
|
|
|
+ margin-bottom: 15px;
|
|
|
+ // 新闻中心
|
|
|
+ .Newscenter {
|
|
|
+ width: calc(50% - 15px);
|
|
|
+ height: 300px;
|
|
|
+ &_main {
|
|
|
+ display: flex;
|
|
|
+ justify-content: space-between;
|
|
|
+ align-items: center;
|
|
|
+ align-content: center;
|
|
|
+ &_byArea {
|
|
|
+ width: 360px;
|
|
|
+ height: 200px;
|
|
|
+ // 轮播组件指示器样式
|
|
|
+ /deep/ .el-carousel__button {
|
|
|
+ width: 15px;
|
|
|
+ }
|
|
|
+ /deep/ .el-carousel__arrow {
|
|
|
+ background: rgba(0, 0, 0, 0.75);
|
|
|
+ box-shadow: 0px 0px 5px 1px #ffffff, 0px 0px 10px 2px #000000;
|
|
|
+ }
|
|
|
+ &_alt {
|
|
|
+ width: 100%;
|
|
|
+ position: absolute;
|
|
|
+ bottom: 20px;
|
|
|
+ background: linear-gradient(90deg, #409eff, #409eff64);
|
|
|
+ span {
|
|
|
+ color: #ffffff;
|
|
|
+ margin: 5px 10px;
|
|
|
+ font-size: 14px;
|
|
|
+ overflow: hidden;
|
|
|
+ text-overflow: ellipsis;
|
|
|
+ display: -webkit-box;
|
|
|
+ -webkit-box-orient: vertical;
|
|
|
+ -webkit-line-clamp: 1;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ &_content {
|
|
|
+ width: 321px;
|
|
|
+ height: 200px;
|
|
|
+ overflow: hidden;
|
|
|
+ text-overflow: ellipsis;
|
|
|
+ .title {
|
|
|
+ font-size: 22px;
|
|
|
+ font-family: Microsoft YaHei;
|
|
|
+ font-weight: 400;
|
|
|
+ color: #409eff;
|
|
|
+ line-height: 24px;
|
|
|
+ overflow: hidden;
|
|
|
+ text-overflow: ellipsis;
|
|
|
+ white-space: nowrap;
|
|
|
+ &:hover {
|
|
|
+ cursor: pointer;
|
|
|
+ color: #409eff;
|
|
|
+ text-decoration: underline #409eff;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .content {
|
|
|
+ margin: 18px 0 27px 0;
|
|
|
+ font-size: 18px;
|
|
|
+ font-family: Microsoft YaHei;
|
|
|
+ font-weight: 400;
|
|
|
+ color: #808080;
|
|
|
+ line-height: 24px;
|
|
|
+ overflow: hidden;
|
|
|
+ text-overflow: ellipsis;
|
|
|
+ display: -webkit-box;
|
|
|
+ -webkit-box-orient: vertical;
|
|
|
+ -webkit-line-clamp: 2;
|
|
|
+ }
|
|
|
+ /deep/ .el-carousel__button {
|
|
|
+ height: 15px;
|
|
|
+ background-color: #303133;
|
|
|
+ }
|
|
|
+ .titles {
|
|
|
+ width: 300px;
|
|
|
+ margin-bottom: 22px;
|
|
|
+ font-size: 18px;
|
|
|
+ font-family: Microsoft YaHei;
|
|
|
+ font-weight: 400;
|
|
|
+ text-shadow: 0 0 1px #4C4C4C;
|
|
|
+ color: #4C4C4C;
|
|
|
+ line-height: 24px;
|
|
|
+ overflow: hidden;
|
|
|
+ text-overflow: ellipsis;
|
|
|
+ white-space: nowrap;
|
|
|
+ &:hover {
|
|
|
+ cursor: pointer;
|
|
|
+ color: #409eff;
|
|
|
+ text-decoration: underline #409eff;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ // 平台介绍
|
|
|
+ .PlatformIsIntroduced {
|
|
|
+ width: calc(50% - 15px);
|
|
|
+ height: 300px;
|
|
|
+ &_main {
|
|
|
+ height: 190px;
|
|
|
+ text-indent: 36px;
|
|
|
+ font-size: 18px;
|
|
|
+ font-family: Microsoft YaHei;
|
|
|
+ font-weight: 400;
|
|
|
+ color: #808080;
|
|
|
+ line-height: 32px;
|
|
|
+ overflow-y: scroll;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ // 第二层:中国地理信息平台
|
|
|
+ &_ChinaGeographicInformationCenter {
|
|
|
+ width: 100%;
|
|
|
+ height: 90px;
|
|
|
+ display: flex;
|
|
|
+ align-content: center;
|
|
|
+ flex-direction: row-reverse;
|
|
|
+ align-items: center;
|
|
|
+ margin: 10px 0px;
|
|
|
+ background-image: url(~@/assets/images/ChinaGeographicInformationCenterTitleImage.png);
|
|
|
+ .ChinaGeographicInformationCenterTitle {
|
|
|
+ font-size: 30px;
|
|
|
+ font-family: Microsoft YaHei;
|
|
|
+ font-weight: bold;
|
|
|
+ color: #ffffff;
|
|
|
+ line-height: 40px;
|
|
|
+ text-shadow: 2px 2px 5px #000, 2px 2px 10px white;
|
|
|
+ transition: all 0.3s;
|
|
|
+ padding-right: 20px;
|
|
|
+ &:hover {
|
|
|
+ cursor: pointer;
|
|
|
+ text-shadow: 2px 2px 5px #000, 1px 1px 15px white;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ // 第三层:服务中心
|
|
|
+ &_ServiceCenter {
|
|
|
+ width: 100%;
|
|
|
+ margin: 15px 0px;
|
|
|
+ .ServiceCenter_main {
|
|
|
+ display: flex;
|
|
|
+ justify-content: space-around;
|
|
|
+ align-items: center;
|
|
|
+ align-content: center;
|
|
|
+ flex-wrap: nowrap;
|
|
|
+ div {
|
|
|
+ display: flex;
|
|
|
+ justify-content: center;
|
|
|
+ align-items: center;
|
|
|
+ align-content: center;
|
|
|
+ flex-wrap: nowrap;
|
|
|
+ width: calc(33% - 40px);
|
|
|
+ height: 90px;
|
|
|
+ background: #0589ff;
|
|
|
+ border-radius: 3px;
|
|
|
+ font-size: 40px;
|
|
|
+ font-family: YouSheBiaoTiHei;
|
|
|
+ font-weight: 400;
|
|
|
+ color: #d9f1ff;
|
|
|
+ line-height: 40px;
|
|
|
+ transition: all 0.3s;
|
|
|
+ &:hover {
|
|
|
+ cursor: pointer;
|
|
|
+ color: #ffffff;
|
|
|
+ background: #05a3ff;
|
|
|
+ text-shadow: 1px 1px 2px #0589ff, 1px 1px 4px white;
|
|
|
+ box-shadow: 1px 1px 5px 0px #ffffff, 1px 1px 10px 0px #0589ff;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ // 公共属性
|
|
|
+ // icon公用样式
|
|
|
+ .elIcon {
|
|
|
+ margin-right: 19px;
|
|
|
+ }
|
|
|
+ // 卡片头部样式
|
|
|
+ /deep/ .el-card__header {
|
|
|
+ padding: 15px 20px !important;
|
|
|
+ }
|
|
|
+ .clearfix {
|
|
|
+ height: 30px;
|
|
|
+ &_title {
|
|
|
+ font-size: 30px;
|
|
|
+ font-family: Microsoft YaHei;
|
|
|
+ font-weight: bold;
|
|
|
+ color: #258df5;
|
|
|
+ line-height: 40px;
|
|
|
+ }
|
|
|
+ &_titleEn {
|
|
|
+ float: right;
|
|
|
+ padding-right: 19px;
|
|
|
+ font-size: 20px;
|
|
|
+ font-family: YouSheBiaoTiHei;
|
|
|
+ font-weight: 400;
|
|
|
+ color: #258df5;
|
|
|
+ line-height: 40px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ // 文字禁止选中
|
|
|
+ .userSelect_None {
|
|
|
+ -webkit-user-select: none;
|
|
|
+ -moz-user-select: none;
|
|
|
+ -ms-user-select: none;
|
|
|
+ user-select: none;
|
|
|
+ }
|
|
|
+}
|
|
|
+</style>
|