优惠券小程序(猎户)

main.js 513B

12345678910111213141516171819202122232425
  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. Vue.use(uView)
  8. Vue.config.productionTip = false
  9. App.mpType = 'app'
  10. Vue.prototype.$api = api
  11. Vue.prototype.$rootDocment = rootDocment
  12. Vue.prototype.$req = req
  13. Vue.prototype.$get = get
  14. Vue.prototype.$post = post
  15. Vue.prototype.$postJSON = postJSON
  16. const app = new Vue({
  17. store,
  18. ...App
  19. })
  20. app.$mount()