|
|
@@ -1,5 +1,6 @@
|
|
|
<template>
|
|
|
<view class="my-activities-page">
|
|
|
+ <view class="status-bar-placeholder" :style="{height: statusBarHeight + 'px', backgroundColor: '#FCE4EC'}"></view>
|
|
|
<!-- 自定义导航栏 -->
|
|
|
<view class="custom-navbar">
|
|
|
<view class="navbar-left" @click="goBack">
|
|
|
@@ -53,6 +54,7 @@ import api from '../../utils/api.js'
|
|
|
export default {
|
|
|
data() {
|
|
|
return {
|
|
|
+ statusBarHeight: 0,
|
|
|
activityList: [],
|
|
|
pageNum: 1,
|
|
|
pageSize: 10,
|
|
|
@@ -81,6 +83,9 @@ export default {
|
|
|
},
|
|
|
|
|
|
onLoad() {
|
|
|
+ // 获取状态栏高度
|
|
|
+ const systemInfo = uni.getSystemInfoSync()
|
|
|
+ this.statusBarHeight = systemInfo.statusBarHeight
|
|
|
this.loadMyActivityList()
|
|
|
},
|
|
|
|
|
|
@@ -149,7 +154,16 @@ export default {
|
|
|
.my-activities-page {
|
|
|
min-height: 100vh;
|
|
|
background-color: #FFF9F9;
|
|
|
- padding-top: 90rpx;
|
|
|
+ padding-top: 120rpx;
|
|
|
+ }
|
|
|
+
|
|
|
+ /* 状态栏占位符 */
|
|
|
+ .status-bar-placeholder {
|
|
|
+ position: fixed;
|
|
|
+ top: 0;
|
|
|
+ left: 0;
|
|
|
+ right: 0;
|
|
|
+ z-index: 998;
|
|
|
}
|
|
|
|
|
|
/* 自定义导航栏 */
|
|
|
@@ -158,11 +172,11 @@ export default {
|
|
|
top: 0;
|
|
|
left: 0;
|
|
|
right: 0;
|
|
|
- height: 90rpx;
|
|
|
+ height: 120rpx;
|
|
|
display: flex;
|
|
|
- align-items: center;
|
|
|
+ align-items: flex-end;
|
|
|
justify-content: space-between;
|
|
|
- padding: 0 20rpx;
|
|
|
+ padding: 0 30rpx 25rpx;
|
|
|
background: linear-gradient(135deg, #FCE4EC 0%, #F8BBD0 100%);
|
|
|
z-index: 999;
|
|
|
|