This commit is contained in:
2025-12-29 15:37:36 +08:00
parent 4f9d79461c
commit 6241504095
+29 -15
View File
@@ -167,16 +167,10 @@ export function infoContent1(res: any) {
<span class="item-one">${res.type === '1' ? '医院名称' : '救护车名称'}</span>
<span class="item-two">${res.name ? res.name : '--'}</span>
</div>
${
res.type === '1'
? `
<div class="modal-item" style="margin: 5px 0">
<span class="item-one">电话:</span>
<span class="item-two">${res.mobile ? res.mobile : '--'}</span>
</div>
`
: ``
}
<div class="modal-item" style="margin: 5px 0">
<span class="item-one">电话:</span>
<span class="item-two">${res.mobile ? res.mobile : '--'}</span>
</div>
<div class="modal-item">
<span class="item-one">地点:</span>
<span class="item-two">${res.address ? res.address : '--'}</span>
@@ -210,14 +204,14 @@ export function infoContent4(res: any) {
}
export function infoContentSpecial(res: any) {
return `
<div class="modal-box modal-box-special" style="width: 400px !important;height: auto !important;">
<div class="modal-box modal-box-special" style="width: 450px !important;height: auto !important;">
<div style="text-align: center;color: #5CFBFF;display: flex;align-items: center;justify-content: center">
<div class="top-left-a-right" style="transform: rotate(180deg)"></div>
<div style="margin: 0 10px;font-size: 16px">${res.type === '1' ? '油田医院' : res.type === '4' ? 'AED' : '健康小屋'}</div>
<div class="top-left-a-right"></div>
</div>
<div class="modal-item" style="justify-content: flex-start">
<div class="item-one" style="width: auto !important;">地</div>
<div class="item-one" style="width: auto !important;">地</div>
<div class="item-two" style="text-align: left: color: #5CFBFF; flex: 1">${res.address || '--'}</div>
</div>
<div class="modal-item" style="justify-content: flex-start">
@@ -230,13 +224,33 @@ export function infoContentSpecial(res: any) {
<div class="item-two" style="text-align: left: color: #5CFBFF; flex: 1">${res.driveTime || '--'}</div>
</div>
</div>
<div class="modal-item" style="justify-content: flex-start">
${
res.type === '4'
? `
<div class="modal-item" style="">
<div style="display: flex; flex: 1">
<div class="item-one" style="width: auto !important;">联系人</div>
<div class="item-one" style="width: auto !important;">单位</div>
<div class="item-two" style="text-align: left: color: #5CFBFF; flex: 1">${res.orgName ? res.orgName + (res.deptName ? `/${res.deptName}` : '') : '--'}</div>
</div>
</div>
`
: ''
}
${
res.type === '4'
? `
<div class="modal-item" style="">
<div style="display: flex; flex: 1">
<div class="item-one" style="width: auto !important;">管理员:</div>
<div class="item-two" style="text-align: left: color: #5CFBFF; flex: 1">${res.manageName || '--'}</div>
</div>
</div>
`
: ''
}
<div class="modal-item" style="">
<div style="display: flex; flex: 1">
<div class="item-one" style="width: auto !important;">联系电话</div>
<div class="item-one" style="width: auto !important;">${res.type === '4' ? '管理员电话' : '联系方式'}</div>
<div class="item-two" style="text-align: left: color: #5CFBFF; flex: 1">${res.managePhone || '--'}</div>
</div>
</div>