|
@@ -11,7 +11,7 @@
|
|
|
route
|
|
|
>
|
|
|
<van-tabbar-item
|
|
|
- v-for="(item, index) in activeObj"
|
|
|
+ v-for="(item, index) in bottomTabs"
|
|
|
:key="index"
|
|
|
:to="item.to"
|
|
|
>
|
|
@@ -26,7 +26,7 @@
|
|
|
|
|
|
<script>
|
|
|
import { Tabbar, TabbarItem } from "vant";
|
|
|
-import {activeObj} from '@/assets/js/active.js'
|
|
|
+// import {activeObj} from '@/assets/js/active.js'
|
|
|
|
|
|
// import RightPanel from "@/components/RightPanel";
|
|
|
// import { AppMain, Navbar, Settings, Sidebar, TagsView } from "./components";
|
|
@@ -38,38 +38,41 @@ export default {
|
|
|
components: {
|
|
|
"van-tabbar": Tabbar,
|
|
|
"van-tabbar-item": TabbarItem,
|
|
|
+ },
|
|
|
+ created() {
|
|
|
+
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
- activeObj:activeObj.bottomTabs,
|
|
|
+
|
|
|
active: 0,
|
|
|
- // bottomTabs: [
|
|
|
- // //底部导航配置
|
|
|
- // {
|
|
|
- // to: "/home/paddy",
|
|
|
- // title: "藏金·1745",
|
|
|
- // icon: {
|
|
|
- // active: require("@/assets/images/active1/home/1745-active.png"),
|
|
|
- // inactive: require("@/assets/images/active1/home/bottomBtn1.png"),
|
|
|
- // },
|
|
|
- // },
|
|
|
- // {
|
|
|
- // to: "/home/product",
|
|
|
- // title: "兑换中心",
|
|
|
- // icon: {
|
|
|
- // active: require("@/assets/images/active1/home/product-active.png"),
|
|
|
- // inactive: require("@/assets/images/active1/home/bottomBtn2.png"),
|
|
|
- // },
|
|
|
- // },
|
|
|
- // {
|
|
|
- // to: "/home/my",
|
|
|
- // title: "个人中心",
|
|
|
- // icon: {
|
|
|
- // active: require("@/assets/images/active1/home/personal-active.png"),
|
|
|
- // inactive: require("@/assets/images/active1/home/bottomBtn3.png"),
|
|
|
- // },
|
|
|
- // },
|
|
|
- // ],
|
|
|
+ bottomTabs: [
|
|
|
+ //底部导航配置
|
|
|
+ {
|
|
|
+ to: "/home/paddy",
|
|
|
+ title: "藏金·1745",
|
|
|
+ icon: {
|
|
|
+ active: require(`@/assets/images/${this.$store.getters.type}/home/1745-active.png`),
|
|
|
+ inactive: require(`@/assets/images/${this.$store.getters.type}/home/bottomBtn1.png`),
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ to: "/home/product",
|
|
|
+ title: "兑换中心",
|
|
|
+ icon: {
|
|
|
+ active: require(`@/assets/images/${this.$store.getters.type}/home/product-active.png`),
|
|
|
+ inactive: require(`@/assets/images/${this.$store.getters.type}/home/bottomBtn2.png`),
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ to: "/home/my",
|
|
|
+ title: "个人中心",
|
|
|
+ icon: {
|
|
|
+ active: require(`@/assets/images/${this.$store.getters.type}/home/personal-active.png`),
|
|
|
+ inactive: require(`@/assets/images/${this.$store.getters.type}/home/bottomBtn3.png`),
|
|
|
+ },
|
|
|
+ },
|
|
|
+ ],
|
|
|
};
|
|
|
},
|
|
|
|