-
Notifications
You must be signed in to change notification settings - Fork 8
/
main.js
47 lines (42 loc) · 1.48 KB
/
main.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
import Vue from 'vue'
import App from './App'
import conf from './conf/config.js';
import Java110Context from './lib/java110/Java110Context.js'
import context from './lib/java110/context.js'
import url from './constant/url.js'
import factory from './lib/java110/factory/factory.js'
import util from './lib/java110/utils/util.js'
import date from './lib/java110/utils/date.js'
import {getCommunityId,getCommunityName} from './api/community/community.js';
import {getStaffId,getStaffName,getStaffTel} from './api/staff/staff.js';
//引入vuex
import store from './store'
import cuCustom from './lib/colorui/components/cu-custom.vue'
import {VueJsonp} from 'vue-jsonp'
Vue.use(VueJsonp)
Vue.component('cu-custom',cuCustom)
Vue.config.productionTip = false
Vue.prototype.java110Context = Java110Context;
Vue.prototype.java110Constant = Java110Context.constant;
Vue.prototype.java110Factory = Java110Context.factory;
Vue.prototype.java110Util = Java110Context.util;
Vue.prototype.$store = store;
Vue.prototype.context = context;
Vue.prototype.url = url;
Vue.prototype.factory = factory;
Vue.prototype.util = util;
Vue.prototype.date = date;
Vue.prototype.imgUrl = conf.imgUrl;
// 绑定小区信息
Vue.prototype.getCommunityId = getCommunityId;
Vue.prototype.getCommunityName = getCommunityName;
// 绑定员工
Vue.prototype.getStaffId = getStaffId;
Vue.prototype.getStaffName = getStaffName;
Vue.prototype.getStaffTel = getStaffTel;
App.mpType = 'app'
const app = new Vue({
...App,
store
})
app.$mount()