|
@@ -3,7 +3,7 @@
|
|
|
* @Author: 空白格
|
|
|
* @Date: 2022-08-10 11:26:40
|
|
|
* @LastEditors: 空白格
|
|
|
- * @LastEditTime: 2022-08-22 10:22:23
|
|
|
+ * @LastEditTime: 2022-08-22 15:19:59
|
|
|
* @FilePath: \veterans_client_web\src\views\Home\HomeIndex.vue
|
|
|
* @Copyright: Copyright (c) 2016~2022 by 空白格, All Rights Reserved.
|
|
|
-->
|
|
@@ -18,23 +18,98 @@
|
|
|
<div class="home-main-latest">
|
|
|
<div class="home-main-latest-content">
|
|
|
<div class="hmlc-title">{{ latestNews.artTitle }}</div>
|
|
|
- <div class="hmlc-content" v-html="latestNews.artContent"></div>
|
|
|
+ <!-- <div class="hmlc-content" v-html="latestNews.artContent"></div> -->
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="home-main-box">
|
|
|
- <!-- 新闻部分 -->
|
|
|
- <el-row :gutter="0" class="home-main-news">
|
|
|
- <el-col :xs="24" :sm="24" :md="12" :lg="12" :xl="12">
|
|
|
- <div class="home-main-news-left">
|
|
|
- <el-carousel :interval="5000" arrow="never" height="395px">
|
|
|
+ <div class="home-main-news-box">
|
|
|
+ <!-- 新闻部分 -->
|
|
|
+ <el-row :gutter="0" class="home-main-news">
|
|
|
+ <el-col :xs="24" :sm="24" :md="12" :lg="12" :xl="12">
|
|
|
+ <div class="home-main-news-left">
|
|
|
+ <el-carousel :interval="5000" arrow="never" height="395px">
|
|
|
+ <el-carousel-item
|
|
|
+ v-for="(item, index) in newsList"
|
|
|
+ :key="index"
|
|
|
+ >
|
|
|
+ <el-image
|
|
|
+ class="image"
|
|
|
+ :src="
|
|
|
+ item.artImage ||
|
|
|
+ require('@/assets/images/default-news.jpg')
|
|
|
+ "
|
|
|
+ fit="cover"
|
|
|
+ >
|
|
|
+ <div slot="placeholder" class="image-slot">
|
|
|
+ 加载图片中<span class="dot">...</span>
|
|
|
+ </div>
|
|
|
+ <div slot="error" class="image-slot">
|
|
|
+ <el-image
|
|
|
+ class="image"
|
|
|
+ :src="require('@/assets/images/default-news.jpg')"
|
|
|
+ fit="fill"
|
|
|
+ ></el-image>
|
|
|
+ </div>
|
|
|
+ </el-image>
|
|
|
+ <div class="title">
|
|
|
+ {{ item.artTitle || "" }}
|
|
|
+ </div>
|
|
|
+ </el-carousel-item>
|
|
|
+ </el-carousel>
|
|
|
+ </div>
|
|
|
+ </el-col>
|
|
|
+ <el-col :xs="24" :sm="24" :md="12" :lg="12" :xl="12">
|
|
|
+ <div class="home-main-news-right">
|
|
|
+ <el-tabs v-model="activeName" @tab-click="handleClick">
|
|
|
+ <el-tab-pane label="新闻动态" name="first">
|
|
|
+ <ul class="news-infomation">
|
|
|
+ <li
|
|
|
+ class="news-infomation-item"
|
|
|
+ v-for="(item, index) in newsList"
|
|
|
+ :key="index"
|
|
|
+ >
|
|
|
+ <div class="title">{{ item.artTitle }}</div>
|
|
|
+ <div class="date">
|
|
|
+ {{ parseTime(item.createTime, "{y}-{m}-{d}") }}
|
|
|
+ </div>
|
|
|
+ </li>
|
|
|
+ </ul>
|
|
|
+ </el-tab-pane>
|
|
|
+ <el-tab-pane label="通知公告" name="second">
|
|
|
+ <ul class="news-infomation">
|
|
|
+ <li
|
|
|
+ class="news-infomation-item"
|
|
|
+ v-for="(item, index) in noticeList"
|
|
|
+ :key="index"
|
|
|
+ >
|
|
|
+ <div class="title">{{ item.content }}</div>
|
|
|
+ <div class="date">
|
|
|
+ {{ parseTime(item.releasTime, "{y}-{m}-{d}") }}
|
|
|
+ </div>
|
|
|
+ </li>
|
|
|
+ </ul>
|
|
|
+ </el-tab-pane>
|
|
|
+ </el-tabs>
|
|
|
+ <div class="more-btn" @click="jumpPage('/newscenter')">
|
|
|
+ 更多
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ </div>
|
|
|
+ <div class="home-main-policy-box">
|
|
|
+ <!-- 政策咨询部分 -->
|
|
|
+ <el-row :gutter="0" class="home-main-policy">
|
|
|
+ <el-col :span="24" class="home-main-policy-carousel">
|
|
|
+ <el-carousel :interval="5000" arrow="never" height="140px">
|
|
|
<el-carousel-item
|
|
|
- v-for="(item, index) in newsList"
|
|
|
+ v-for="(item, index) in policyObj.bannerList"
|
|
|
:key="index"
|
|
|
>
|
|
|
<el-image
|
|
|
class="image"
|
|
|
:src="
|
|
|
- item.artImage ||
|
|
|
+ item.bannerUrl ||
|
|
|
require('@/assets/images/default-news.jpg')
|
|
|
"
|
|
|
fit="cover"
|
|
@@ -46,7 +121,7 @@
|
|
|
<el-image
|
|
|
class="image"
|
|
|
:src="require('@/assets/images/default-news.jpg')"
|
|
|
- fit="fill"
|
|
|
+ fit="cover"
|
|
|
></el-image>
|
|
|
</div>
|
|
|
</el-image>
|
|
@@ -55,140 +130,74 @@
|
|
|
</div>
|
|
|
</el-carousel-item>
|
|
|
</el-carousel>
|
|
|
- </div>
|
|
|
- </el-col>
|
|
|
- <el-col :xs="24" :sm="24" :md="12" :lg="12" :xl="12">
|
|
|
- <div class="home-main-news-right">
|
|
|
- <el-tabs v-model="activeName" @tab-click="handleClick">
|
|
|
- <el-tab-pane label="新闻动态" name="first">
|
|
|
- <ul class="news-infomation">
|
|
|
- <li
|
|
|
- class="news-infomation-item"
|
|
|
- v-for="(item, index) in newsList"
|
|
|
- :key="index"
|
|
|
- >
|
|
|
- <div class="title">{{ item.artTitle }}</div>
|
|
|
- <div class="date">
|
|
|
- {{ parseTime(item.createTime, "{y}-{m}-{d}") }}
|
|
|
- </div>
|
|
|
- </li>
|
|
|
- </ul>
|
|
|
- </el-tab-pane>
|
|
|
- <el-tab-pane label="通知公告" name="second">
|
|
|
- <ul class="news-infomation">
|
|
|
- <li
|
|
|
- class="news-infomation-item"
|
|
|
- v-for="(item, index) in noticeList"
|
|
|
- :key="index"
|
|
|
- >
|
|
|
- <div class="title">{{ item.content }}</div>
|
|
|
- <div class="date">
|
|
|
- {{ parseTime(item.releasTime, "{y}-{m}-{d}") }}
|
|
|
- </div>
|
|
|
- </li>
|
|
|
- </ul>
|
|
|
- </el-tab-pane>
|
|
|
- </el-tabs>
|
|
|
- <div class="more-btn" @click="jumpPage('/newscenter')">更多</div>
|
|
|
- </div>
|
|
|
- </el-col>
|
|
|
- </el-row>
|
|
|
- <!-- 政策咨询部分 -->
|
|
|
- <el-row :gutter="0" class="home-main-policy">
|
|
|
- <el-col :span="24" class="home-main-policy-carousel">
|
|
|
- <el-carousel :interval="5000" arrow="never" height="140px">
|
|
|
- <el-carousel-item
|
|
|
- v-for="(item, index) in policyObj.bannerList"
|
|
|
- :key="index"
|
|
|
- >
|
|
|
- <el-image
|
|
|
- class="image"
|
|
|
- :src="
|
|
|
- item.bannerUrl ||
|
|
|
- require('@/assets/images/default-news.jpg')
|
|
|
- "
|
|
|
- fit="cover"
|
|
|
- >
|
|
|
- <div slot="placeholder" class="image-slot">
|
|
|
- 加载图片中<span class="dot">...</span>
|
|
|
- </div>
|
|
|
- <div slot="error" class="image-slot">
|
|
|
- <el-image
|
|
|
- class="image"
|
|
|
- :src="require('@/assets/images/default-news.jpg')"
|
|
|
- fit="cover"
|
|
|
- ></el-image>
|
|
|
- </div>
|
|
|
- </el-image>
|
|
|
- <div class="title">
|
|
|
- {{ item.artTitle || "" }}
|
|
|
- </div>
|
|
|
- </el-carousel-item>
|
|
|
- </el-carousel>
|
|
|
- </el-col>
|
|
|
- <el-col
|
|
|
- :span="24"
|
|
|
- class="home-main-policy-content"
|
|
|
- v-loading="policyObj.loading"
|
|
|
- >
|
|
|
- <el-row :gutter="54">
|
|
|
- <el-col :xs="24" :sm="24" :md="16" :lg="16" :xl="16">
|
|
|
- <div class="hmpc-left">
|
|
|
- <el-tabs
|
|
|
- v-model="policyObj.tabCur"
|
|
|
- @tab-click="handlePolicyClick"
|
|
|
- >
|
|
|
- <el-tab-pane
|
|
|
- v-for="(item, index) in policyObj.policyTypeList"
|
|
|
- :key="index"
|
|
|
- :label="item.label"
|
|
|
- :name="item.text"
|
|
|
+ </el-col>
|
|
|
+ <el-col
|
|
|
+ :span="24"
|
|
|
+ class="home-main-policy-content"
|
|
|
+ v-loading="policyObj.loading"
|
|
|
+ >
|
|
|
+ <el-row :gutter="54">
|
|
|
+ <el-col :xs="24" :sm="24" :md="16" :lg="16" :xl="16">
|
|
|
+ <div class="hmpc-left">
|
|
|
+ <el-tabs
|
|
|
+ v-model="policyObj.tabCur"
|
|
|
+ @tab-click="handlePolicyClick"
|
|
|
>
|
|
|
- <div
|
|
|
- class="hmpc-left-list"
|
|
|
- v-if="policyObj.policyList.length"
|
|
|
+ <el-tab-pane
|
|
|
+ v-for="(item, index) in policyObj.policyTypeList"
|
|
|
+ :key="index"
|
|
|
+ :label="item.label"
|
|
|
+ :name="item.text"
|
|
|
>
|
|
|
<div
|
|
|
- class="hmpc-left-list-item"
|
|
|
- v-for="(item, index) in policyObj.policyList"
|
|
|
- :key="index"
|
|
|
+ class="hmpc-left-list"
|
|
|
+ v-if="policyObj.policyList.length"
|
|
|
>
|
|
|
- <div class="title">{{ item.artTitle }}</div>
|
|
|
- <div class="date">
|
|
|
- {{ parseTime(item.artPostTime, "{y}-{m}-{d}") }}
|
|
|
+ <div
|
|
|
+ class="hmpc-left-list-item"
|
|
|
+ v-for="(item, index) in policyObj.policyList"
|
|
|
+ :key="index"
|
|
|
+ >
|
|
|
+ <div class="title">{{ item.artTitle }}</div>
|
|
|
+ <div class="date">
|
|
|
+ {{ parseTime(item.artPostTime, "{y}-{m}-{d}") }}
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
- </div>
|
|
|
- <el-empty description="列表为空" v-else></el-empty>
|
|
|
- </el-tab-pane>
|
|
|
- </el-tabs>
|
|
|
- </div>
|
|
|
- </el-col>
|
|
|
- <el-col :xs="24" :sm="24" :md="8" :lg="8" :xl="8">
|
|
|
- <div class="hmpc-right">
|
|
|
- <div class="hmpc-right-title">退役军人服务</div>
|
|
|
- <div class="hmpc-right-list">
|
|
|
- <div
|
|
|
- class="hmpc-right-list-btn hmpc-right-list-btn-1"
|
|
|
- ></div>
|
|
|
- <div
|
|
|
- class="hmpc-right-list-btn hmpc-right-list-btn-2"
|
|
|
- ></div>
|
|
|
- <div
|
|
|
- class="hmpc-right-list-btn hmpc-right-list-btn-3"
|
|
|
- ></div>
|
|
|
- <div
|
|
|
- class="hmpc-right-list-btn hmpc-right-list-btn-4"
|
|
|
- ></div>
|
|
|
- <div
|
|
|
- class="hmpc-right-list-btn hmpc-right-list-btn-5"
|
|
|
- ></div>
|
|
|
+ <el-empty description="列表为空" v-else></el-empty>
|
|
|
+ </el-tab-pane>
|
|
|
+ </el-tabs>
|
|
|
+ <div class="more-btn" @click="jumpPage('/policyadvice')">
|
|
|
+ 更多
|
|
|
+ </div>
|
|
|
</div>
|
|
|
- </div>
|
|
|
- </el-col>
|
|
|
- </el-row>
|
|
|
- </el-col>
|
|
|
- </el-row>
|
|
|
+ </el-col>
|
|
|
+ <el-col :xs="24" :sm="24" :md="8" :lg="8" :xl="8">
|
|
|
+ <div class="hmpc-right">
|
|
|
+ <div class="hmpc-right-title">退役军人服务</div>
|
|
|
+ <div class="hmpc-right-list">
|
|
|
+ <div
|
|
|
+ class="hmpc-right-list-btn hmpc-right-list-btn-1"
|
|
|
+ ></div>
|
|
|
+ <div
|
|
|
+ class="hmpc-right-list-btn hmpc-right-list-btn-2"
|
|
|
+ ></div>
|
|
|
+ <div
|
|
|
+ class="hmpc-right-list-btn hmpc-right-list-btn-3"
|
|
|
+ ></div>
|
|
|
+ <div
|
|
|
+ class="hmpc-right-list-btn hmpc-right-list-btn-4"
|
|
|
+ ></div>
|
|
|
+ <div
|
|
|
+ class="hmpc-right-list-btn hmpc-right-list-btn-5"
|
|
|
+ ></div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ </div>
|
|
|
<!-- 院校合作 -->
|
|
|
<institutional-cooperation />
|
|
|
<!-- 企业合作 -->
|
|
@@ -472,13 +481,13 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- &-box {
|
|
|
+ &-news-box {
|
|
|
+ background-color: #f4f4f4;
|
|
|
+ }
|
|
|
+ &-news {
|
|
|
width: 70%;
|
|
|
margin: 0 auto;
|
|
|
min-width: 600px;
|
|
|
- }
|
|
|
- &-news {
|
|
|
- width: 100%;
|
|
|
padding: 47px 0;
|
|
|
border-radius: 5px;
|
|
|
margin-top: 14px;
|
|
@@ -580,7 +589,13 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+ &-policy-box {
|
|
|
+ background: #F7F7F7;
|
|
|
+ }
|
|
|
&-policy {
|
|
|
+ width: 70%;
|
|
|
+ margin: 0 auto;
|
|
|
+ min-width: 600px;
|
|
|
padding: 40px 0;
|
|
|
&-carousel {
|
|
|
:deep(.el-carousel__button) {
|
|
@@ -605,6 +620,7 @@ export default {
|
|
|
margin-top: 50px;
|
|
|
.hmpc-left {
|
|
|
margin-bottom: 20px;
|
|
|
+ position: relative;
|
|
|
:deep(.el-tabs__item) {
|
|
|
font-size: 20px;
|
|
|
font-weight: 500;
|
|
@@ -649,11 +665,19 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+ .more-btn {
|
|
|
+ position: absolute;
|
|
|
+ right: 0;
|
|
|
+ top: 12px;
|
|
|
+ color: #727272;
|
|
|
+ font-size: 14px;
|
|
|
+ cursor: pointer;
|
|
|
+ }
|
|
|
}
|
|
|
.hmpc-right {
|
|
|
margin-bottom: 20px;
|
|
|
&-title {
|
|
|
- font-size: 26px;
|
|
|
+ font-size: 20px;
|
|
|
color: #163da5;
|
|
|
margin-bottom: 10px;
|
|
|
}
|
|
@@ -665,7 +689,7 @@ export default {
|
|
|
line-height: 47px;
|
|
|
border-radius: 5px;
|
|
|
cursor: pointer;
|
|
|
- font-size: 18px;
|
|
|
+ font-size: 14px;
|
|
|
margin-bottom: 7px;
|
|
|
position: relative;
|
|
|
&:hover {
|
|
@@ -772,12 +796,12 @@ export default {
|
|
|
position: fixed;
|
|
|
top: 50%;
|
|
|
right: 0;
|
|
|
- margin-top: -214px;
|
|
|
+ margin-top: -183px;
|
|
|
z-index: 1000;
|
|
|
&-fixed {
|
|
|
&-item {
|
|
|
- width: 95px;
|
|
|
- height: 95px;
|
|
|
+ width: 80px;
|
|
|
+ height: 80px;
|
|
|
display: flex;
|
|
|
justify-content: center;
|
|
|
align-items: center;
|
|
@@ -792,15 +816,15 @@ export default {
|
|
|
background: #73aa8d;
|
|
|
}
|
|
|
.image {
|
|
|
- width: 48px;
|
|
|
- height: 48px;
|
|
|
+ width: 35px;
|
|
|
+ height: 35px;
|
|
|
}
|
|
|
}
|
|
|
&-item-last {
|
|
|
- height: 42px;
|
|
|
+ height: 40px;
|
|
|
.image {
|
|
|
- width: 26px;
|
|
|
- height: 26px;
|
|
|
+ width: 20px;
|
|
|
+ height: 20px;
|
|
|
}
|
|
|
}
|
|
|
}
|