main.js
1.63 KB
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
58
import Vue from 'vue'
import App from './App'
import uView from "uview-ui";
Vue.use(uView);
Vue.config.productionTip = false
import store from './store'
import _ from 'lodash'
import {
jump,
jumpToTabbar,
goBack,
getJumpParam
} from './utils/jumpUtil'
import {
encrypt,
decrypt,
decryptall
} from './utils/jiami.js'
Vue.prototype.$store = store
Vue.prototype.$lodash = _
Vue.prototype.$jump = jump
Vue.prototype.$jumpToTabbar = jumpToTabbar
Vue.prototype.$goBack = goBack
Vue.prototype.$getJumpParam = getJumpParam
Vue.prototype.$encrypt = encrypt;
Vue.prototype.$decrypt = decrypt;
Vue.prototype.$decryptall = decryptall;
// Vue.prototype.$hostUrl =`${window.location.protocol}//${window.location.host}/cdwlMall`
const host = window.location.host;
if (host === 'localhost:8080' || host === 'localhost:8081' || host === 'localhost:9528' || host ===
'192.168.31.45:9528') {
Vue.prototype.$imgUrl = (url) => {
return ("https://zhgw-uat.028wlkj.com/cdwlMall/zsfwzxt/file/static" + url);
}
// Vue.prototype.$baseURL = 'https://jy.scjysm.asia:18086/cdwlMall'
// Vue.prototype.$hostUrl = `https://jy.scjysm.asia:18086/cdwlMall`
Vue.prototype.$baseURL = 'https://zhgw-uat.028wlkj.com/cdwlMall'
Vue.prototype.$hostUrl = `https://zhgw-uat.028wlkj.com/cdwlMall`
} else {
Vue.prototype.$imgUrl = (url) => {
return ("https://zhgw-uat.028wlkj.com/cdwlMall/zsfwzxt/file/static" + url);
}
Vue.prototype.$baseURL = `${window.location.protocol}//${window.location.host}/cdwlMall`
Vue.prototype.$hostUrl = `${window.location.protocol}//${window.location.host}/cdwlMall`
}
App.mpType = 'app'
const app = new Vue({
...App
})
console.log(store)
app.$mount()