瀏覽代碼

空出顶部

your_username 3 天之前
父節點
當前提交
03759aae4f
共有 2 個文件被更改,包括 15 次插入3 次删除
  1. 8 0
      my/publish/editor.vue
  2. 7 3
      package/my/resume.vue

+ 8 - 0
my/publish/editor.vue

@@ -1,5 +1,8 @@
 <template>
 	<view class="padding-bottom-xl">
+		<!-- 顶部占位区域 -->
+		<view :style="{ height: statusBarHeight + 'px' }"></view>
+		
 		<!-- <view class="text-white padding margin bg" v-if="form.isRecommend==2">
 			<view class="flex align-center justify-between" style="color: red;">
 				<view class=" text-bold">已录入人才库</view>
@@ -226,6 +229,7 @@
 	export default {
 		data() {
 			return {
+				statusBarHeight: 0,
 				showGraduationTime: false,
 				nameList: [],
 				labelStyle: {
@@ -294,6 +298,10 @@
 			}
 		},
 		onLoad(option) {
+			// 获取状态栏高度
+			const systemInfo = uni.getSystemInfoSync()
+			this.statusBarHeight = systemInfo.statusBarHeight || 0
+			
 			this.getbookName();
 			if (option.resumesId) {
 				this.type = 2

+ 7 - 3
package/my/resume.vue

@@ -1,5 +1,8 @@
 <template>
 	<view>
+		<!-- 顶部占位区域 -->
+		<view :style="{ height: statusBarHeight + 'px' }"></view>
+		
 		<view v-if="JSON.stringify(list) != '{}'">
 			<view class="listbox" @click="goUpdete()">
 				<view class="flex align-center justify-between">
@@ -70,7 +73,6 @@
 		<view class="submit" v-else @click="goUpdete()">添加简历</view>
 		<empty v-if="JSON.stringify(list) == '{}'" />
 	</view>
-	</view>
 </template>
 
 <script>
@@ -83,11 +85,13 @@
 			return {
 				avatar: '../../static/logo.png',
 				list: {},
-
+				statusBarHeight: 0
 			}
 		},
 		onLoad() {
-
+			// 获取状态栏高度
+			const systemInfo = uni.getSystemInfoSync()
+			this.statusBarHeight = systemInfo.statusBarHeight || 0
 		},
 		onPullDownRefresh() {
 			this.getDetails();