菜单样式
This commit is contained in:
@@ -34,7 +34,7 @@
|
||||
<view class="pop-title">{{title}}</view>
|
||||
<view class="sec_menu_w">
|
||||
<view class="sec_menu-item" :style="{'background-image': 'url(' + require('../../static/image/menu/' + icon + '.png') + ')'}" v-for="(e, i) in secM" :key="i" @click="toPage2(e)">
|
||||
<view class="menu-name_inner" :class="'bgc_' + (i + 1)">{{e.title}}</view>
|
||||
<view class="menu-name_inner">{{e.title}}</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -239,6 +239,16 @@
|
||||
&:nth-child(3n+2)
|
||||
margin-left 5%
|
||||
margin-right 5%
|
||||
&:nth-child(5n+1) .menu-name_inner
|
||||
background linear-gradient(to right, rgba(73,102,255,0.8) 0%, rgba(117,142,255,0.8) 100%)
|
||||
&:nth-child(5n+2) .menu-name_inner
|
||||
background linear-gradient(to right, rgba(254, 168, 20,0.8) 0%, rgba(255, 177, 1,0.8) 100%)
|
||||
&:nth-child(5n+3) .menu-name_inner
|
||||
background linear-gradient(to right, rgba(0, 228, 153,0.8) 0%, rgba(0, 241, 197,0.8) 100%)
|
||||
&:nth-child(5n+4) .menu-name_inner
|
||||
background linear-gradient(to right, rgba(162, 86, 171,0.8) 0%, rgba(183,120,190,0.8) 100%)
|
||||
&:nth-child(5n+5) .menu-name_inner
|
||||
background linear-gradient(to right, rgba(146, 94, 52,0.8) 0%, rgba(162, 116, 79,0.8) 100%)
|
||||
.menu-name_inner
|
||||
_wh(100%, 100%)
|
||||
_fj(center)
|
||||
@@ -255,16 +265,6 @@
|
||||
padding 20rpx 0
|
||||
overflow hidden
|
||||
border-bottom 1px solid #c5c6c7
|
||||
.bgc_1, .bgc_6, .bgc_11
|
||||
background linear-gradient(to right, rgba(73,102,255,0.8) 0%, rgba(117,142,255,0.8) 100%)
|
||||
.bgc_2, .bgc_7
|
||||
background linear-gradient(to right, rgba(254, 168, 20,0.8) 0%, rgba(255, 177, 1,0.8) 100%)
|
||||
.bgc_3, .bgc_8
|
||||
background linear-gradient(to right, rgba(0, 228, 153,0.8) 0%, rgba(0, 241, 197,0.8) 100%)
|
||||
.bgc_4, .bgc_9
|
||||
background linear-gradient(to right, rgba(162, 86, 171,0.8) 0%, rgba(183,120,190,0.8) 100%)
|
||||
.bgc_5, .bgc_10
|
||||
background linear-gradient(to right, rgba(146, 94, 52,0.8) 0%, rgba(162, 116, 79,0.8) 100%)
|
||||
.tabs_wrap
|
||||
border-radius 20rpx 20rpx 0 0
|
||||
background-color #ecedef
|
||||
|
||||
Reference in New Issue
Block a user