Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
shop_mobile_uni
Project
Project
Details
Activity
Releases
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
郑秀明
shop_mobile_uni
Commits
fbf247d1
Commit
fbf247d1
authored
Apr 28, 2020
by
王建威
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
筛选banner图
parent
51c19947
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
slide.vue
pages/home/components/slide.vue
+8
-0
No files found.
pages/home/components/slide.vue
View file @
fbf247d1
...
@@ -30,7 +30,15 @@
...
@@ -30,7 +30,15 @@
}
}
},
},
mounted
()
{
mounted
()
{
const
goods_type
=
getCurrentPages
()[
0
][
'$route'
][
'query'
][
'goods_type'
]
||
''
;
const
{
infinite
}
=
this
.
slide_setting
;
const
{
infinite
}
=
this
.
slide_setting
;
const
list
=
[];
this
.
slide_list
.
map
((
item
,
index
)
=>
{
if
((
item
.
goods_type
&&
item
.
goods_type
===
goods_type
)
||
!
item
.
goods_type
)
{
list
.
push
(
item
)
}
});
this
.
slide_list
=
list
;
if
(
!
infinite
)
{
if
(
!
infinite
)
{
const
time
=
this
.
interval
*
this
.
slide_list
.
length
;
const
time
=
this
.
interval
*
this
.
slide_list
.
length
;
setTimeout
(()
=>
{
setTimeout
(()
=>
{
...
...
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