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
04175859
Commit
04175859
authored
May 12, 2020
by
郑秀明
Browse files
Options
Browse Files
Download
Plain Diff
Merge commit '
b637ff0d
' into develop
parents
4ff7b2c5
b637ff0d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
3 deletions
+16
-3
navigation.vue
pages/home/components/navigation.vue
+8
-3
slide.vue
pages/home/components/slide.vue
+8
-0
No files found.
pages/home/components/navigation.vue
View file @
04175859
<
template
>
<
template
>
<view
class=
"navigation"
:style=
"[
{'height': style_setting.height*2+'rpx', 'height': style_setting.height*2+'rpx'}, style_setting.bg_show ? {'background-image': 'url('+style_setting.bg_url+')'} : null, {'background-color': style_setting.bg_color}]">
<view
class=
"navigation"
:style=
"[
{'height': style_setting.height*2+'rpx', 'height': style_setting.height*2+'rpx'}, style_setting.bg_show ? {'background-image': 'url('+style_setting.bg_url+')'} : null, {'background-color': style_setting.bg_color}]">
<view>
<view>
<text
class=
"navigation_item"
v-for=
"(item, key) in list"
:key=
"key"
v-if=
"item.
title_show"
>
<text
class=
"navigation_item"
v-for=
"(item, key) in list"
:key=
"key"
v-if=
"item.
goods_type ? item.goods_type === goods_type : true"
>
<text
class=
"navigation_text"
:style=
"[
{'color': item.title_color}, item.title_bg_show ? {'background-image': 'url('+item.title_bg_url+')'} : '']" @click="$jump(item.link)">
<text
class=
"navigation_text"
:style=
"[
{'color': item.title_color}, item.title_bg_show ? {'background-image': 'url('+item.title_bg_url+')'} : '']" @click="$jump(item.link)">
<i
v-if=
"item.title_icon_show"
class=
"navigation_icon"
:style=
"
{'background-image': 'url('+item.title_icon_url+')'}">
</i>
<i
v-if=
"item.title_icon_show"
class=
"navigation_icon"
:style=
"
{'background-image': 'url('+item.title_icon_url+')'}">
</i>
<text>
{{
item
.
title
}}
</text>
<text
v-if=
"item.title_show"
>
{{
item
.
title
}}
</text>
</text>
</text>
</text>
</text>
</view>
</view>
...
@@ -21,8 +21,13 @@
...
@@ -21,8 +21,13 @@
data
()
{
data
()
{
return
{
return
{
style_setting
:
this
.
wrapper_props
.
style_setting
,
style_setting
:
this
.
wrapper_props
.
style_setting
,
list
:
this
.
wrapper_props
.
list
list
:
this
.
wrapper_props
.
list
,
goods_type
:
''
}
}
},
mounted
()
{
const
goods_type
=
getCurrentPages
()[
0
][
'$route'
][
'query'
][
'goods_type'
]
||
''
;
this
.
goods_type
=
goods_type
;
}
}
}
}
</
script
>
</
script
>
...
...
pages/home/components/slide.vue
View file @
04175859
...
@@ -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