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.
44 lines
1.3 KiB
44 lines
1.3 KiB
import Vue from 'vue'
|
|
import App from './App'
|
|
import moment from 'moment'
|
|
|
|
import HttpRequest from './common/httpRequest'
|
|
import HttpCache from './common/cache'
|
|
import HttpConfig from './common/config'
|
|
import util from './common/util' //工具类
|
|
import param from './common/param' //默认经纬度
|
|
import Base64 from './common/Base64' //工具类
|
|
import MD5 from './common/MD5'
|
|
// #ifdef H5
|
|
import wechat from './common/wechat'
|
|
Vue.prototype.$wechat =wechat;
|
|
// #endif
|
|
import Bridge from './common/bridge'
|
|
|
|
Vue.config.productionTip = false
|
|
|
|
Vue.prototype.$bridge = Bridge
|
|
Vue.prototype.$config = HttpConfig
|
|
Vue.prototype.$Request = HttpRequest
|
|
Vue.prototype.$Sysconf = HttpRequest.config
|
|
Vue.prototype.$SysCache = HttpCache
|
|
Vue.prototype.$util = util //工具类
|
|
Vue.prototype.$param = param //默认经纬度
|
|
Vue.prototype.$base64 = Base64 //默认经纬度
|
|
Vue.prototype.$MD5 = MD5
|
|
Vue.prototype.$md5 = MD5 //默认经纬度
|
|
App.mpType = 'app'
|
|
Vue.prototype.$moment = moment;//赋值使用
|
|
const app = new Vue({
|
|
...App
|
|
})
|
|
// 定义一个全局过滤器实现日期格式化
|
|
Vue.filter('dateformat', function(dataStr, pattern = 'YYYY-MM-DD HH:mm:ss') {
|
|
return moment(dataStr).format(pattern)
|
|
})
|
|
app.$mount()
|
|
|
|
|
|
// import screenTextScroll from './components/p-screenTextScroll/screenTextScroll'
|
|
//
|
|
// Vue.component('textscroll',screenTextScroll)
|