linwe
2024-08-08 3c738f4fe2762bba8087e5a22fc0dc06560eab0e
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
48
49
50
51
52
53
54
55
56
57
import Vue from 'vue'
import App from './App'
import store from '@/store';
 
// import boxTitle from '@/components/boxTitle/index.vue';
// Vue.component('box-title', boxTitle) // 
import footerBtn from '@/components/btn/footerBtn.vue'
import {
    setImageUrl,
    showTips,
    getIndex,
    formattingUrls,
    setLabelColor,
    setFullUrl
} from '@/common/common.js'
Vue.config.productionTip = false;
 
App.mpType = 'app';
 
// 引入全局uView
import uView from "uview-ui";
Vue.use(uView);
Vue.component('footer-btn', footerBtn)
// 引入vuex
const vuexStore = require("@/store/$u.mixin.js");
Vue.mixin(vuexStore);
 
// 创建对象
const app = new Vue({
    store,
    ...App
});
 
 
// 接口集中管理
import httpInstall from '@/http/install.js'
Vue.use(httpInstall, app)
 
import http from '@/http/api.js'
Vue.prototype.$http = http
Vue.prototype.$showTips = showTips;
Vue.prototype.$setImageUrl = setImageUrl;
Vue.prototype.$getIndex = getIndex;
Vue.prototype.$formattingUrls = formattingUrls;
Vue.prototype.$setLabelColor = setLabelColor;
Vue.prototype.$setFullUrl = setFullUrl
// 公共函数
import globalFunc from '@/utils/func.js'
Vue.use(globalFunc, app);
 
//全局引入mixin
// import shareMixin from "@/mixin/shareMixin.js"
// Vue.mixin(shareMixin)
 
Vue.prototype.$intv = null
 
app.$mount()