Commit 5c5da994 authored by youjie's avatar youjie

no message

parent cb9f1ead
<template> <template>
<view class="person"> <view class="person" :style="{ 'padding-bottom': `${statusBarHeight}px` }">
<view class="info flex_between_center flex_nowrap"> <view class="info flex_between_center flex_nowrap">
<view class="left flex_start_between"> <view class="left flex_start_between">
<view class="name"> <view class="name">
...@@ -319,6 +319,7 @@ ...@@ -319,6 +319,7 @@
}; };
let that = methods; let that = methods;
onMounted(() => { onMounted(() => {
data.statusBarHeight = uni.getSystemInfoSync().statusBarHeight;
that.VersionUpdate() that.VersionUpdate()
that.initColor() that.initColor()
}); });
......
<template> <template>
<view class="" :style="{ 'padding-top': `${statusBarHeight}px` }"> <view class="" :style="{ 'padding-top': `${statusBarHeight}px`,'padding-bottom': `${statusBarHeight}px` }">
<view style="height: 100rpx"></view> <view style="height: 100rpx"></view>
<view class="navbar"> <view class="navbar">
...@@ -420,6 +420,21 @@ ...@@ -420,6 +420,21 @@
} }
}; };
onMounted(() => { onMounted(() => {
// let port = uni.getSystemInfoSync().platform
// switch (port) {
// case 'android':
// data.statusBarHeight = false
// console.log('运行Android上',port);//android
// break;
// case 'ios':
// data.statusBarHeight = true
// console.log('运行iOS上',port);//ios
// break;
// default:
// data.statusBarHeight = true
// console.log('运行在开发者工具上');//devtools
// break;
// }
that.VersionUpdate() that.VersionUpdate()
getcalendar(new Date().getFullYear(), new Date().getMonth() + 1); getcalendar(new Date().getFullYear(), new Date().getMonth() + 1);
let today = calendar.value.find((e) => { let today = calendar.value.find((e) => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment