酷炫直播运营系统小程序版本

main.js 1.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. import Vue from 'vue'
  2. import App from './App'
  3. import store from './store'
  4. import '@/static/iconfont/iconfont.css'
  5. import { getDay,NumberHandle,isChn,formatNum,formateHours } from '@/config/common.js'
  6. import {show_init_loading,hide_init_loading,nav_back} from '@/config/uniInfo.js'
  7. import pageHead from '@/components/page-head.vue'
  8. import wmWatermark from '@/components/wm-watermark.vue'
  9. import noData from '@/components/noData.vue'
  10. Vue.component('no-data',noData)
  11. Vue.component('wm-watermark', wmWatermark)
  12. Vue.component('page-head', pageHead)
  13. Vue.config.productionTip = false
  14. Vue.prototype.$getDay = getDay;
  15. Vue.prototype.$formatNum = formatNum;
  16. Vue.prototype.$NumberHandle = NumberHandle;
  17. Vue.prototype.$formateHours = formateHours;
  18. Vue.prototype.$show_init_loading = show_init_loading
  19. Vue.prototype.$hide_init_loading = hide_init_loading
  20. Vue.prototype.$nav_back = nav_back
  21. Vue.prototype.$store = store
  22. //app.vue里的onLaunch中如果有异步方法,比如登录方法,返回结果可能会在页面的 onLoad 之后,
  23. // 为了让页面的 onLoad 在 onLaunch 之后执行 https://blog.csdn.net/weixin_39152200/article/details/109179581
  24. Vue.prototype.$onLaunched = new Promise(resolve=>{
  25. Vue.prototype.$isResolve = resolve
  26. })
  27. // Vue.prototype.$backgroundAudioData = {
  28. // playing: false,
  29. // playTime: 0,
  30. // formatedPlayTime: '00:00:00'
  31. // }
  32. App.mpType = 'app'
  33. const app = new Vue({
  34. store,
  35. ...App
  36. })
  37. app.$mount()