|
|
|
import App from './App'
|
|
|
|
|
|
|
|
// #ifndef VUE3
|
|
|
|
import Vue from 'vue'
|
|
|
|
import './uni.promisify.adaptor'
|
|
|
|
Vue.config.productionTip = false
|
|
|
|
App.mpType = 'app'
|
|
|
|
const app = new Vue({
|
|
|
|
...App
|
|
|
|
})
|
|
|
|
app.$mount()
|
|
|
|
// #endif
|
|
|
|
|
|
|
|
// #ifdef VUE3
|
|
|
|
import {
|
|
|
|
createSSRApp
|
|
|
|
} from 'vue'
|
|
|
|
import uviewPlus from 'uview-plus'
|
|
|
|
import fantMini from '@/uni_modules/fant-mini-plus'
|
|
|
|
import functions from '@/utils/functions'
|
|
|
|
import saomiao from '@/compoment/saomiao.vue'
|
|
|
|
import tips from '@/compoment/tips/tips.vue'
|
|
|
|
import tiplist from '@/compoment/tiplist/tiplist.vue'
|
|
|
|
import InputNum from '@/compoment/InputNum/InputNum.vue';
|
|
|
|
import BasicContainer from '@/compoment/BasicContainer/BasicContainer.vue';
|
|
|
|
import PopUp from '@/compoment/PopUp/PopUp.vue';
|
|
|
|
import BluetoothList from '@/compoment/BluetoothList/BluetoothList.vue';
|
|
|
|
import ScrollList from '@/compoment/ScrollList/ScrollList.vue';
|
|
|
|
import PullDownBox from '@/compoment/PullDownBox/PullDownBox.vue';
|
|
|
|
import saomiao1 from '@/compoment/saomiao1.vue'
|
|
|
|
import saomiao2 from '@/compoment/saomiao2.vue'
|
|
|
|
import saomiao3 from '@/compoment/saomiao3.vue'
|
|
|
|
import saomiao4 from '@/compoment/saomiao4.vue'
|
|
|
|
import utils from '@/utils/utils.js'
|
|
|
|
import Store from '@/store/index.js'
|
|
|
|
import * as Pinia from 'pinia';
|
|
|
|
export function createApp() {
|
|
|
|
const app = createSSRApp(App)
|
|
|
|
app.config.warnHandler = () => null
|
|
|
|
app.provide('functions', functions)
|
|
|
|
app.provide('utils', utils)
|
|
|
|
app.use(uviewPlus)
|
|
|
|
app.use(Store)
|
|
|
|
app.use(Pinia.createPinia())
|
|
|
|
app.use(fantMini)
|
|
|
|
app
|
|
|
|
.component('saomiao', saomiao)
|
|
|
|
.component('tips', tips)
|
|
|
|
.component('tiplist', tiplist)
|
|
|
|
.component('saomiao1', saomiao1)
|
|
|
|
.component('saomiao2', saomiao2)
|
|
|
|
.component('saomiao3', saomiao3)
|
|
|
|
.component('saomiao4', saomiao4)
|
|
|
|
.component('InputNum', InputNum)
|
|
|
|
.component('BasicContainer', BasicContainer)
|
|
|
|
.component('PopUp', PopUp)
|
|
|
|
.component('BluetoothList', BluetoothList)
|
|
|
|
.component('ScrollList', ScrollList)
|
|
|
|
.component('PullDownBox', PullDownBox)
|
|
|
|
|
|
|
|
uni.$u.config.unit = 'rpx'
|
|
|
|
return {
|
|
|
|
app,
|
|
|
|
Pinia
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// #endif
|