perry-mall/main.js

42 lines
1.4 KiB
JavaScript
Raw Normal View History

2022-02-23 11:08:25 +00:00
import Vue from 'vue';
import App from './App';
2022-02-12 11:33:47 +00:00
import statusNav from './components/status-nav.vue';//引入状态栏组件
2022-02-23 11:08:25 +00:00
Vue.component('status-nav',statusNav);//全局注册状态栏组件
import nothingPage from './components/nothing-page.vue';//引入无内容组件
Vue.component('nothing-page',nothingPage);//全局注册无内容组件
2022-02-25 09:24:06 +00:00
// import empower from './components/empower.vue';//引入授权用户信息组件
// Vue.component('empower',empower);//全局注册授权用户信息组件
// import authUserInfoMobile from './components/auth-userInfo-mobile.vue';//引入授权用户信息,授权手机号组件
// Vue.component('auth-userInfo-mobile',authUserInfoMobile);//全局注册授权用户信息,授权手机号组件
2022-02-23 11:08:25 +00:00
import containerSubgroup from './components/containers/container-subgroup.vue';//引入容器组件
Vue.component('container-subgroup',containerSubgroup);//全局注册容器组件
import share from './jsFile/share.js';// 全局注册分享事件
Vue.mixin(share);
2022-02-12 11:33:47 +00:00
// 常用工具
2022-02-23 11:08:25 +00:00
import tools from '@/jsFile/tools.js';
2022-02-12 11:33:47 +00:00
Vue.prototype.$toolAll = tools;
// 响应数据
2022-02-23 11:08:25 +00:00
import requst from '@/jsFile/requst.js';
2022-02-12 11:33:47 +00:00
Vue.prototype.$requst = requst;
2022-02-23 11:08:25 +00:00
// 图片域名专治后台仔没有返回http/https的图片
2022-02-25 09:24:06 +00:00
Vue.prototype.$http = 'https://peili.scdxtc.cn';
2022-02-12 11:33:47 +00:00
const {log} = console;
Vue.prototype.log = log;
2022-02-23 11:08:25 +00:00
Vue.config.productionTip = false;
2022-02-23 11:08:25 +00:00
App.mpType = 'app';
2022-02-12 11:33:47 +00:00
const app = new Vue({
...App
})
app.$mount()