53 lines
1.2 KiB
JavaScript
53 lines
1.2 KiB
JavaScript
import Vue from 'vue'
|
|
import App from './App'
|
|
import qs from 'qs'
|
|
|
|
// 地址
|
|
// Vue.prototype.$baseUrl = "http://192.168.110.100:9100/pb/"
|
|
Vue.prototype.$baseUrl = "http://59.110.212.44:9100/pb/"
|
|
|
|
|
|
|
|
// uView组件库
|
|
import uView from "uview-ui";
|
|
Vue.use(uView);
|
|
// 传参格式
|
|
Vue.prototype.$qs = qs
|
|
//数据管理中心
|
|
import store from '@/store'
|
|
Vue.prototype.$store = store;
|
|
// 工具
|
|
import '@/plugins/utils.js';
|
|
//权限配置中心
|
|
import base from '@/config/baseUrl'
|
|
Vue.prototype.$base = base;
|
|
//挂载全局http请求
|
|
import $http from '@/config/requestConfig'
|
|
Vue.prototype.$http = $http;
|
|
// #ifdef MP-WEIXIN
|
|
//挂载全局微信分享
|
|
import { wxShare } from '@/config/utils'
|
|
Vue.prototype.wxShare = wxShare;
|
|
// #endif
|
|
//判断是否登录
|
|
import { judgeLogin } from '@/config/login';
|
|
Vue.prototype.judgeLogin = judgeLogin;
|
|
Vue.config.productionTip = false;
|
|
// #ifdef H5
|
|
//微信SDK
|
|
import '@/plugins/wxJsSDK.js';
|
|
|
|
// #endif
|
|
//全局组件
|
|
// import jquery from "jquery";
|
|
// Vue.prototype.$ = jquery;
|
|
import MescrollBody from "@/components/mescroll-uni/mescroll-body.vue";
|
|
import config from 'uview-ui/libs/config/config'
|
|
Vue.component("mescroll-body", MescrollBody);
|
|
App.mpType = 'app'
|
|
|
|
const app = new Vue({
|
|
store,
|
|
...App
|
|
})
|
|
app.$mount(); |