| import Vue from 'vue' |
| import Vuex from 'vuex' |
| Vue.use(Vuex) |
| |
| const store = new Vuex.Store({ |
| state: { |
| vuex_tabbar: [{ |
| iconPath: "/static/images/tabbar/index.png", |
| selectedIconPath: "/static/images/tabbar/index_s.png", |
| text: '首页', |
| pagePath: '/pages/sub_tabbar/index' |
| }, |
| { |
| iconPath: "/static/images/tabbar/life.png", |
| selectedIconPath: "/static/images/tabbar/life_s.png", |
| text: '生活', |
| pagePath: '/pages/sub_tabbar/life' |
| }, |
| |
| { |
| iconPath: "/static/images/tabbar/qrcode.png", |
| selectedIconPath: "/static/images/tabbar/qrcode.png", |
| text: '我的码', |
| midButton: true, |
| pagePath: '/pages/sub_tabbar/qrcode' |
| }, |
| { |
| iconPath: "/static/images/tabbar/active.png", |
| selectedIconPath: "/static/images/tabbar/active_s.png", |
| text: '活动', |
| pagePath: '/pages/sub_tabbar/active' |
| }, |
| { |
| iconPath: "/static/images/tabbar/mine.png", |
| selectedIconPath: "/static/images/tabbar/mine_s.png", |
| text: '我的', |
| pagePath: '/pages/sub_tabbar/mine' |
| } |
| ], |
| }, |
| mutations: { |
| |
| } |
| }) |
| |
| export default store |