多租户商城-商户小程序端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

45 lines
935 B

2 years ago
11 months ago
2 years ago
2 years ago
11 months ago
11 months ago
2 years ago
11 months ago
2 years ago
  1. import Vue from 'vue'
  2. import App from './App'
  3. import uView from "uview-ui";
  4. Vue.use(uView);
  5. import messages from './locale/index'
  6. let i18nConfig = {
  7. locale: uni.getLocale(),
  8. messages
  9. }
  10. Vue.config.productionTip = false
  11. import store from './store'
  12. import _ from 'lodash'
  13. import { PriceFilter } from './utils/priceFilter.js'
  14. // 遍历文件中的所有方法注册为一个个的过滤器
  15. Object.keys(PriceFilter).forEach(key => {
  16. Vue.filter(key, PriceFilter[key])
  17. })
  18. import {jump,jumpToTabbar,goBack,getJumpParam} from './utils/jumpUtil'
  19. Vue.prototype.$store = store
  20. Vue.prototype.$lodash = _
  21. Vue.prototype.$jump = jump
  22. Vue.prototype.$jumpToTabbar = jumpToTabbar
  23. Vue.prototype.$goBack = goBack
  24. Vue.prototype.$getJumpParam = getJumpParam
  25. App.mpType = 'app'
  26. import VueI18n from 'vue-i18n'
  27. Vue.use(VueI18n)
  28. const i18n = new VueI18n(i18nConfig)
  29. // window.i18n = i18n;
  30. const app = new Vue({
  31. i18n,
  32. ...App
  33. })
  34. app.$mount()