|
@@ -5,12 +5,12 @@ import constants from '@/constant/index'
|
|
|
Vue.prototype.$constant = constants
|
|
Vue.prototype.$constant = constants
|
|
|
import './static/iconfont/iconfont.css'
|
|
import './static/iconfont/iconfont.css'
|
|
|
// vue 指令
|
|
// vue 指令
|
|
|
-import directives from '@/directives/isShow'
|
|
|
|
|
|
|
+// import directives from '@/directives/isShow'
|
|
|
// import directives from '@/directives/index'
|
|
// import directives from '@/directives/index'
|
|
|
-Vue.use(directives)
|
|
|
|
|
|
|
+// Vue.use(directives)
|
|
|
|
|
|
|
|
// 全局bus事件
|
|
// 全局bus事件
|
|
|
-Vue.prototype.$eventBus = new Vue()
|
|
|
|
|
|
|
+// Vue.prototype.$eventBus = new Vue()
|
|
|
|
|
|
|
|
import util from './utils/util'
|
|
import util from './utils/util'
|
|
|
Vue.prototype.$util = util
|
|
Vue.prototype.$util = util
|
|
@@ -18,17 +18,19 @@ Vue.prototype.$util = util
|
|
|
import { FormatTimeFilter } from '@/filters/index'
|
|
import { FormatTimeFilter } from '@/filters/index'
|
|
|
Vue.filter('formatTime', FormatTimeFilter)
|
|
Vue.filter('formatTime', FormatTimeFilter)
|
|
|
|
|
|
|
|
-import commonJS from './utils/common'
|
|
|
|
|
-Vue.prototype.commonJS = commonJS
|
|
|
|
|
|
|
+// import commonJS from './utils/common'
|
|
|
|
|
+// Vue.prototype.commonJS = commonJS
|
|
|
|
|
|
|
|
import globalMixins from './mixins/globalMixins'
|
|
import globalMixins from './mixins/globalMixins'
|
|
|
Vue.mixin(globalMixins)
|
|
Vue.mixin(globalMixins)
|
|
|
|
|
|
|
|
|
|
+// 阻止启动生产消息,常用作指令
|
|
|
Vue.config.productionTip = false
|
|
Vue.config.productionTip = false
|
|
|
|
|
|
|
|
import store from './store'
|
|
import store from './store'
|
|
|
Vue.prototype.$store = store
|
|
Vue.prototype.$store = store
|
|
|
|
|
|
|
|
|
|
+// 封装得全局消息提示
|
|
|
Vue.prototype.$msg = (title) => (
|
|
Vue.prototype.$msg = (title) => (
|
|
|
uni.showToast({
|
|
uni.showToast({
|
|
|
title,
|
|
title,
|