main.js 736 B

12345678910111213141516171819202122232425262728293031323334
  1. import Vue from 'vue';
  2. import App from './App';
  3. // 弹出框
  4. import pubc from '@/common/public.js'
  5. // 多语言本地化
  6. import VueI18n from 'vue-i18n'
  7. import messages from './locale/index'
  8. let i18nConfig = {
  9. locale: uni.getLocale(),
  10. messages
  11. }
  12. Vue.use(VueI18n)
  13. const i18n = new VueI18n(i18nConfig)
  14. Vue.config.productionTip = false
  15. Vue.prototype.$apiHost = 'https://e.zhichao.art/Gapi';
  16. Vue.prototype.$apiHost2 = 'https://e.zhichao.art/Gapi2';
  17. Vue.prototype.$isWeb3 = 0;
  18. // Vue.prototype.now = Date.now || function () {
  19. // return new Date().getTime();
  20. // };
  21. Vue.prototype.isArray = Array.isArray || function(obj) {
  22. return obj instanceof Array;
  23. };
  24. App.mpType = 'app'
  25. const app = new Vue({
  26. i18n,
  27. ...App
  28. })
  29. app.$mount()