|
|
@ -395,6 +395,48 @@ |
|
|
background-color: white; |
|
|
background-color: white; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/* 签名和二维码同行显示样式 */ |
|
|
|
|
|
.signature-qr-container { |
|
|
|
|
|
align-items: flex-start; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.signature-qr-content { |
|
|
|
|
|
flex: 1; |
|
|
|
|
|
display: flex; |
|
|
|
|
|
align-items: center; |
|
|
|
|
|
gap: 15px; |
|
|
|
|
|
flex-wrap: wrap; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.signature-qr-content .signature-display { |
|
|
|
|
|
flex: 1; |
|
|
|
|
|
min-width: 120px; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.signature-qr-content #qrCodeContainer { |
|
|
|
|
|
flex: 1; |
|
|
|
|
|
min-width: 120px; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.signature-qr-content #qrCodeDisplay { |
|
|
|
|
|
margin: 0; |
|
|
|
|
|
padding: 8px; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.signature-qr-content #qrCodeImage { |
|
|
|
|
|
max-width: 120px; |
|
|
|
|
|
max-height: 120px; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.signature-qr-content #qrCodeDisplay h3 { |
|
|
|
|
|
font-size: 12px; |
|
|
|
|
|
margin-bottom: 6px; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.signature-qr-content #qrCodeDisplay div { |
|
|
|
|
|
font-size: 10px; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
/* 签名弹窗样式 */ |
|
|
/* 签名弹窗样式 */ |
|
|
.signature-modal { |
|
|
.signature-modal { |
|
|
display: none; |
|
|
display: none; |
|
|
@ -748,20 +790,26 @@ |
|
|
</div> |
|
|
</div> |
|
|
`; |
|
|
`; |
|
|
|
|
|
|
|
|
|
|
|
// 创建签名和二维码的容器 |
|
|
if (certificate.signature) { |
|
|
if (certificate.signature) { |
|
|
html += ` |
|
|
html += ` |
|
|
<div class="info-item"> |
|
|
<div class="info-item signature-qr-container"> |
|
|
<span class="label">签名:</span> |
|
|
<span class="label">签名:</span> |
|
|
<div class="signature-display"> |
|
|
<div class="signature-qr-content"> |
|
|
<img src="${certificate.signature}" alt="签名" style="max-width: 200px; max-height: 100px;"> |
|
|
<div class="signature-display"> |
|
|
|
|
|
<img src="${certificate.signature}" alt="签名" style="max-width: 150px; max-height: 80px;"> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div id="qrCodeContainer"></div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
`; |
|
|
`; |
|
|
|
|
|
|
|
|
// 显示二维码 |
|
|
// 显示二维码 |
|
|
const sessionId = getSessionId(); |
|
|
setTimeout(() => { |
|
|
const viewUrl = `http://8.137.125.67:3008/view.html?sessionId=${encodeURIComponent(sessionId)}`; |
|
|
const sessionId = getSessionId(); |
|
|
displayQRCodeOnPage(viewUrl); |
|
|
const viewUrl = `http://8.137.125.67:3008/view.html?sessionId=${encodeURIComponent(sessionId)}`; |
|
|
|
|
|
displayQRCodeOnPage(viewUrl); |
|
|
|
|
|
}, 100); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
container.innerHTML = html; |
|
|
container.innerHTML = html; |
|
|
@ -1183,15 +1231,21 @@ |
|
|
qrContainer.appendChild(qrText); |
|
|
qrContainer.appendChild(qrText); |
|
|
|
|
|
|
|
|
// 找到合适的位置插入二维码容器 |
|
|
// 找到合适的位置插入二维码容器 |
|
|
// 在certificate元素内插入 |
|
|
// 优先插入到qrCodeContainer元素中 |
|
|
const certificateElement = document.querySelector('.certificate'); |
|
|
const qrCodeContainer = document.getElementById('qrCodeContainer'); |
|
|
if (certificateElement) { |
|
|
if (qrCodeContainer) { |
|
|
certificateElement.appendChild(qrContainer); |
|
|
qrCodeContainer.appendChild(qrContainer); |
|
|
} else { |
|
|
} else { |
|
|
// 如果没有certificate元素,就在container末尾插入 |
|
|
// 如果没有qrCodeContainer元素,就在certificate元素内插入 |
|
|
const container = document.querySelector('.container'); |
|
|
const certificateElement = document.querySelector('.certificate'); |
|
|
if (container) { |
|
|
if (certificateElement) { |
|
|
container.appendChild(qrContainer); |
|
|
certificateElement.appendChild(qrContainer); |
|
|
|
|
|
} else { |
|
|
|
|
|
// 如果都没有,就在container末尾插入 |
|
|
|
|
|
const container = document.querySelector('.container'); |
|
|
|
|
|
if (container) { |
|
|
|
|
|
container.appendChild(qrContainer); |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|