修改首页样式

This commit is contained in:
lxd 2025-03-19 15:18:04 +08:00
parent 67fdbc0554
commit df943f5d48
2 changed files with 7 additions and 8 deletions

View File

@ -772,7 +772,8 @@
<span class="person_title">年龄</span><span class="person_content">--</span>
</div>
<div class="person_detail">
<span class="person_title">单位</span><span class="person_content">--</span>
<span class="person_title" style="letter-spacing: 4px;">身份证号</span><span
class="person_content">--</span>
</div>
<div class="person_detail">
<span class="person_title" style="letter-spacing: 4px;">联系电话</span><span
@ -814,7 +815,7 @@
</div>
<div class="preface-footer">
<p class="hospital-name">乌兰察布第四医院</p>
<p class="hospital-name">兴和县卫生健康委员会</p>
</div>
</div>
</div>
@ -829,7 +830,7 @@
<div class="report-item" style="width: 800px;height: 1123px;margin:0 auto;position: relative;">
<div class="report-title">
<div style="display: flex; justify-content: space-between; align-items: center;">
<span>检查结果汇总</span>
<span></span>
<span>填充值</span>
</div>
</div>

View File

@ -109,17 +109,16 @@ const handleIframeLoad = async () => {
//
const companyContent = doc.querySelector('.person_detail:nth-child(4) .person_content')
if (companyContent) companyContent.textContent = reportData.company || '--'
if (companyContent) companyContent.textContent = reportData.cardId || '--'
//
const phoneContent = doc.querySelector('.person_detail:nth-child(5) .person_content')
if (phoneContent) phoneContent.textContent = reportData.phone || '--'
console.log('已更新联系电话:', reportData.phone)
if (phoneContent) phoneContent.textContent = reportData.phoneNum|| '--'
//
const examDateContent = doc.querySelector('.person_detail:nth-child(6) .person_content')
if (examDateContent) {
const date = reportData.examDate ? new Date(reportData.examDate) : null
const date = reportData.medicalDateTime ? new Date(reportData.medicalDateTime) : null
const formattedDate = date
? `${date.getFullYear()}${String(date.getMonth() + 1).padStart(2, '0')}${String(date.getDate()).padStart(2, '0')}`
: '--'
@ -317,7 +316,6 @@ const handleIframeLoad = async () => {
if (reportTitle) {
const reportSection = Array.from(doc.querySelectorAll('.report-item')).find((section) => {
const titleElement = section.querySelector('.report-title')
console.log('titleElement', titleElement)
return titleElement && titleElement.textContent?.trim().includes(reportTitle)
})
if (reportSection) {