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