// 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 App from './App'
import router from './router'
import store from './store'
import Vant from 'vant'
import 'vant/lib/index.css'
import toolClass from './util/util'
import 'swiper/dist/css/swiper.css'
import AMap from 'vue-amap'
import 'animate.css/animate.min.css'

Vue.use(Vant)
Vue.use(AMap)

Vue.config.productionTip = false
Vue.prototype.toolClass = toolClass

AMap.initAMapApiLoader({
  key: 'f0d1d4f82432504003ebf46e5e36ff03',
  plugin: ['AMap.Autocomplete', 'AMap.PlaceSearch', 'AMap.Scale', 'AMap.OverView', 'AMap.ToolBar', 'AMap.MapType', 'AMap.PolyEditor', 'AMap.CircleEditor'],
  // 默认高德 sdk 版本为 1.4.4
  v: '1.4.4'
})

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