Fetch the repository succeeded.
// #ifndef VUE3
import Vue from 'vue'
import App from './App'
import {
setCurrentPage,
Validate,
setData,
navigateTo,
showModal,
showToast,
getPickerChildren,
uploadImage
} from '@/common/Page.js'
import Tools from '@/common/Tools.js'
import HttpService from '@/common/HttpService.js'
import Session from '@/common/Session.js'
Vue.config.productionTip = false
Vue.prototype.$tools = new Tools()
Vue.prototype.$request = new HttpService()
Vue.prototype.$session = Session
Vue.prototype.Validate = Validate
Vue.prototype.setData = setData
Vue.prototype.navigateTo = navigateTo
Vue.prototype.showModal = showModal
Vue.prototype.showToast = showToast
Vue.prototype.getPickerChildren = getPickerChildren
Vue.prototype.uploadImage = uploadImage
Vue.prototype.setCurrentPage = setCurrentPage
Vue.prototype.select2Datas = ''
Vue.prototype.softname = ''
Vue.prototype.softname_zh = ''
Vue.prototype.input2 = ''
Vue.prototype.kami = ''
Vue.prototype.date = ''
Vue.prototype.radiovalue = ''
Vue.prototype.radioLabel = ''
Vue.prototype.mac = ''
Vue.prototype.startime = ''
Vue.prototype.endtime = ''
Vue.prototype.dailimoney = ''
//上面的是全局变量呵呵呵呵
App.mpType = 'app'
const app = new Vue({
...App
})
uni.getSystemInfo({
success: function(e) {
// #ifndef MP
Vue.prototype.StatusBar = e.statusBarHeight;
if (e.platform == 'android') {
Vue.prototype.CustomBar = e.statusBarHeight + 50;
} else {
Vue.prototype.CustomBar = e.statusBarHeight + 45;
};
// #endif
// #ifdef MP-WEIXIN
Vue.prototype.StatusBar = e.statusBarHeight;
let custom = wx.getMenuButtonBoundingClientRect();
Vue.prototype.Custom = custom;
Vue.prototype.CustomBar = custom.bottom + custom.top - e.statusBarHeight;
// #endif
// #ifdef MP-ALIPAY
Vue.prototype.StatusBar = e.statusBarHeight;
Vue.prototype.CustomBar = e.statusBarHeight + e.titleBarHeight;
// #endif
}
})
app.$mount()
// #endif
// #ifdef VUE3
import App from './App'
import {
setCurrentPage,
Validate,
setData,
navigateTo,
showModal,
showToast,
getPickerChildren,
uploadImage
} from '@/common/Page.js'
import Tools from '@/common/Tools.js'
import HttpService from '@/common/HttpService.js'
import Session from '@/common/Session.js'
import {
createSSRApp
} from 'vue'
export function createApp() {
const app = createSSRApp(App)
app.config.globalProperties.$tools = new Tools()
app.config.globalProperties.$request = new HttpService()
app.config.globalProperties.$session = Session
uni.getSystemInfo({
success: function(e) {
// #ifndef MP
app.config.globalProperties.StatusBar = e.statusBarHeight;
if (e.platform == 'android') {
app.config.globalProperties.CustomBar = e.statusBarHeight + 50;
} else {
app.config.globalProperties.CustomBar = e.statusBarHeight + 45;
};
// #endif
// #ifdef MP-WEIXIN
app.config.globalProperties.StatusBar = e.statusBarHeight;
let custom = wx.getMenuButtonBoundingClientRect();
app.config.globalProperties.Custom = custom;
app.config.globalProperties.CustomBar = custom.bottom + custom.top - e.statusBarHeight;
// #endif
// #ifdef MP-ALIPAY
app.config.globalProperties.StatusBar = e.statusBarHeight;
app.config.globalProperties.CustomBar = e.statusBarHeight + e.titleBarHeight;
// #endif
}
})
app.mixin({
methods: {
setCurrentPage,
Validate,
setData,
navigateTo,
showModal,
showToast,
getPickerChildren,
uploadImage
}
})
return {
app
}
}
// #endif
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。