|
@@ -1,8 +1,7 @@
|
|
|
<template>
|
|
<template>
|
|
|
<view class="ezy-custom-tabbar">
|
|
<view class="ezy-custom-tabbar">
|
|
|
- <view class="tabbar-item-box">
|
|
|
|
|
-
|
|
|
|
|
- <view class="tabbar-item" v-for="(item, index) in tabList" :key="index" @click="switchTab(item.path,index)"
|
|
|
|
|
|
|
+ <view class="tabbar-item-box" v-for="(item, index) in tabList" :key="index" @click="switchTab(item.path,index)">
|
|
|
|
|
+ <view class="tabbar-item"
|
|
|
:style="{ backgroundImage: 'url(' + (currentTab == index ? item.activePath : item.iconPath) + ')' }">
|
|
:style="{ backgroundImage: 'url(' + (currentTab == index ? item.activePath : item.iconPath) + ')' }">
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
@@ -36,23 +35,23 @@
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
|
tabList: [{
|
|
tabList: [{
|
|
|
- iconPath: 'static/images/tabbar/unselect/plan-sj.png',
|
|
|
|
|
- activePath: 'static/images/tabbar/select/plan-sj.png',
|
|
|
|
|
|
|
+ iconPath: 'static/images/tabbar/unselect/xuanke-sj.png',
|
|
|
|
|
+ activePath: 'static/images/tabbar/select/xuanke-sj.png',
|
|
|
path: `/pages/study/index`
|
|
path: `/pages/study/index`
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- iconPath: 'static/images/tabbar/unselect/xinqing-sj.png',
|
|
|
|
|
- activePath: 'static/images/tabbar/select/xinqing-sj.png',
|
|
|
|
|
|
|
+ iconPath: 'static/images/tabbar/unselect/xuexi-sj.png',
|
|
|
|
|
+ activePath: 'static/images/tabbar/select/xuexi-sj.png',
|
|
|
path: `/pages/zhuanti/index`
|
|
path: `/pages/zhuanti/index`
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- iconPath: 'static/images/tabbar/unselect/partner-sj.png',
|
|
|
|
|
- activePath: 'static/images/tabbar/select/partner-sj.png',
|
|
|
|
|
|
|
+ iconPath: 'static/images/tabbar/unselect/faxian-sj.png',
|
|
|
|
|
+ activePath: 'static/images/tabbar/select/faxian-sj.png',
|
|
|
path: '/pages/game/index'
|
|
path: '/pages/game/index'
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- iconPath: 'static/images/tabbar/unselect/my-sj.png',
|
|
|
|
|
- activePath: 'static/images/tabbar/select/my-sj.png',
|
|
|
|
|
|
|
+ iconPath: 'static/images/tabbar/unselect/wode-sj.png',
|
|
|
|
|
+ activePath: 'static/images/tabbar/select/wode-sj.png',
|
|
|
path: `/pages/my/index`
|
|
path: `/pages/my/index`
|
|
|
},
|
|
},
|
|
|
],
|
|
],
|