多租户商城-商户小程序端
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.

39 lines
733 B

2 years ago
2 years ago
2 years 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 {jump,jumpToTabbar,goBack,getJumpParam} from './utils/jumpUtil'
  14. Vue.prototype.$store = store
  15. Vue.prototype.$lodash = _
  16. Vue.prototype.$jump = jump
  17. Vue.prototype.$jumpToTabbar = jumpToTabbar
  18. Vue.prototype.$goBack = goBack
  19. Vue.prototype.$getJumpParam = getJumpParam
  20. App.mpType = 'app'
  21. import VueI18n from 'vue-i18n'
  22. Vue.use(VueI18n)
  23. const i18n = new VueI18n(i18nConfig)
  24. window.i18n = i18n;
  25. const app = new Vue({
  26. i18n,
  27. ...App
  28. })
  29. app.$mount()