|
@@ -21,7 +21,20 @@
|
|
|
</ul>
|
|
|
</div>
|
|
|
<div class="novt_box">
|
|
|
- <el-tabs type="border-card" style="width: 620px; height: 350px">
|
|
|
+ <el-carousel height="350px" style="width: 560px" class="carousel">
|
|
|
+ <el-carousel-item v-for="(item, index) in BannerList2" :key="index">
|
|
|
+ <img
|
|
|
+ style="width: 100%; height: 100%"
|
|
|
+ :src="$methods.splitImgHost(item.ImageUrl)"
|
|
|
+ alt=""
|
|
|
+ />
|
|
|
+ <h3>
|
|
|
+ <span>{{ item.Title }}</span
|
|
|
+ ><span>{{ $methods.onlyFormaHao(item.CreateTime, false) }}</span>
|
|
|
+ </h3>
|
|
|
+ </el-carousel-item>
|
|
|
+ </el-carousel>
|
|
|
+ <el-tabs type="border-card" style="width: 560px; height: 350px">
|
|
|
<el-tab-pane label="通知通告" class="tabBox">
|
|
|
<ul>
|
|
|
<li
|
|
@@ -50,19 +63,6 @@
|
|
|
</div>
|
|
|
</el-tab-pane>
|
|
|
</el-tabs>
|
|
|
- <el-carousel height="350px" style="width: 560px" class="carousel">
|
|
|
- <el-carousel-item v-for="(item, index) in BannerList2" :key="index">
|
|
|
- <img
|
|
|
- style="width: 100%; height: 100%"
|
|
|
- :src="$methods.splitImgHost(item.ImageUrl)"
|
|
|
- alt=""
|
|
|
- />
|
|
|
- <h3>
|
|
|
- <span>{{ item.Title }}</span
|
|
|
- ><span>{{ $methods.onlyFormaHao(item.CreateTime, false) }}</span>
|
|
|
- </h3>
|
|
|
- </el-carousel-item>
|
|
|
- </el-carousel>
|
|
|
</div>
|
|
|
<div class="margin_28">
|
|
|
<div
|
|
@@ -228,6 +228,15 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
+ <div class="infoBox">
|
|
|
+ <div class="center_1200 dis_ffx">
|
|
|
+ <img :src="$methods.splitImgHost(list5.NewsImg)" alt="" />
|
|
|
+ <div class="text_r">
|
|
|
+ <h2>{{ list5.Title }}</h2>
|
|
|
+ <p v-html="list5.NewContent"></p>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
<div style="padding: 15px 0px; overflow: hidden">
|
|
|
<h2 class="link_s">友情链接</h2>
|
|
|
<Scroller :lists="lists"></Scroller>
|
|
@@ -299,11 +308,16 @@ export default {
|
|
|
pagesize: 5, //每页内容条数
|
|
|
pageindex: 1, //当前第几页
|
|
|
},
|
|
|
+ formData5: {
|
|
|
+ pagesize: 1, //每页内容条数
|
|
|
+ pageindex: 1, //当前第几页
|
|
|
+ },
|
|
|
lists: [], //友情链接
|
|
|
list1: [], //协会动态列表
|
|
|
list2: [], //行业新闻列表
|
|
|
list3: [], //政策法规列表
|
|
|
list4: [], //会员天地列表
|
|
|
+ list5: {}, //首页列表
|
|
|
BannerList1: [], //Banner1列表
|
|
|
BannerList2: [], //Banner2列表
|
|
|
tableData: [], //最新3条文章
|
|
@@ -338,7 +352,7 @@ export default {
|
|
|
this.$refs.swiper.$swiper.slideNext();
|
|
|
},
|
|
|
handleClickSlide(index) {
|
|
|
- this.jumpInfo(this.list4[index])
|
|
|
+ this.jumpInfo(this.list4[index]);
|
|
|
},
|
|
|
onSwiper(swiper) {
|
|
|
console.log(swiper);
|
|
@@ -357,12 +371,13 @@ export default {
|
|
|
},
|
|
|
// 首页通告等
|
|
|
getNewPositionList() {
|
|
|
- // seat:0全部,1通知通告,3协会动态,4行业新闻,5政策法规,6会员天地
|
|
|
+ // seat:0全部,1通知通告,3协会动态,4行业新闻,5政策法规,6会员天地,7首页简介
|
|
|
this.getList();
|
|
|
this.getList1();
|
|
|
this.getList2();
|
|
|
this.getList3();
|
|
|
this.getList4();
|
|
|
+ this.getList5();
|
|
|
},
|
|
|
//通知列表
|
|
|
getList() {
|
|
@@ -409,6 +424,14 @@ export default {
|
|
|
this.total4 = res.Data.TotalCount;
|
|
|
});
|
|
|
},
|
|
|
+ //会员天地
|
|
|
+ getList5() {
|
|
|
+ this.$api
|
|
|
+ .XfWebApiGetNewPositionList({ seat: 7, ...this.formData5 })
|
|
|
+ .then((res) => {
|
|
|
+ this.list5 = res.Data.List[0] || {};
|
|
|
+ });
|
|
|
+ },
|
|
|
// 获取首页广告轮播Banner列表
|
|
|
getBannerList() {
|
|
|
//type:1首页2新闻3飘窗广告
|
|
@@ -460,12 +483,44 @@ export default {
|
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
+::v-deep .el-tabs--border-card > .el-tabs__header {
|
|
|
+ background-color: rgba(223, 225, 227, 0.659);
|
|
|
+}
|
|
|
::v-deep .carousel .el-carousel__indicators--horizontal {
|
|
|
display: none;
|
|
|
}
|
|
|
-#home {
|
|
|
- background: url("../../assets/images/BG_01@2x.png") no-repeat center center;
|
|
|
+.infoBox {
|
|
|
+ padding: 60px 0px 80px;
|
|
|
+ margin-top: 40px;
|
|
|
+ background: url("../../assets/images/BG-1@2x.png") no-repeat center center;
|
|
|
background-size: cover;
|
|
|
+ & > .dis_ffx {
|
|
|
+ display: flex;
|
|
|
+ & > img {
|
|
|
+ width: 381px;
|
|
|
+ height: 370px;
|
|
|
+ flex-shrink: 0;
|
|
|
+ margin-right: 80px;
|
|
|
+ }
|
|
|
+ & > .text_r {
|
|
|
+ flex: 1;
|
|
|
+ & > h2 {
|
|
|
+ margin-bottom: 17px;
|
|
|
+ font-size: 36px;
|
|
|
+ font-weight: 800;
|
|
|
+ color: #333333;
|
|
|
+ }
|
|
|
+ & > p {
|
|
|
+ font-size: 16px;
|
|
|
+ font-weight: 500;
|
|
|
+ color: #828282;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
+#home {
|
|
|
+ background: url("../../assets/images/BG_01@2x.png") repeat center center;
|
|
|
+ background-size: contain;
|
|
|
}
|
|
|
.p_text {
|
|
|
word-break: break-all;
|
|
@@ -478,7 +533,7 @@ export default {
|
|
|
.newClass {
|
|
|
margin-bottom: 28px;
|
|
|
padding: 3px 24px;
|
|
|
- background-color: #fff1f3;
|
|
|
+ background-color: #ebf3ff;
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
.logo {
|
|
@@ -505,16 +560,18 @@ export default {
|
|
|
display: -webkit-box;
|
|
|
-webkit-line-clamp: 2;
|
|
|
-webkit-box-orient: vertical;
|
|
|
+ font-size: 14px;
|
|
|
}
|
|
|
.foot {
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
justify-content: space-between;
|
|
|
+ font-size: 13px;
|
|
|
.left {
|
|
|
color: #828282;
|
|
|
}
|
|
|
.right {
|
|
|
- color: #c9001f;
|
|
|
+ color: #3975c6;
|
|
|
user-select: none;
|
|
|
cursor: pointer;
|
|
|
}
|
|
@@ -535,13 +592,13 @@ export default {
|
|
|
background-color: #ebebeb;
|
|
|
padding: 11px 24px;
|
|
|
box-sizing: border-box;
|
|
|
- border: 1px solid #c9001f;
|
|
|
+ border: 1px solid #3975c6;
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
transition: all 0.2s;
|
|
|
&:hover {
|
|
|
// transform: scale(1.1);
|
|
|
- box-shadow: 0px 0px 8px 4px rgba($color: #c9001f, $alpha: 0.5);
|
|
|
+ box-shadow: 0px 0px 8px 4px rgba($color: #3975c6, $alpha: 0.5);
|
|
|
}
|
|
|
img {
|
|
|
width: 88px;
|
|
@@ -571,6 +628,7 @@ export default {
|
|
|
justify-content: space-between;
|
|
|
height: 45px;
|
|
|
border-bottom: 1px solid #e0e0e0;
|
|
|
+ background: rgb(234, 235, 237);
|
|
|
& > .left {
|
|
|
width: 120px;
|
|
|
height: 45px;
|
|
@@ -579,13 +637,13 @@ export default {
|
|
|
font-weight: bold;
|
|
|
font-size: 20px;
|
|
|
color: #fff;
|
|
|
- background-color: #c9001f;
|
|
|
+ background-color: #3975c6;
|
|
|
}
|
|
|
& > .right {
|
|
|
user-select: none;
|
|
|
cursor: pointer;
|
|
|
font-size: 15px;
|
|
|
- color: #c9001f;
|
|
|
+ color: #3975c6;
|
|
|
margin-right: 20px;
|
|
|
}
|
|
|
}
|
|
@@ -619,7 +677,7 @@ export default {
|
|
|
user-select: none;
|
|
|
cursor: pointer;
|
|
|
font-size: 15px;
|
|
|
- color: #c9001f;
|
|
|
+ color: #3975c6;
|
|
|
}
|
|
|
}
|
|
|
.swiperBox {
|
|
@@ -628,18 +686,18 @@ export default {
|
|
|
align-items: center;
|
|
|
justify-content: space-between;
|
|
|
& > .left {
|
|
|
- color: red;
|
|
|
+ color: #3975c6;
|
|
|
font-size: 28px;
|
|
|
font-weight: bold;
|
|
|
margin-right: 10px;
|
|
|
cursor: pointer;
|
|
|
user-select: none;
|
|
|
}
|
|
|
- & > .swiper-container{
|
|
|
+ & > .swiper-container {
|
|
|
flex: 1;
|
|
|
}
|
|
|
& > .right {
|
|
|
- color: red;
|
|
|
+ color: #3975c6;
|
|
|
font-size: 28px;
|
|
|
font-weight: bold;
|
|
|
margin-left: 10px;
|
|
@@ -699,7 +757,7 @@ export default {
|
|
|
margin-bottom: 30px;
|
|
|
& > i {
|
|
|
position: absolute;
|
|
|
- background: #c9001f;
|
|
|
+ background: #3975c6;
|
|
|
width: 40px;
|
|
|
height: 5px;
|
|
|
left: 0px;
|
|
@@ -797,11 +855,11 @@ export default {
|
|
|
cursor: pointer;
|
|
|
transition: all 0.3s;
|
|
|
&:hover {
|
|
|
- color: #c9001f;
|
|
|
+ color: #3975c6;
|
|
|
}
|
|
|
& > i {
|
|
|
transform: scale(0.8);
|
|
|
- color: #c9001f;
|
|
|
+ color: #3975c6;
|
|
|
margin-right: 6px;
|
|
|
}
|
|
|
& > .title_li {
|
|
@@ -832,8 +890,8 @@ export default {
|
|
|
background-color: #d3dce6;
|
|
|
}
|
|
|
::v-deep .el-tabs--border-card > .el-tabs__header .el-tabs__item.is-active {
|
|
|
- color: #c9001f;
|
|
|
+ color: #3975c6;
|
|
|
font-weight: bold;
|
|
|
- border-top: 3px solid #c9001f;
|
|
|
+ border-top: 3px solid #3975c6;
|
|
|
}
|
|
|
</style>
|