tanxue 5 時間 前
コミット
f75f2ed01f
1 ファイル変更10 行追加4 行削除
  1. 10 4
      pages/kehu/hetong/HetongInfo.vue

+ 10 - 4
pages/kehu/hetong/HetongInfo.vue

@@ -8,7 +8,7 @@
 					@click="previewBase64Image(`data:image/png;base64,${item}`)" class="pdf-img" />
 			</view>
 			<!-- 加载提示 -->
-			<view class="pdf-tip-box" v-if="isLoading">
+			<view class="pdf-tip-box" v-if="isLoading" :style="{ top: `calc(42px + ${statusBarHeight}px );`}">
 				<view class="tip-img-box">
 					<view :style="{ backgroundImage: 'url(' + imgsArr.loadingIcon + ')' }" class="tip-icon"/>
 					 <view class="tip-text">加载中...</view>
@@ -33,7 +33,7 @@
 
 <script setup>
 	import {
-		ref,reactive
+		ref,reactive,onMounted
 	} from "vue";
 	import * as httpApi from "@/api/khHetong.js"
 	import cacheManager from '@/utils/cacheManager.js'
@@ -48,7 +48,7 @@
 	import {
 		base64ToPath
 	} from "image-tools";
-
+	const statusBarHeight = ref(0);	
 	const tId = ref(null)
 
 	const info = ref({})
@@ -61,7 +61,13 @@
 			loadingIcon: '',
 	})
 	const fromPage = ref('')
-
+	onMounted(() => {
+				uni.getSystemInfo({
+				success: (res) => {
+				statusBarHeight.value = res.statusBarHeight;
+				}
+				});
+			});
 	onLoad((options) => {
 		tId.value = options.id;
 		fromPage.value = options.from