main.js 744 B

123456789101112131415161718192021222324252627282930
  1. import Vue from 'vue'
  2. import App from './App'
  3. import * as http from './common/http'
  4. import config from './config.js'
  5. import * as utils from './common/utils'
  6. import store from './store'
  7. import storage from 'common/storage'
  8. import moment from 'moment'
  9. import uView from "uview-ui";
  10. Vue.use(uView);
  11. Vue.config.productionTip = false
  12. Vue.prototype.$config = config
  13. Vue.prototype.$utils=utils
  14. Vue.prototype.$http = http
  15. Vue.prototype.$store = store
  16. Vue.prototype.$storage = storage
  17. Vue.prototype.$moment = moment
  18. Vue.prototype.$bus = new Vue()
  19. Vue.filter('myToolTip',function(val){
  20. if(!val){
  21. return '-'
  22. }else{return val.substring(0,4)+'****'+val.substring(val.length-4)}
  23. });
  24. App.mpType = 'app'
  25. const app = new Vue({
  26. ...App,
  27. })
  28. app.$mount()