1 Star 0 Fork 92

君莫笑 / 免费开源电子合同

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
App.vue 1.53 KB
一键复制 编辑 原始数据 按行查看 历史
何俊峰 提交于 2023-07-07 14:26 . 1.1.2更新
<!--
* @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>
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/lichengrong/mini-contract.git
git@gitee.com:lichengrong/mini-contract.git
lichengrong
mini-contract
免费开源电子合同
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891