DESKTOP-O04BTUJ\muzen пре 3 година
родитељ
комит
70dda49a9b
1 измењених фајлова са 3 додато и 1 уклоњено
  1. 3 1
      src/pages/lottery/index.vue

+ 3 - 1
src/pages/lottery/index.vue

@@ -1,6 +1,6 @@
 <template>
   <view class="app-container">
-    <view class="nav" :style="`margin-top: ${statusBarHeight}`">
+    <view class="nav">
       <uni-icons type="back" style="font-size: 48rpx" @click="close" />
       <text class="title">积分抽奖</text>
     </view>
@@ -90,6 +90,7 @@ export default {
   },
   mounted() {
     this.statusBarHeight = uni.getSystemInfoSync().statusBarHeight + 'px'
+    console.log(uni.getSystemInfoSync());
   },
   methods: {
     setUserInfo() {
@@ -229,6 +230,7 @@ export default {
     font-weight: bold;
     font-size: 36rpx;
     position: relative;
+    margin-top: var(--status-bar-height);
 
     .title {
       position: absolute;