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()