main.js 734 B

12345678910111213141516171819202122232425
  1. import App from './App'
  2. import Vue from 'vue'
  3. import store from './store'
  4. import FamilyEmptyState from './components/FamilyEmptyState/FamilyEmptyState.vue'
  5. import CustomTabBar from './custom-tab-bar/index.vue'
  6. import { formatPriceWithSymbol, formatPrice, formatRate, formatScore } from '@/utils/format'
  7. Vue.config.productionTip = false
  8. Vue.component('FamilyEmptyState', FamilyEmptyState)
  9. Vue.component('custom-tab-bar', CustomTabBar)
  10. Vue.prototype.$store = store
  11. Vue.prototype.formatPriceWithSymbol = formatPriceWithSymbol
  12. Vue.prototype.formatPrice = formatPrice
  13. Vue.prototype.formatRate = formatRate
  14. Vue.prototype.formatScore = formatScore
  15. App.mpType = 'app'
  16. const app = new Vue({
  17. store,
  18. render: h => h(App)
  19. })
  20. app.$mount()