import Vue from 'vue'
import App from './App'
import uView from "uview-ui";
Vue.use(uView);

import messages from './locale/index'

let i18nConfig = {
  locale: uni.getLocale(),
  messages
}


Vue.config.productionTip = false

import store from './store'
import _ from 'lodash'

import {jump,jumpToTabbar,goBack,getJumpParam} from './utils/jumpUtil'

Vue.prototype.$store = store
Vue.prototype.$lodash = _
Vue.prototype.$jump = jump
Vue.prototype.$jumpToTabbar = jumpToTabbar
Vue.prototype.$goBack = goBack
Vue.prototype.$getJumpParam = getJumpParam
App.mpType = 'app'

import VueI18n from 'vue-i18n'
Vue.use(VueI18n)
const i18n = new VueI18n(i18nConfig)
window.i18n = i18n;


const app = new Vue({
	i18n,
    ...App
})
app.$mount()