修改首页样式
This commit is contained in:
parent
67fdbc0554
commit
df943f5d48
@ -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>
|
||||
|
||||
@ -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) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user