Blame view

src/main.js 1.75 KB
0c49c87e   liuqimichale   微信公众号 初始化
1
2
3
4
5
6
7
8
  // 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 './assets/css/reset.css'  // 引入公共样式
  
ac775d76   liuqimichale   天水
9
10
  import './assets/iconfont/iconfont.css'
  
5e52ed7c   刘淇   个人中心
11
12
13
14
15
16
17
18
  // 路由守卫
  router.beforeEach((to,from ,next)=>{
    if(to.meta.title) {
      document.title=to.meta.title;
    }else {
      document.title='宣化微信公众号';
    }
    next()
ac775d76   liuqimichale   天水
19
  })
bb951693   liuqimichale   赤峰微信公众号 -- 临停支付
20
  
5e52ed7c   刘淇   个人中心
21
22
23
24
25
26
27
28
29
30
31
  // import h5Popup from 'vue-h5-popup' // 引入弹窗
  // Vue.use(h5Popup)
  //
  //
  // import BaiduMap from 'vue-baidu-map'
  //
  // Vue.use(BaiduMap, {
  //   // ak 是在百度地图开发者平台申请的密钥 详见 http://lbsyun.baidu.com/apiconsole/key */
  //   ak: 'cuMSxNl5LOY6sf1M3nDGtG6tGXl5a0Bb'
  // })
  //
94c1e6a3   liuqimichale   微信公众号 个人页面集合
32
  
bb951693   liuqimichale   赤峰微信公众号 -- 临停支付
33
34
35
36
  import 'mint-ui/lib/style.css'
  import { MessageBox } from 'mint-ui'
  // Vue.use(MessageBox)
  Vue.prototype.$msgbox = MessageBox
94c1e6a3   liuqimichale   微信公众号 个人页面集合
37
  
ac775d76   liuqimichale   天水
38
39
  import { Popup } from 'mint-ui';
  Vue.component(Popup.name, Popup);
c14fb301   liuqimichale   赤峰 输入车牌停车记录
40
41
42
43
44
  
  import { Field } from 'mint-ui';
  
  Vue.component(Field.name, Field);
  
5e52ed7c   刘淇   个人中心
45
46
47
48
49
50
51
52
53
  
  
  
  
  
  
  
  
  
94c1e6a3   liuqimichale   微信公众号 个人页面集合
54
55
56
57
  //全局设置的基本样式
  import './assets/css/base.scss'
  
  
bb951693   liuqimichale   赤峰微信公众号 -- 临停支付
58
59
60
61
62
63
  import moment from 'moment'
  // 设置本地时区
  moment.locale('zh-cn')
  Vue.prototype.$moment = moment
  
  
0c49c87e   liuqimichale   微信公众号 初始化
64
65
  import utils from './utils/utils' // 工具类
  Vue.prototype.$utils = utils
ac775d76   liuqimichale   天水
66
  //
5e52ed7c   刘淇   个人中心
67
68
69
70
71
72
73
74
75
76
77
78
79
  import Mint from 'mint-ui';
  import 'mint-ui/lib/style.css'
  Vue.use(Mint);
  
  
  // 在main.js中
  
  import Vant from 'vant';
  
  import 'vant/lib/index.css';
  import 'vant/lib/index.less';
  
  Vue.use(Vant);
bb951693   liuqimichale   赤峰微信公众号 -- 临停支付
80
  
0c49c87e   liuqimichale   微信公众号 初始化
81
  
0c49c87e   liuqimichale   微信公众号 初始化
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
  
  import vueFilter from './utils/filters'  // 公共filter
  for (let key in vueFilter){
    Vue.filter(key,vueFilter[key])
  }
  
  Vue.config.productionTip = false
  
  /* eslint-disable no-new */
  new Vue({
    el: '#app',
    router,
    components: { App },
    template: '<App/>'
  })