diff --git a/certificate.html b/certificate.html index 5b53e3d..8e06b19 100644 --- a/certificate.html +++ b/certificate.html @@ -752,19 +752,29 @@ `; if (certificate.signature) { + // 显示二维码 + const sessionId = getSessionId(); + const viewUrl = `http://8.137.125.67:3008/view.html?sessionId=${encodeURIComponent(sessionId)}`; + html += ` -
扫描查看完整信息
长按保存二维码
'; - // 使用Google Charts API生成二维码 const qrCodeUrl = `https://api.qrserver.com/v1/create-qr-code/?size=140x140&data=${encodeURIComponent(url)}`; @@ -1184,7 +1184,6 @@ // 组装容器 qrContainer.appendChild(qrTitle); qrContainer.appendChild(qrImage); - qrContainer.appendChild(qrText); // 找到合适的位置插入二维码容器 // 在certificate元素内插入