1 В избранное 0 Ответвления 0

OSCHINA-MIRROR/AngelTheonly-AppointmentCourse

Клонировать/Скачать
App.vue 1.3 КБ
Копировать Редактировать Web IDE Исходные данные Просмотреть построчно История
公司主机 Отправлено 06.05.2020 07:57 3115b31
<script>
import Vue from 'vue';
// #ifdef MP-WEIXIN
import validation from 'utils/validation.js';
// #endif
export default {
onLaunch: function() {
console.log('App Launch');
// #ifdef MP-WEIXIN
validation.getUpdateManager();
validation.getSetting(this);
// #endif
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.WindowWidth = e.windowWidth;
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
}
});
},
onShow: function() {
console.log('App Show');
},
onHide: function() {
console.log('App Hide');
}
};
</script>
<style>
/*每个页面公共css */
@import "./common/app.scss";
</style>

Опубликовать ( 0 )

Вы можете оставить комментарий после Вход в систему

1
https://api.gitlife.ru/oschina-mirror/AngelTheonly-AppointmentCourse.git
git@api.gitlife.ru:oschina-mirror/AngelTheonly-AppointmentCourse.git
oschina-mirror
AngelTheonly-AppointmentCourse
AngelTheonly-AppointmentCourse
master