| | |
| | | import App from './App' |
| | | import Vue from 'vue' |
| | | import uView from "uview-ui"; |
| | | import store from './store/index.js' |
| | | import './uni.promisify.adaptor' |
| | | // import Vconsole from 'vconsole' |
| | | import * as ww from '@wecom/jssdk' |
| | | |
| | | Vue.config.productionTip = false |
| | | App.mpType = 'app' |
| | | Vue.use(uView); |
| | | |
| | | // Vue.prototype.$baseUrl = 'https://dmtest.ahapp.net/lianhelihua_interface' |
| | | // Vue.prototype.$baseUrl = 'https://test.doumee.cn/lianhelihua_interface' |
| | | Vue.prototype.$baseUrl = 'https://lkshereporting.unilever-china.com/lianhelihua_interface' |
| | | // Vue.prototype.$baseUrl = 'http://192.168.0.136:10040' |
| | | Vue.prototype.$store = store; |
| | | Vue.prototype.$ww = ww; |
| | | // Vue.prototype.$vConsole= new Vconsole() |
| | | |
| | | //禁止滑动 |
| | | Vue.prototype.stopScroll = function () { |
| | | var box = function(e) { passive: false }; |
| | | document.body.style.overflow = 'hidden'; |
| | | document.addEventListener("touchmove", box, false); |
| | | } |
| | | //可以滑动 |
| | | Vue.prototype.canScroll = function () { |
| | | var box = function(e) { passive: false }; |
| | | document.body.style.overflow= ''; |
| | | document.removeEventListener("touchmove", box, false); |
| | | } |
| | | |
| | | |
| | | const app = new Vue({ |
| | | ...App |
| | | store, |
| | | ...App |
| | | }) |
| | | |
| | | // http接口API抽离 |