123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388 |
- <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)"></el-image>
- </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"
- :style="ChinaGeographicInformationCenterBackgroundIamge()"
- >
- <!-- 平台介绍内容 -->
- <span class="ChinaGeographicInformationCenterTitle userSelect_None" @click="undefindFunction()">中国地理信息平台</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 Centre</span>
- </div>
- <!-- 服务中心主题 -->
- <div class="ServiceCenter_main userSelect_None">
- <div @click="undefindFunction()"><i class="el-icon-s-operation" style="margin-right: 47px"></i>数据管理</div>
- <div @click="undefindFunction()"><i class="el-icon-s-promotion" style="margin-right: 47px"></i>专题发布</div>
- <div @click="undefindFunction()"><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"
- },
- {
- imageUrl: "http://zfcxjst.hebei.gov.cn/dtlsj/202205/W020220520541128729525.jpg",
- jumpUrl: "http://zfcxjst.hebei.gov.cn/dtlsj/202205/t20220520_316317.html"
- },
- {
- imageUrl: "http://zfcxjst.hebei.gov.cn/sylbt/202205/W020220517418513508357.jpg",
- jumpUrl: "http://zfcxjst.hebei.gov.cn/sylbt/202205/t20220517_316294.html"
- },
- {
- imageUrl: "http://zfcxjst.hebei.gov.cn/sylbt/202205/W020220527577333537379.jpg",
- jumpUrl: "http://zfcxjst.hebei.gov.cn/sylbt/202205/t20220527_316375.html"
- },
- {
- imageUrl: "http://zfcxjst.hebei.gov.cn/sylbt/202205/W020220523637616449653.jpg",
- jumpUrl: "http://zfcxjst.hebei.gov.cn/sylbt/202205/t20220523_316327.html"
- }
- ],
- // 新闻中心右侧
- NewscenterData: {
- NewscenterTitle: "河北省住房和城乡建设厅举办扣好廉洁从政“第一粒扣子”青年干部主题演讲比赛",
- NewscenterUrl: "http://zfcxjst.hebei.gov.cn/sylbt/202205/t20220527_316375.html",
- NewscenterContent:
- "为教育引导青年干部坚定理想信念,牢记初心使命,正确对待权力,时刻自重自省,严守纪法规矩,按照省直机关纪检监察工作安排,5月26日,河北省住房和城乡建设厅举办扣好廉洁从政“第一粒扣子”青年干部演讲比赛。厅党组成员、总规划师吴铁,党组成员、副厅长赵春旺,二级巡视员翟佳麟及总经济师李景会到场观看比赛并为获奖人员颁奖。",
- NewscenterTitles: [
- {
- title: "1、河北省住房和城乡建设厅举办扣好廉洁从政“第一粒扣子”青年干部主题演讲比赛",
- url: "http://zfcxjst.hebei.gov.cn/xinwenzhongxin/gongzuodongtai/202205/t20220527_316375.html"
- },
- {
- title: "2、163个项目列入2022年河北省建设科技研究项目指导性计划",
- url: "http://zfcxjst.hebei.gov.cn/xinwenzhongxin/gongzuodongtai/202205/t20220524_316332.html"
- },
- {
- title: "3、河北省住房和城乡建设厅举办扣好廉洁从政“第一粒扣子”青年干部主题演讲比赛",
- url: "http://zfcxjst.hebei.gov.cn/xinwenzhongxin/gongzuodongtai/202205/t20220527_316375.html"
- },
- {
- title: "4、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>`,
- ChinaGeographicInformationCenterTitleImageUrl:
- "https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fpic4.zhimg.com%2Fv2-2240dce589ef3df6b21fe8792135e5bf_1200x500.jpg&refer=http%3A%2F%2Fpic4.zhimg.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1656253614&t=9478020c9c8c6a715fbdd8f49ef26288"
- };
- },
- computed: {},
- mounted() {},
- methods: {
- Jump(jumpUrl) {
- window.open(jumpUrl);
- },
- ChinaGeographicInformationCenterBackgroundIamge() {
- return "background-image: url(" + this.ChinaGeographicInformationCenterTitleImageUrl + ");";
- },
- undefindFunction() {
- this.$message.info("敬请期待!");
- }
- }
- };
- </script>
- <style lang="less" scoped>
- // 主题
- .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;
- }
- }
- &_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;
- color: #409eff;
- 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: 15px 0px;
- .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;
- &: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: 80px;
- 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>
|