Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gs1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
吴迪
gs1
Commits
f94890f9
Commit
f94890f9
authored
Jun 23, 2022
by
林家欣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 更新轮播图因为接口渲染速度慢导致功能不生效
parent
5b957959
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
16 deletions
+28
-16
index.vue
src/views/Home/index.vue
+28
-16
No files found.
src/views/Home/index.vue
View file @
f94890f9
...
@@ -65,10 +65,10 @@
...
@@ -65,10 +65,10 @@
</VueSlickCarousel>
</VueSlickCarousel>
<VueSlickCarousel
<VueSlickCarousel
v-bind=
"newsBannerSettingsB"
v-bind=
"newsBannerSettingsB"
v-if=
"newsBanner.length > 0"
ref=
"newsBannerB"
ref=
"newsBannerB"
class=
"newsBannerB"
class=
"newsBannerB"
:asNavFor=
"$refs.newsBannerA"
:asNavFor=
"$refs.newsBannerA"
v-if=
"newsBanner.length > 0"
>
>
<div
<div
class=
"newsBanner-item"
class=
"newsBanner-item"
...
@@ -558,7 +558,18 @@ export default {
...
@@ -558,7 +558,18 @@ export default {
slidesToShow
:
1
,
slidesToShow
:
1
,
slidesToScroll
:
1
,
slidesToScroll
:
1
,
},
},
newsBanner
:
[],
// 要闻左侧图片
newsBanner
:
[
// {
// title: '中国物品编码中心应邀出席食品安全智慧监管研讨会',
// picFile: 'http://81.68.189.225:9091/office/uploadFileResource/news/newsimg/0c4b2d1e-0c95-43a6-a31e-6b53c983e1c6.jpg',
// jumppath: '',
// },
// {
// title: '发挥行业组织作用推进电线电缆行业质量评价和追溯体系建设研讨会在京顺利召开',
// picFile: 'http://81.68.189.225:9091/office/uploadFileResource/news/newsimg/3e5344f9-1de5-4a2a-8f89-10cdf4ad769a.jpg',
// jumppath: '',
// }
],
// 要闻左侧图片
newsBannerSettingsA
:
{
newsBannerSettingsA
:
{
arrows
:
false
,
arrows
:
false
,
autoplay
:
false
,
autoplay
:
false
,
...
@@ -1070,18 +1081,6 @@ export default {
...
@@ -1070,18 +1081,6 @@ export default {
},
},
// 初始化
// 初始化
init
()
{
init
()
{
// 要闻右侧标题列表
this
.
homeImportantNewList
();
// 商品全球身份证
this
.
homeNewGtin
();
// 党建文化新闻列表
Promise
.
all
([
this
.
homeGet4PartyTopNews
(),
this
.
homeGet1PartyTopNews
(),
]).
then
((
result
)
=>
{
console
.
log
(
result
,
"党建文化新闻列表集合"
);
this
.
djwh
.
data
=
[].
concat
(
result
[
0
],
result
[
1
]);
});
// 专题聚焦
// 专题聚焦
this
.
homeGetsdztListTopNews
();
this
.
homeGetsdztListTopNews
();
// 后台轮播图预览
// 后台轮播图预览
...
@@ -1099,6 +1098,19 @@ export default {
...
@@ -1099,6 +1098,19 @@ export default {
// 要闻左侧图片资讯
// 要闻左侧图片资讯
this
.
homePictureImageList
();
this
.
homePictureImageList
();
}
}
// 要闻右侧标题列表
this
.
homeImportantNewList
();
// 商品全球身份证
this
.
homeNewGtin
();
// 党建文化新闻列表
Promise
.
all
([
this
.
homeGet4PartyTopNews
(),
this
.
homeGet1PartyTopNews
(),
]).
then
((
result
)
=>
{
console
.
log
(
result
,
"党建文化新闻列表集合"
);
this
.
djwh
.
data
=
[].
concat
(
result
[
0
],
result
[
1
]);
});
},
},
// 后台轮播图预览
// 后台轮播图预览
async
indexCarouselManage
(
indexCarouselManageId
)
{
async
indexCarouselManage
(
indexCarouselManageId
)
{
...
@@ -1410,7 +1422,7 @@ export default {
...
@@ -1410,7 +1422,7 @@ export default {
border-radius
:
50%
;
border-radius
:
50%
;
}
}
}
}
.slick-slider
,
.slick-slider
,
.slick-list
,
.slick-list
,
.slick-track
{
.slick-track
{
...
@@ -1428,7 +1440,7 @@ export default {
...
@@ -1428,7 +1440,7 @@ export default {
}
}
}
}
}
}
.slick-arrow
{
.slick-arrow
{
z-index
:
9
;
z-index
:
9
;
display
:
flex
;
display
:
flex
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment