| xqd
@@ -8,6 +8,7 @@
|
|
|
>
|
|
|
<view
|
|
|
class="icon"
|
|
|
+ :class="item.class"
|
|
|
:style="{
|
|
|
backgroundImage: `url(${item.icon})`
|
|
|
}"
|
| xqd
@@ -28,18 +29,18 @@ export default {
|
|
|
data() {
|
|
|
return {
|
|
|
types: {
|
|
|
- 1: { href: '/pages/index/rank' },
|
|
|
- 2: { href: '/pages/index/news' },
|
|
|
- 3: { href: '/pages/member/index' },
|
|
|
- 4: { href: '/pages/sign/index' },
|
|
|
- 5: { type: 'recharge' }
|
|
|
+ 1: { href: '/pages/index/rank', class: 'rank' },
|
|
|
+ 2: { href: '/pages/index/news', class: 'news' },
|
|
|
+ 3: { href: '/pages/member/index', class: 'member' },
|
|
|
+ 4: { href: '/pages/sign/index', class: 'sign' },
|
|
|
+ 5: { type: 'recharge', class: 'recharge' }
|
|
|
},
|
|
|
navItem: [
|
|
|
- { icon: '', name: '排行榜', href: '/pages/index/rank' },
|
|
|
- { icon: '', name: '最新', href: '/pages/index/news' },
|
|
|
- { icon: '', name: '会员', href: '/pages/member/index' },
|
|
|
- { icon: '', name: '签到', href: '/pages/sign/index' },
|
|
|
- { icon: '', name: '充值', type: 'recharge' }
|
|
|
+ { icon: '', name: '排行榜', href: '/pages/index/rank', class: 'rank' },
|
|
|
+ { icon: '', name: '最新', href: '/pages/index/news', class: 'news' },
|
|
|
+ { icon: '', name: '会员', href: '/pages/member/index', class: 'member' },
|
|
|
+ { icon: '', name: '签到', href: '/pages/sign/index', class: 'sign' },
|
|
|
+ { icon: '', name: '充值', type: 'recharge', class: 'recharge' }
|
|
|
],
|
|
|
recharge: { show: false }
|
|
|
}
|
| xqd
@@ -78,11 +79,22 @@ export default {
|
|
|
flex: 1;
|
|
|
font-size: 32rpx;
|
|
|
.icon{
|
|
|
- width: 100rpx;
|
|
|
- height: 100rpx;
|
|
|
+ width: 90rpx;
|
|
|
+ height: 90rpx;
|
|
|
background-repeat: no-repeat;
|
|
|
background-size: 100%;
|
|
|
background-position: center;
|
|
|
+ &.rank{}
|
|
|
+ &.news{
|
|
|
+ width: 80rpx;
|
|
|
+ }
|
|
|
+ &.member{
|
|
|
+ width: 82rpx;
|
|
|
+ }
|
|
|
+ &.sign{}
|
|
|
+ &.recharge{
|
|
|
+ width: 70rpx;
|
|
|
+ }
|
|
|
}
|
|
|
text{
|
|
|
color: #fff;
|