猎豆优选小程序

main.js 1.2KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. import App from './App'
  2. import Vue from 'vue'
  3. import store from './store'
  4. import uView from 'uview-ui'
  5. import { req, rootDocment, get, post, postJSON } from './config/util'
  6. import { api } from './config/api'
  7. import { api_jd } from './config/api_jd'
  8. import { api_pdd } from './config/api_pdd'
  9. import { api_dy } from './config/api_dy'
  10. import compareVersion from './utils/compareVersion'
  11. import { NumberHandle, getDay, copyEvent } from './utils/tools'
  12. import mixin from './utils/mixins/mixin.js' // 设置统一的分享页面信息
  13. import clipboard from '@/components/clipboard.vue'
  14. Vue.component('clipboard', clipboard)
  15. const router = require('./utils/router')
  16. Vue.use(uView)
  17. Vue.mixin(mixin)
  18. Vue.config.productionTip = false
  19. App.mpType = 'app'
  20. Vue.prototype.$api = api
  21. Vue.prototype.$api_jd = api_jd
  22. Vue.prototype.$api_pdd = api_pdd
  23. Vue.prototype.$api_dy = api_dy
  24. Vue.prototype.$rootDocment = rootDocment
  25. Vue.prototype.$req = req
  26. Vue.prototype.$get = get
  27. Vue.prototype.$post = post
  28. Vue.prototype.$postJSON = postJSON
  29. Vue.prototype.$compareVersion = compareVersion
  30. Vue.prototype.$NumberHandle = NumberHandle
  31. Vue.prototype.$getDay = getDay
  32. Vue.prototype.$copyEvent = copyEvent
  33. const app = new Vue({
  34. store,
  35. ...App
  36. })
  37. app.$mount()