123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356 |
- <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 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">
- <span>{{ item.alt }}</span>
- </el-tooltip>
- </div>
- </el-carousel-item>
- </el-carousel>
- <!-- 新闻中心内容 -->
- <div class="Newscenter_main_content">
- <!-- 标题 -->
- <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="data.NewscenterData.NewscenterContent" :open-delay="1000">
- <div class="content userSelect_None">
- {{ data.NewscenterData.NewscenterContent }}
- </div>
- </el-tooltip>
- <!-- 小标题 -->
- <div v-if="data.NewscenterData.NewscenterTitles.length > 0">
- <el-carousel height="70px" direction="vertical">
- <el-carousel-item v-for="index in Math.ceil(data.NewscenterData.NewscenterTitles.length / 2)" :key="index">
- <el-tooltip
- class="item"
- effect="dark"
- :content="data.NewscenterData.NewscenterTitles[2 * index - 2].title"
- :open-delay="1000"
- >
- <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="data.NewscenterData.NewscenterTitles[2 * index - 1]">
- <el-tooltip
- class="item"
- effect="dark"
- :content="data.NewscenterData.NewscenterTitles[2 * index - 1].title"
- :open-delay="1000"
- >
- <div class="titles" @click="Jump(data.NewscenterData.NewscenterTitles[2 * index - 1].url)">
- {{ data.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="data.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 {
- data: {}
- };
- },
- computed: {},
- created() {
- let that = this;
- $.getJSON("./static/config/ComprehensiveDisplayData.json", function (result) {
- that.data = result;
- });
- },
- mounted() {},
- methods: {
- Jump(jumpUrl) {
- window.open(jumpUrl);
- },
- undefinedFunction() {
- 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;
- }
- &_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>
|