123456789101112131415161718192021222324252627282930313233343536373839 |
- import Vue from 'vue';
- import App from './App';
- // 弹出框
- import pubc from '@/common/public.js'
- // 多语言本地化
- import VueI18n from 'vue-i18n'
- import messages from './locale/index'
- import ClUni from "@/uni_modules/cl-uni";
- import emoji from "./common/emoji.js"
- Vue.prototype.emoji = emoji
- Vue.use(ClUni);
- let i18nConfig = {
- locale: uni.getLocale(),
- messages
- }
- Vue.use(VueI18n)
- const i18n = new VueI18n(i18nConfig)
- Vue.config.productionTip = false
- Vue.prototype.$apiHost = 'https://e.yujianmate.com/Gapi';
- Vue.prototype.$apiHost2 = 'https://e.yujianmate.com/Gapi2';
- Vue.prototype.$isWeb3 = 0;
- // Vue.prototype.now = Date.now || function () {
- // return new Date().getTime();
- // };
- Vue.prototype.isArray = Array.isArray || function(obj) {
- return obj instanceof Array;
- };
- App.mpType = 'app'
- const app = new Vue({
- i18n,
- ...App
- })
- app.$mount()
|