main.js
1.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
import Vue from 'vue'
import Vuex from 'vuex'
import VueRouter from 'vue-router'
import App from './App.vue'
import createRouter from './router'
import api from '../src/api'
import navBar from './components/navbar'
import Vant from 'vant'
import ElementUI from 'element-ui'
import VueAMap from 'vue-amap'
import store from '@/store'
// import VideoPlayer from 'vue-videojs7'
import '../src/assets/js/base.js'
import '../src/assets/style/common.css'
import 'element-ui/lib/theme-chalk/index.css'
import 'swiper/css/swiper.min.css'
import 'vant/lib/index.css'
import vueWechatTitle from 'vue-wechat-title'
import Vconsole from 'vconsole'
import VideoPlayer from 'vue-video-player'
import { judgeBrand } from '../src/utils/judge'
Vue.use(vueWechatTitle)
const vConsole = new Vconsole()
Vue.use(vConsole)
require('video.js/dist/video-js.css')
require('vue-video-player/src/custom-theme.css')
Vue.use(VideoPlayer)
Vue.prototype.judgeBrand = judgeBrand
Vue.prototype.api = api
Vue.component('navBar', navBar)
Vue.use(ElementUI)
Vue.use(Vant)
Vue.use(Vuex)
Vue.use(VueRouter)
Vue.use(VueAMap)
VueAMap.initAMapApiLoader({
key: 'd41b7e2efef339e41a98b211b81db2db',
plugin: ['AMap.Geolocation', 'AMap.Geocoder', 'AMap.Autocomplete', 'AMap.PlaceSearch', 'AMap.Scale', 'AMap.OverView', 'AMap.ToolBar', 'AMap.MapType', 'AMap.PolyEditor', 'AMap.CircleEditor'],
v: '1.4.4'
})
Vue.config.productionTip = false
// const store = creatStore()
const router = createRouter()
new Vue({
router,
store,
render: h => h(App)
}).$mount('#app')