|
|
@@ -4,7 +4,7 @@
|
|
|
<customNavbarVue title="合同" :show-back-btn="true" @back="handleGoLishi"></customNavbarVue>
|
|
|
<template v-if="tId">
|
|
|
<view class="pdf-box">
|
|
|
- <img v-for="item in imgList" mode="aspectFit" :src="`data:image/png;base64,${item}`"
|
|
|
+ <img v-for="(item,index) in imgList" :key="index" mode="aspectFit" :src="`data:image/png;base64,${item}`"
|
|
|
@click="previewBase64Image(`data:image/png;base64,${item}`)" class="pdf-img" />
|
|
|
</view>
|
|
|
<!-- 加载提示 -->
|
|
|
@@ -25,7 +25,7 @@
|
|
|
<uni-popup ref="popupRef" type="top" background-color="#fff" :is-mask-click="false" :mask-click="false">
|
|
|
<view class="ht-qm-popup">
|
|
|
<customNavbarVue title="签名" :show-back-btn="true" @back="goback2"></customNavbarVue>
|
|
|
- <writeSign @getBase64="getBase64"></writeSign>
|
|
|
+ <writeSign @getBase64="getBase64" v-if="showQianming"></writeSign>
|
|
|
</view>
|
|
|
</uni-popup>
|
|
|
</view>
|
|
|
@@ -33,7 +33,7 @@
|
|
|
|
|
|
<script setup>
|
|
|
import {
|
|
|
- ref,reactive,onMounted
|
|
|
+ ref,reactive,onMounted,onUnmounted
|
|
|
} from "vue";
|
|
|
import * as httpApi from "@/api/khHetong.js"
|
|
|
import cacheManager from '@/utils/cacheManager.js'
|
|
|
@@ -54,6 +54,7 @@
|
|
|
const info = ref({})
|
|
|
const show = ref(false)
|
|
|
const popupRef = ref(null)
|
|
|
+ const showQianming = ref(false);
|
|
|
const imgList = ref([])
|
|
|
const isLoading = ref(true)
|
|
|
const timer1 = ref(null)
|
|
|
@@ -84,6 +85,9 @@
|
|
|
|
|
|
function handleQianming() {
|
|
|
popupRef.value.open()
|
|
|
+ setTimeout(() => {
|
|
|
+ showQianming.value = true
|
|
|
+ }, 500)
|
|
|
}
|
|
|
|
|
|
function init() {
|
|
|
@@ -158,7 +162,6 @@
|
|
|
return;
|
|
|
}
|
|
|
handleQM(img)
|
|
|
-
|
|
|
}
|
|
|
function handleGoLishi() {
|
|
|
if (fromPage.value == 'appcx') {
|