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'
|
|
|
|
import calendar from './components/calendar/index'
|
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'
|
|
|
|
|
|
|
|
Vue.component('search-view',searchView);
|
|
|
|
Vue.component('load-more',loadMore);
|
|
|
|
Vue.component('progress-bar',progressBar);
|
2024-04-30 16:08:07 +08:00
|
|
|
Vue.component('picker-select',pickerSelect);
|
|
|
|
Vue.component('calendar',calendar);
|
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);
|
|
|
|
app.component('calendar',calendar);
|
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
|
|
|
|
|