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

OSCHINA-MIRROR/yi-lian-shu-ju-mini-contract

В этом репозитории не указан файл с открытой лицензией (LICENSE). При использовании обратитесь к конкретному описанию проекта и его зависимостям в коде.
Клонировать/Скачать
App.vue 1.5 КБ
Копировать Редактировать Web IDE Исходные данные Просмотреть построчно История
何俊峰 Отправлено 07.07.2023 09:26 97a1dea
<!--
* @Description:
* @LastEditTime: 2022-09-08 11:23:42
* @LastEditors: 刘仁秀
* @Author: 刘仁秀
* @Date: 2022-09-02 15:21:16
-->
<script>
export default {
onLaunch: function () {
// #ifndef H5
let menuButtonObject = uni.getMenuButtonBoundingClientRect();
this.globalData.menuButtonObject = menuButtonObject;
uni.getSystemInfo({
success: res => {
let statusBarHeight = res.statusBarHeight,
navHeight;
this.globalData.iStatusBarHeight = statusBarHeight;
navHeight = menuButtonObject.height + (menuButtonObject.top - statusBarHeight) * 2; //导航高度
this.globalData.navHeight = navHeight;
},
});
// #endif
},
onShow: function () {
console.log('App Show');
},
onHide: function () {
console.log('App Hide');
},
globalData: {
navHeight: 44, //导航栏的高度
menuButtonObject: 0, //胶囊参数
iStatusBarHeight: 0,
},
};
</script>
<style lang="scss">
/*每个页面公共css */
@import '@/style/common.scss';
.tag-status {
padding: 0 20rpx;
height: 40rpx;
border-radius: 22rpx;
align-self: flex-start;
margin-left: 30rpx;
}
.status-color-0,
.status-color--2 {
color: #ee6a15;
background: #ffefe6;
}
// 已完成
.status-color-1 {
color: #00cf15;
background: #e6ffe8;
}
.status-color-2 {
color: #ff0000;
background: #fdebeb;
}
.status-color-3 {
color: #ff0000;
background: #fdebeb;
}
.status-color-4 {
color: #666666;
background: #e6e6e6;
}
.status-color-5 {
color: #666666;
background: #e6e6e6;
}
</style>

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

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

1
https://api.gitlife.ru/oschina-mirror/yi-lian-shu-ju-mini-contract.git
git@api.gitlife.ru:oschina-mirror/yi-lian-shu-ju-mini-contract.git
oschina-mirror
yi-lian-shu-ju-mini-contract
yi-lian-shu-ju-mini-contract
master