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
b637ff0d
Commit
b637ff0d
authored
Apr 28, 2020
by
王建威
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
筛选navagation
parent
fbf247d1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
navigation.vue
pages/home/components/navigation.vue
+8
-3
No files found.
pages/home/components/navigation.vue
View file @
b637ff0d
<
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>
<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)">
<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>
</view>
...
...
@@ -21,8 +21,13 @@
data
()
{
return
{
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
>
...
...
郑秀明
@zhengxiuming
mentioned in commit
04175859
·
May 12, 2020
mentioned in commit
04175859
mentioned in commit 04175859b473c564d57d8356d1ef80a2b97582c1
Toggle commit list
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