import Vue from "vue";
import Vuex from "vuex";
Vue.use(Vuex);

const store = new Vuex.Store({
  state: {
    token: "",
    selectedCar: {},
    tabbar: [
      // {
      //   text: "首页",
      //   iconPath: require("@/static/image/home.png"),
      //   selectedIconPath: require("@/static/image/home2.png"),
      // },
      // {
      //   text: "我的",
      //   iconPath: require("@/static/image/user1.png"),
      //   selectedIconPath: require("@/static/image/user.png"),
      // },
      {
        pagePath: '/pagesA/pages/index/index',
        iconPath: '/static/tarbar/index22.png',
        selectedIconPath: '/static/tarbar/index5.png',
        text: '首页'
    },
    {
        pagePath: '/pagesB/pages/move-car/index',
        iconPath: '/static/tarbar/index17.png',
        selectedIconPath: '/static/tarbar/index24.png',
        text: '我要挪车'
    },
    {
        pagePath: '/pagesC/pages/releaseBtn/releaseBtn',
        iconPath: '',
        selectedIconPath: '',
		text: '扫一扫'
    },
    {
        pagePath: '/pagesC/pages/shop/index',
        iconPath: '/static/tarbar/index2.png',
        selectedIconPath: '/static/tarbar/index21.png',
        text: '精选商城'
    },
    {
        pagePath: '/pagesD/pages/personal/index',
        iconPath: '/static/tarbar/index11.png',
        selectedIconPath: '/static/tarbar/index23.png',
        text: '我的'
    },
    
    ],
    tabbarTextColor: "rgba(102, 102, 102, 1)",
    tabbarTextActiveColor: "rgba(225, 37, 27, 1)",
  },
  mutations: {
    SET_TABBAR(state, tabbar) {
      state.tabbar = tabbar || [];
    },
  },
  actions: {},
});

export default store;
