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.
61 lines
1.8 KiB
61 lines
1.8 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'
|
|
// vuex数据管理中心
|
|
import store from '@/store'
|
|
Vue.prototype.$store = store;
|
|
//判断是否登录
|
|
import { judgeLogin } from '@/common/login';
|
|
Vue.prototype.judgeLogin = judgeLogin;
|
|
//公共方法
|
|
import mixin from "@/common/mixin.js"
|
|
Vue.mixin(mixin);
|
|
import uView from '@/uni_modules/uview-ui'
|
|
Vue.use(uView)
|
|
import wechat from './common/util'
|
|
Vue.prototype.$wechat = wechat;
|
|
import Bridge from './common/bridge'
|
|
//分享
|
|
import share from '@/common/share.js'
|
|
Vue.mixin(share)
|
|
|
|
|
|
//全局登陆弹窗
|
|
import Flogin from "@/components/f-login/f-login.vue"
|
|
Vue.component('f-login', Flogin)
|
|
|
|
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)
|