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.
|
|
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 { PriceFilter } from './utils/priceFilter.js' // 遍历文件中的所有方法注册为一个个的过滤器
Object.keys(PriceFilter).forEach(key => { Vue.filter(key, PriceFilter[key]) })
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()
|