main.js 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. import Vue from 'vue'
  2. import App from './App'
  3. import http from './static/js/http.js'
  4. // import http2 from './static/js/http2.js'
  5. import noNone from './static/html/no-none.vue'
  6. import noNoneTwo from './static/html/no-none2.vue'
  7. import httpUpload from './static/js/http-upload.js'
  8. import siteinfo from './siteinfo.js'
  9. Vue.prototype.$siteroot = siteinfo.siteroot
  10. import test from './static/js/test.js'
  11. Vue.prototype.$test = test
  12. import utils from './static/js/utils.js'
  13. Vue.prototype.$utils = utils
  14. // #ifdef H5
  15. var jweixin = require('@/jweixin-module/lib/index.js');
  16. Vue.prototype.$wx = jweixin
  17. // #endif
  18. import load from './static/html/load.vue'
  19. import store from './store/index.js'
  20. Vue.prototype.$store = store
  21. Vue.component('loading',load)
  22. Vue.config.productionTip = false
  23. import pageBtmBar from './components/page-btm-bar/page-btm-bar.vue'
  24. Vue.component('page-btm-bar',pageBtmBar)
  25. import VueJsonp from 'vue-jsonp';
  26. Vue.use(VueJsonp);
  27. Vue.prototype.request = http
  28. // Vue.prototype.http2 = http2
  29. Vue.component('no-none',noNone)
  30. Vue.component('no-none-two',noNoneTwo)
  31. Vue.prototype.Upload = httpUpload
  32. App.mpType = 'app'
  33. const app = new Vue({
  34. ...App
  35. })
  36. app.$mount()