main.js 870 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. import Vue from 'vue'
  2. import App from './App'
  3. import store from './store'
  4. import Toast from '@/wxcomponents/vant/toast/toast';
  5. import loadSke from '@/components/skeleton/index/index.vue'
  6. Vue.component('loadSke', loadSke)
  7. import '@/components/topbar/topbar.js'
  8. import '@/components/loading/loading.js'
  9. import {
  10. goMiniApp,
  11. goPage,
  12. clickJumpType,
  13. wxPay,
  14. getUTCDay,
  15. getDay,
  16. goPageGetData
  17. } from '@/utils/utils.js'
  18. import utils from '@/utils/utils.js'
  19. Vue.config.productionTip = false
  20. App.mpType = 'app'
  21. Vue.prototype.goMiniApp = goMiniApp
  22. Vue.prototype.goPage = goPage
  23. Vue.prototype.Toast = Toast
  24. Vue.prototype.clickJumpType = clickJumpType
  25. Vue.prototype.wxPay = wxPay
  26. Vue.prototype.getUTCDay = getUTCDay
  27. Vue.prototype.getDay = getDay
  28. Vue.prototype.goPageGetData = goPageGetData
  29. Vue.prototype.$utils = utils
  30. const app = new Vue({
  31. store,
  32. ...App
  33. })
  34. app.$mount()