提交 68f9dc25 作者: wk

兼容PC

父级 d244efa5
......@@ -162,7 +162,12 @@
},
onLoad() {
const info = uni.getSystemInfoSync()
console.log("系统", info);
if (info.platform == 'windows') {
this.statusBarHeight = info.safeArea.top
} else {
this.statusBarHeight = info.statusBarHeight
}
let nowDate = new Date()
this.nowTime =
`${nowDate.getFullYear()}/${this.add0(nowDate.getMonth()+1)}/${this.add0(nowDate.getDate())}`
......
......@@ -11,7 +11,7 @@
<image src="../../static/avatar-def.png" class="avatar"></image>
</view>
</view>
<view class="func-content">
<view class="func-content" :style="{top:statusBarHeight+230+'px'}">
<view class="item" v-if="isShow('项目信息')" @click="linkTo('/pages/mine/projectInfo/projectInfo')">
<view class="name">项目信息</view>
<image src="../../static/right-arrow.png" class="image"></image>
......@@ -232,14 +232,16 @@
.func-content {
display: flex;
position: absolute;
flex-direction: column;
margin: 90px 30rpx 0 30rpx;
margin: 0 30rpx 0 30rpx;
background-color: #fff;
border-radius: 30rpx;
.item {
display: flex;
flex-direction: row;
width: 600rpx;
align-items: center;
padding: 30rpx 50rpx;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
Please register or to comment