提交 68f9dc25 作者: wk

兼容PC

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