dengrui/main.js

31 lines
906 B
JavaScript
Raw Normal View History

2021-08-26 01:49:06 +00:00
import Vue from 'vue'
import App from './App'
import statusNav from './components/status-nav.vue';//引入状态栏组件
Vue.component('status-nav',statusNav)//挂载状态栏组件
2021-08-28 06:23:27 +00:00
import footTab from './components/footTab.vue';//引入底部导航组件
Vue.component('foot-tab',footTab)//挂载底部导航组件
2021-08-26 01:49:06 +00:00
const newwidth = uni.getSystemInfoSync().screenWidth//获取屏幕宽度
Vue.prototype.$newwidth = newwidth//挂载屏幕宽度
const statusH = uni.getSystemInfoSync().statusBarHeight//获取状态栏高
Vue.prototype.$statusH = statusH//挂载状态栏高
// 常用工具
import tools from '@/jsFile/tools.js'
Vue.prototype.$toolAll = tools;
// 响应数据
import requst from '@/jsFile/requst.js'
Vue.prototype.$requst = requst;
Vue.prototype.$http = 'https://dengrui.scdxtc.cn'
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
...App
})
app.$mount()