import App from './App';
import Vue from 'vue';
import VHtmlPlugin from '@megalo/vhtml-plugin';
import Vuex from 'vuex';
import http from './plugins/http';
import common from './mixins/common';
import './styles/font.less';
import './styles/vanIndex.less';

Vue.prototype.$colors = {
    prim: '#FF7F1F',
    red: '#F42202'
};

Vue.use(VHtmlPlugin);
Vue.use(Vuex);
const store = require('./store').default;
Vue.prototype.$store = store;
Vue.use(http);
const app = new Vue(App);
Vue.mixin(common);
app.$mount();
export default {
    config: {
        // pages 的首个页面会被编译成首页
        pages: [
            'pages/login',
            'pages/home',
            'pages/withdrawalExamine',
            'pages/my',
            'pages/repairReport',
            'pages/cleanReport',
            'pages/without',
            'pages/paySuccess',
            'pages/personDetail',
            'pages/deposit',
            'pages/Repair/home',
            'pages/Repair/repairReport',
            'pages/Repair/assign',
            'pages/Repair/repairDetails',
            'pages/waterDetails',
            'pages/electricDetails',
            'pages/feeDetail',
            'pages/withdrawalDetails',
            'pages/wallet',
            'pages/walletdetails',
            'pages/withdrawalSuccess',
            'pages/successful',
            'pages/successfuls',
            'pages/recharge',
            'pages/help',
            'pages/checkin',
            'pages/complaint'
        ],
        tabBar: {
            color: '#584C43',
            selectedColor: '#00BA64',
            list: [
                {
                    pagePath: 'pages/home',
                    text: '团队房间',
                    iconPath: 'native/tabbar/tabbar_icon_01@3x (1).png',
                    selectedIconPath: 'native/tabbar/tabbar_icon_01@3x.png'
                },
                {
                    pagePath: 'pages/my',
                    text: '我的',
                    iconPath: 'native/tabbar/tabbar_icon_02@3x.png',
                    selectedIconPath: 'native/tabbar/tabbar_icon_02@3x (1).png'
                }
            ]
        },
        usingComponents: {
            'van-image': '/vant/image/index',
            'van-button': '/vant/button/index',
            'van-tabs': '/vant/tabs/index',
            'van-tab': '/vant/tab/index',
            'van-notice-bar': '/vant/notice-bar/index',
            'van-icon': '/vant/icon/index',
            'van-grid-item ': '/vant/grid-item/index',
            'van-count-down': '/vant/count-down/index',
            'van-dialog': '/vant/dialog/index',
            'van-search': '/vant/search/index',
            'van-empty': '/vant/empty/index',
            'van-sticky': '/vant/sticky/index',
            'van-loading': '/vant/loading/index',
            'van-action-sheet': '/vant/action-sheet/index',
            'van-picker': '/vant/picker/index',
            'van-datetime-picker': '/vant/datetime-picker/index',
            'van-cell-group': '/vant/cell-group/index',
            'van-cell': '/vant/cell/index',
            'van-field': '/vant/field/index',
            'van-uploader': '/vant/uploader/index',
            'van-checkbox': '/vant/checkbox/index',
            'van-panel': '/vant/panel/index',
            'van-overlay': '/vant/overlay/index',
            'van-stepper': '/vant/stepper/index',
            'van-steps': '/vant/steps/index',
            'van-rate': '/vant/rate/index',
            'van-popup': '/vant/popup/index',
            'van-area': '/vant/area/index',
            'van-goods-action': 'vant/goods-action/index',
            'van-goods-action-icon': 'vant/goods-action-icon/index',
            'van-goods-action-button': 'vant/goods-action-button/index',
            'van-calendar': 'vant/calendar/index',
            'van-tree-select': 'vant/tree-select/index'
        },
        window: {
            backgroundTextStyle: 'light',
            navigationBarBackgroundColor: '#fff',
            navigationBarTitleText: '',
            navigationBarTextStyle: 'black'
        }
    }
};
