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
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
14 deletions
+26
-14
index.vue
src/views/Home/index.vue
+26
-14
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
)
{
...
...
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