猎豆优选小程序

main.js 1.3KB

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