店播抖音版小程序

main.js 992B

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