// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import router from './router'
import App from './App'

import 'jquery'
import VueQriously from 'vue-qriously'
import "../static/css/common.css"
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
// import 'element-ui/lib/theme-default/index.css'

import base from './assets/js/base.js'
import path from './assets/js/path.js'
import api from './assets/js/api.js'
import Axios from './axios/Axios.js'
import stylejs from '../static/js/style'
import echarts from 'echarts'
import vueSeamlessScroll from 'vue-seamless-scroll'
import store from './vuex/store'

import Viewer from 'v-viewer'
import 'viewerjs/dist/viewer.css'

import commonFun from '../static/js/commonFun'



Vue.use(Viewer)
Vue.use(ElementUI)
// Vue.use(VueQriously)
Vue.use(vueSeamlessScroll)
Vue.config.productionTip = false


window.eventBus = new Vue();//注册全局事件对象

Vue.prototype.$ip = base.ip;
Vue.prototype.$message = base.message;
Vue.prototype.$exitTop = base.exitTop;
Vue.prototype.$websocketFn = base.websocketFn;
Vue.prototype.$api = api.api;
Vue.prototype.$axios = Axios;
Vue.prototype.$page = path.path;
Vue.prototype.$path = path.url;
Vue.prototype.$echarts = echarts;
Vue.prototype.$port = {};
Vue.prototype.$commonFun = commonFun


/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  components: { App },
  template: '<App/>'
})
