Blame view

ceres-uniapp-master/main.js 1.51 KB
3f535f30   杨鑫   '初始'
1
2
3
4
5
6
7
8
9
10
11
  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'
  
65478d1d   杨鑫   '最新'
12
13
14
15
16
17
18
19
20
21
22
  import {
  	jump,
  	jumpToTabbar,
  	goBack,
  	getJumpParam
  } from './utils/jumpUtil'
  import {
  	encrypt,
  	decrypt,
  	decryptall
  } from './utils/jiami.js'
3f535f30   杨鑫   '初始'
23
24
25
26
27
28
  Vue.prototype.$store = store
  Vue.prototype.$lodash = _
  Vue.prototype.$jump = jump
  Vue.prototype.$jumpToTabbar = jumpToTabbar
  Vue.prototype.$goBack = goBack
  Vue.prototype.$getJumpParam = getJumpParam
ff75800c   杨鑫   'zuix'
29
30
31
  Vue.prototype.$encrypt = encrypt;
  Vue.prototype.$decrypt = decrypt;
  Vue.prototype.$decryptall = decryptall;
65478d1d   杨鑫   '最新'
32
  // Vue.prototype.$hostUrl =`${window.location.protocol}//${window.location.host}/cdwlMall`
5d752fd3   杨鑫   '最新'
33
  
65478d1d   杨鑫   '最新'
34
  const host = window.location.host;
5d752fd3   杨鑫   '最新'
35
  
65478d1d   杨鑫   '最新'
36
37
  if (host === 'localhost:8080' || host === 'localhost:8081' || host === 'localhost:9528' || host ===
  	'192.168.31.45:9528') {
5d752fd3   杨鑫   '最新'
38
39
40
  		Vue.prototype.$imgUrl = (url) => {
  		  return ("https://jy.scjysm.asia:18086/cdwlMall/questionnaire/file/static" + url);
  		}
65478d1d   杨鑫   '最新'
41
  	Vue.prototype.$baseURL = 'https://jy.scjysm.asia:18086/cdwlMall'
5d752fd3   杨鑫   '最新'
42
  	Vue.prototype.$hostUrl = `https://jy.scjysm.asia:18086/cdwlMall`
65478d1d   杨鑫   '最新'
43
  } else {
5d752fd3   杨鑫   '最新'
44
45
46
  	Vue.prototype.$imgUrl = (url) => {
  	  return ("https://jy.scjysm.asia:18086/cdwlMall/questionnaire/file/static" + url);
  	}
65478d1d   杨鑫   '最新'
47
  	Vue.prototype.$baseURL = `${window.location.protocol}//${window.location.host}/cdwlMall`
5d752fd3   杨鑫   '最新'
48
  	Vue.prototype.$hostUrl = `${window.location.protocol}//${window.location.host}/cdwlMall`
65478d1d   杨鑫   '最新'
49
  }
3f535f30   杨鑫   '初始'
50
51
52
  App.mpType = 'app'
  
  const app = new Vue({
65478d1d   杨鑫   '最新'
53
  	...App
3f535f30   杨鑫   '初始'
54
55
  })
  console.log(store)
65478d1d   杨鑫   '最新'
56
  app.$mount()