main.js 905 B

123456789101112131415161718192021222324252627282930313233343536373839
  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. import ClUni from "@/uni_modules/cl-uni";
  9. import emoji from "./common/emoji.js"
  10. Vue.prototype.emoji = emoji
  11. Vue.use(ClUni);
  12. let i18nConfig = {
  13. locale: uni.getLocale(),
  14. messages
  15. }
  16. Vue.use(VueI18n)
  17. const i18n = new VueI18n(i18nConfig)
  18. Vue.config.productionTip = false
  19. Vue.prototype.$apiHost = 'https://e.yujianmate.com/Gapi';
  20. Vue.prototype.$apiHost2 = 'https://e.yujianmate.com/Gapi2';
  21. Vue.prototype.$isWeb3 = 0;
  22. // Vue.prototype.now = Date.now || function () {
  23. // return new Date().getTime();
  24. // };
  25. Vue.prototype.isArray = Array.isArray || function(obj) {
  26. return obj instanceof Array;
  27. };
  28. App.mpType = 'app'
  29. const app = new Vue({
  30. i18n,
  31. ...App
  32. })
  33. app.$mount()