|
@@ -14,7 +14,7 @@
|
|
|
<div class="Newscenter_main">
|
|
|
<!-- 图片轮播区域 -->
|
|
|
<el-carousel class="Newscenter_main_byArea" height="200px">
|
|
|
- <el-carousel-item v-for="(item, index) in NewscenterAreas" :key="index">
|
|
|
+ <el-carousel-item v-for="(item, index) in data.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">
|
|
@@ -26,38 +26,38 @@
|
|
|
<!-- 新闻中心内容 -->
|
|
|
<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 class="item" effect="dark" :content="data.NewscenterData.NewscenterTitle" :open-delay="1000">
|
|
|
+ <div class="title" @click="Jump(data.NewscenterData.NewscenterUrl)">{{ data.NewscenterData.NewscenterTitle }}</div>
|
|
|
</el-tooltip>
|
|
|
<!-- 内容 -->
|
|
|
- <el-tooltip class="item" effect="dark" :content="NewscenterData.NewscenterContent" :open-delay="1000">
|
|
|
+ <el-tooltip class="item" effect="dark" :content="data.NewscenterData.NewscenterContent" :open-delay="1000">
|
|
|
<div class="content userSelect_None">
|
|
|
- {{ NewscenterData.NewscenterContent }}
|
|
|
+ {{ data.NewscenterData.NewscenterContent }}
|
|
|
</div>
|
|
|
</el-tooltip>
|
|
|
<!-- 小标题 -->
|
|
|
- <div v-if="NewscenterData.NewscenterTitles.length > 0">
|
|
|
+ <div v-if="data.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-carousel-item v-for="index in Math.ceil(data.NewscenterData.NewscenterTitles.length / 2)" :key="index">
|
|
|
<el-tooltip
|
|
|
class="item"
|
|
|
effect="dark"
|
|
|
- :content="NewscenterData.NewscenterTitles[2 * index - 2].title"
|
|
|
+ :content="data.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 class="titles" @click="Jump(data.NewscenterData.NewscenterTitles[2 * index - 2].url)">
|
|
|
+ {{ data.NewscenterData.NewscenterTitles[2 * index - 2].title }}
|
|
|
</div>
|
|
|
</el-tooltip>
|
|
|
- <div v-if="NewscenterData.NewscenterTitles[2 * index - 1]">
|
|
|
+ <div v-if="data.NewscenterData.NewscenterTitles[2 * index - 1]">
|
|
|
<el-tooltip
|
|
|
class="item"
|
|
|
effect="dark"
|
|
|
- :content="NewscenterData.NewscenterTitles[2 * index - 1].title"
|
|
|
+ :content="data.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 class="titles" @click="Jump(data.NewscenterData.NewscenterTitles[2 * index - 1].url)">
|
|
|
+ {{ data.NewscenterData.NewscenterTitles[2 * index - 1].title }}
|
|
|
</div>
|
|
|
</el-tooltip>
|
|
|
</div>
|
|
@@ -76,13 +76,11 @@
|
|
|
<span class="clearfix_titleEn" type="text">Platform Introduction</span>
|
|
|
</div>
|
|
|
<!-- 平台介绍主题 -->
|
|
|
- <div class="PlatformIsIntroduced_main" v-html="PlatformIsIntroducedContent"></div>
|
|
|
+ <div class="PlatformIsIntroduced_main" v-html="data.PlatformIsIntroducedContent"></div>
|
|
|
</el-card>
|
|
|
</div>
|
|
|
<!-- 第二层:中国地理信息平台 -->
|
|
|
- <el-card
|
|
|
- class="ComprehensiveDisplayMain_ChinaGeographicInformationCenter"
|
|
|
- >
|
|
|
+ <el-card class="ComprehensiveDisplayMain_ChinaGeographicInformationCenter">
|
|
|
<!-- 平台介绍内容 -->
|
|
|
<span class="ChinaGeographicInformationCenterTitle userSelect_None" @click="undefinedFunction()">中国地理信息平台</span>
|
|
|
</el-card>
|
|
@@ -110,77 +108,16 @@ export default {
|
|
|
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>`
|
|
|
+ data: {}
|
|
|
};
|
|
|
},
|
|
|
computed: {},
|
|
|
+ created() {
|
|
|
+ let that = this;
|
|
|
+ $.getJSON("./static/config/ComprehensiveDisplayData.json", function (result) {
|
|
|
+ that.data = result;
|
|
|
+ });
|
|
|
+ },
|
|
|
mounted() {},
|
|
|
methods: {
|
|
|
Jump(jumpUrl) {
|
|
@@ -288,8 +225,8 @@ export default {
|
|
|
font-size: 18px;
|
|
|
font-family: Microsoft YaHei;
|
|
|
font-weight: 400;
|
|
|
- text-shadow: 0 0 1px #4C4C4C;
|
|
|
- color: #4C4C4C;
|
|
|
+ text-shadow: 0 0 1px #4c4c4c;
|
|
|
+ color: #4c4c4c;
|
|
|
line-height: 24px;
|
|
|
overflow: hidden;
|
|
|
text-overflow: ellipsis;
|