35 lines
793 B
JavaScript
35 lines
793 B
JavaScript
import Vue from 'vue'
|
|
import App from './App'
|
|
import store from './store' // store
|
|
import plugins from './plugins' // plugins
|
|
import config from '@/config'
|
|
import './permission' // permission
|
|
|
|
import share from './utils/share.js' // 导入并挂载全局的分享方法
|
|
Vue.mixin(share)
|
|
import request from '@/utils/request'
|
|
|
|
Vue.prototype.$request = request
|
|
Vue.prototype.$imgurl = config.baseUrl
|
|
|
|
import contactBar from '@/components/contact-bar/contact-bar.vue'
|
|
Vue.use(plugins)
|
|
|
|
// 引入uView
|
|
import uView from '@/uni_modules/uview-ui';
|
|
Vue.use(uView);
|
|
uni.$u.config.unit = 'rpx';
|
|
uni.$u.props.image.lazyLoad = true
|
|
Vue.component('contact-bar', contactBar)
|
|
|
|
Vue.config.productionTip = false
|
|
Vue.prototype.$store = store
|
|
|
|
App.mpType = 'app'
|
|
|
|
const app = new Vue({
|
|
...App
|
|
})
|
|
|
|
app.$mount()
|