forked from silently9527/mall-coupons
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.js
More file actions
38 lines (31 loc) · 753 Bytes
/
Copy pathmain.js
File metadata and controls
38 lines (31 loc) · 753 Bytes
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
import Vue from 'vue'
import store from './store'
import App from './App.vue'
import backend from './api/backend'
import cache from './utils/cache'
import mcUtils from './utils/mcUtils'
import TitleNav from './colorui/components/cu-custom.vue'
Vue.component('title-nav',TitleNav)
const message = (title, duration=1500, mask=false, icon='none')=>{
//统一提示方便全局修改
if(Boolean(title) === false){
return;
}
uni.showToast({
title,
duration,
mask,
icon
});
}
Vue.config.productionTip = false
Vue.prototype.$store = store;
Vue.prototype.$cache = cache;
Vue.prototype.$utils = mcUtils;
Vue.prototype.$message = message;
Vue.prototype.$api = { backend };
App.mpType = 'app'
const app = new Vue({
...App
})
app.$mount()