Browse Source

修改bug

wangxy 5 days ago
parent
commit
c0409688c2

+ 1 - 1
common/styles/global/pages.scss

@@ -757,7 +757,7 @@
 	.qm-tip-box{background-color: #fff;border-radius: 6rpx;margin: 24rpx;
 	padding: 16rpx 24rpx;box-sizing: border-box;}
 	.lime-signature{
-		// width: 100%!important;height: 400rpx!important;
+		 width: 100%!important;height: 400rpx!important;
 	background-color: #f0f9f8;border-radius: 8rpx;margin: 10rpx auto 0;}
 	.qm-tip-text{font-size: 24rpx;color: #333;margin: 48rpx 0 12rpx;line-height: 1.6;}
 	.ht-btn-box{

+ 6 - 2
pages/client/hetong/HetongInfo.vue

@@ -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 v-if="showQianming" @getBase64="getBase64"></writeSign>
 			</view>
 		</uni-popup>
 	</view>
@@ -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)
@@ -86,6 +87,9 @@
 
 	function handleQianming() {
 		popupRef.value.open()
+		setTimeout(() => {
+			showQianming.value = true
+		})
 	}
 
 	function init() {

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

@@ -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') {