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
4f5e64b7
Commit
4f5e64b7
authored
Dec 29, 2021
by
林家欣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改首页轮播图路径
parent
5192e170
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
index.vue
src/views/Home/index.vue
+4
-4
No files found.
src/views/Home/index.vue
View file @
4f5e64b7
...
@@ -1154,9 +1154,9 @@ export default {
...
@@ -1154,9 +1154,9 @@ export default {
await
this
.
$api
.
home
.
homePictureImageList
();
await
this
.
$api
.
home
.
homePictureImageList
();
const
{
returnCode
,
data
}
=
homePictureImageListRes
;
const
{
returnCode
,
data
}
=
homePictureImageListRes
;
if
(
returnCode
===
"0"
)
{
if
(
returnCode
===
"0"
)
{
data
.
forEach
((
el
)
=>
{
//
data.forEach((el) => {
el
.
picFile
=
`
${
this
.
urls
.
gs1cnTwo
}
news/newsimg/
${
el
.
picFile
}
`
;
//
el.picFile = `${this.urls.gs1cnTwo}news/newsimg/${el.picFile}`;
});
//
});
this
.
newsBanner
=
data
;
this
.
newsBanner
=
data
;
}
}
console
.
log
(
homePictureImageListRes
,
"要闻左侧图片资讯"
);
console
.
log
(
homePictureImageListRes
,
"要闻左侧图片资讯"
);
...
@@ -1242,7 +1242,7 @@ export default {
...
@@ -1242,7 +1242,7 @@ export default {
if
(
returnCode
===
"0"
)
{
if
(
returnCode
===
"0"
)
{
let
list
=
[];
let
list
=
[];
data
.
forEach
((
el
,
i
)
=>
{
data
.
forEach
((
el
,
i
)
=>
{
el
.
picIndexPath
=
`
${
this
.
urls
.
gs1cnTwo
}
img/demo/
${
el
.
picIndexPath
}
`
;
//
el.picIndexPath = `${this.urls.gs1cnTwo}img/demo/${el.picIndexPath}`;
this
.
smallH5Images
.
push
(
el
);
this
.
smallH5Images
.
push
(
el
);
list
.
push
(
el
);
list
.
push
(
el
);
if
((
i
+
1
)
%
3
===
0
)
{
if
((
i
+
1
)
%
3
===
0
)
{
...
...
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