mes_mobile/main.js

62 lines
1.6 KiB
JavaScript
Raw Permalink Normal View History

2024-01-15 14:02:04 +08:00
2024-04-23 11:48:55 +08:00
import "./static/iconfont/iconfont.css"
import './static/css/app.css';
import "./static/iconfont/iconfont-weapp/iconfont-weapp-icon.css"
// 全局组件
import searchView from './components/searchView/index'
import loadMore from './components/loadMore/index'
import progressBar from './components/progressBar'
2024-04-30 16:08:07 +08:00
import pickerSelect from './components/pickerSelect/index'
2024-05-07 19:37:20 +08:00
import calendar from './components/calendar/index'
import uploadImg from './components/upload/uploadImg'
2024-01-15 14:02:04 +08:00
// #ifndef VUE3
import Vue from 'vue'
2024-04-23 11:48:55 +08:00
import App from './App'
import svg from './static/iconfont/svg.js'
2024-05-07 19:37:20 +08:00
Vue.component('search-view', searchView);
Vue.component('load-more', loadMore);
Vue.component('progress-bar', progressBar);
Vue.component('picker-select', pickerSelect);
Vue.component('calendar', calendar);
Vue.component('upload-img', uploadImg);
2024-04-23 11:48:55 +08:00
2024-03-13 16:07:11 +08:00
2024-01-16 18:52:23 +08:00
Vue.use(svg);
2024-01-15 14:02:04 +08:00
Vue.config.productionTip = false;
App.mpType = 'app';
const app = new Vue({
...App
})
app.$mount()
// #endif
// #ifdef VUE3
import { createSSRApp } from 'vue'
import App from './App.vue'
2024-03-13 16:07:11 +08:00
import request from "./utils/api.js"
import publicMethods from "./utils/public.js"
2024-01-15 14:02:04 +08:00
export function createApp() {
2024-04-23 11:48:55 +08:00
const app = createSSRApp(App)
// 全局注册组件
app.component('searchView', searchView);
app.component('loadMore', loadMore);
app.component('progressBar', progressBar);
2024-04-30 16:08:07 +08:00
app.component('pickerSelect', pickerSelect);
2024-05-07 19:37:20 +08:00
app.component('calendar', calendar);
app.component('uploadImg', uploadImg);
2024-04-23 11:48:55 +08:00
2024-03-13 16:07:11 +08:00
app.config.globalProperties.$api = request;
app.config.globalProperties.$wf = publicMethods;
2024-01-15 14:02:04 +08:00
return {
app
}
}
2024-01-16 18:52:23 +08:00
// #endif