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
73c7e7e9
Commit
73c7e7e9
authored
Mar 12, 2020
by
王建威
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'wjw_dev'
parents
c39c1918
0b654c7b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
functionmenu.vue
pages/home/components/functionmenu.vue
+6
-2
No files found.
pages/home/components/functionmenu.vue
View file @
73c7e7e9
<
template
>
<
template
>
<view>
<view>
<view
v-if=
"style_setting.rank === 1"
class=
"rank rank1"
:style=
"[
style_setting.bg_show ?
{'background-image':style_setting.bg_url} :
{'background-color': style_setting.bg_color},{'border-bottom-left-radius':style_setting.radius_bottom_left*2+'rpx', 'border-bottom-right-radius':style_setting.radius_bottom_right*2+'rpx', 'border-top-left-radius':style_setting.radius_top_left*2+'rpx', 'border-top-right-radius':style_setting.radius_top_right*2+'rpx'}, style_setting.bg_style === 1 ? {'width':'702rpx','margin':'0 auto 20rpx'}: null]">
<view
v-if=
"style_setting.rank === 1"
class=
"rank rank1"
:style=
"[
{'background-image':style_setting.bg_url},
{'background-color': style_setting.bg_color},{'border-bottom-left-radius':style_setting.radius_bottom_left*2+'rpx', 'border-bottom-right-radius':style_setting.radius_bottom_right*2+'rpx', 'border-top-left-radius':style_setting.radius_top_left*2+'rpx', 'border-top-right-radius':style_setting.radius_top_right*2+'rpx'}, style_setting.bg_style === 1 ? {'width':'702rpx','margin':'0 auto 20rpx'}: null]">
<view
class=
"menuItem"
v-for=
"(item, key) in menuArray"
:key=
"key"
:style=
"
{'width': width}" @click="$jump(item.img_href)">
<view
class=
"menuItem"
v-for=
"(item, key) in menuArray"
:key=
"key"
:style=
"
{'width': width}" @click="$jump(item.img_href)">
<image
:src=
"item.img_url"
class=
"icon_img"
></image>
<image
:src=
"item.img_url"
class=
"icon_img"
></image>
<text
v-if=
"style_setting.font_show"
class=
"title"
:style=
"
{'color': style_setting.font_color}">
{{
item
.
title
}}
</text>
<text
v-if=
"style_setting.font_show"
class=
"title"
:style=
"
{'color': style_setting.font_color}">
{{
item
.
title
}}
</text>
</view>
</view>
</view>
</view>
<swiper
v-else
indicator-dots=
"true"
:style=
"[
{'height': style_setting.rank*200+10+'rpx'}, style_setting.bg_style === 1 ? {'
padding':'0 24rpx','box-sizing':'border-box'}: null]
">
<swiper
v-else
indicator-dots=
"true"
:style=
"[
{'height': style_setting.rank*200+10+'rpx'}, style_setting.bg_style === 1 ? {'
width':'702rpx','margin':'0 auto 20rpx'}: null, {'background-image':style_setting.bg_url}, {'background-color': style_setting.bg_color}]" class="swiper_view
">
<swiper-item
v-for=
"(item, key) in menuArray"
:key=
"key"
class=
"rank rank1"
>
<swiper-item
v-for=
"(item, key) in menuArray"
:key=
"key"
class=
"rank rank1"
>
<view
class=
"menuItem"
v-for=
"(val, index) in item"
:key=
"index"
:style=
"
{'width': width}" @click="$jump(item.img_href)">
<view
class=
"menuItem"
v-for=
"(val, index) in item"
:key=
"index"
:style=
"
{'width': width}" @click="$jump(item.img_href)">
<image
:src=
"val.img_url"
class=
"icon_img"
></image>
<image
:src=
"val.img_url"
class=
"icon_img"
></image>
...
@@ -51,6 +51,10 @@
...
@@ -51,6 +51,10 @@
</
script
>
</
script
>
<
style
lang=
"less"
scoped
>
<
style
lang=
"less"
scoped
>
.swiper_view {
background-size: 100% 100%;
background-repeat: no-repeat;
}
.rank {
.rank {
background-size: 100% 100%;
background-size: 100% 100%;
background-repeat: no-repeat;
background-repeat: no-repeat;
...
...
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