12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- import Vue from 'vue'
- import App from './App'
- Vue.config.productionTip = false
- import uView from 'uview-ui'
- Vue.use(uView)
- // uni.$u.config.unit = 'rpx'
- import utils from './utils/common.js'
- Vue.prototype.utils = utils;
- import {
- setData,
- } from './utils/common.js'
- // vuex
- import store from '@/store/index.js'
- Vue.prototype.setData = setData;
- App.mpType = 'app'
- const app = new Vue({
- ...App,
- store
- })
- app.$mount()
- // #ifdef VUE3
- import { createSSRApp } from 'vue'
- export function createApp() {
- const app = createSSRApp(App)
- app.use(uviewPlus)
- app.config.globalProperties.$isLogin = isLogin
- app.config.globalProperties.$isEmpty = isEmpty
- app.config.globalProperties.$parsePhone = parsePhone
- app.config.globalProperties.$showLoginPage = showLoginPage
- app.config.globalProperties.$getRegistrationID = getRegistrationID
- app.config.globalProperties.$navBack = navBack
- app.config.globalProperties.$navTo = navTo
- app.config.globalProperties.$qconfig = qconfig
- app.config.globalProperties.$getAge = getAge
- app.config.globalProperties.$parseIdCard = parseIdCard
- app.config.globalProperties.$getDictLabelName = getDictLabelName
- app.config.globalProperties.$parseText = parseText
- app.config.globalProperties.$logout = logout,
- app.config.globalProperties.$getUserInfo = getUserInfo,
- app.config.globalProperties.$dateFormatStr = dateFormatStr,
- app.config.globalProperties.$registerIdCode = registerIdCode,
- app.config.globalProperties.$formatSeconds = formatSeconds,
- app.config.globalProperties.$formatDate = formatDate,
- app.config.globalProperties.$parseIDCardInfo = parseIDCardInfo
- app.config.globalProperties.$timeFormat = timeFormat;
- app.config.globalProperties.$formatHour = formatHour;
- return {
- app
- }
- }
- // #endif
|