This commit is contained in:
@@ -189,35 +189,39 @@ $(function () {
|
||||
},
|
||||
});
|
||||
};
|
||||
// 设置通用信息函数
|
||||
const setCommData = () => {
|
||||
const commentObj = JSON.parse(sessionStorage.commentData);
|
||||
$("#enterprise_name").text(commentObj.enterprise_name);
|
||||
$(".com-contact-tel").text(commentObj.enterprise_telephone);
|
||||
$("#enterprise_telephone").text(
|
||||
`联系电话:${commentObj.enterprise_telephone}`
|
||||
);
|
||||
$("#enterprise_mailbox").text(`联系邮箱:${commentObj.enterprise_mailbox}`);
|
||||
$("#enterprise_qrcode").attr("src", commentObj.enterprise_qrcode);
|
||||
$("#logo").attr("src", commentObj.official_website_logo);
|
||||
if (commentObj.friendly_link.length > 0) {
|
||||
$("#index #footerLink").attr("style", "display: block;");
|
||||
commentObj.friendly_link.forEach((item) => {
|
||||
$("#footerLink").append(
|
||||
`<a href=${item.url} target="_blank" rel="nofollow">${item.name}</a>`
|
||||
);
|
||||
});
|
||||
} else {
|
||||
$("#footerLink").attr("style", "display: none;");
|
||||
}
|
||||
$("#footerRecord").prepend(`
|
||||
<div class='left-info'>
|
||||
<a href='${commentObj.icp_info_link}' target="_blank" rel="nofollow">${commentObj.icp_info}</a>
|
||||
<a href='${commentObj.public_security_network_preparation_link}' target="_blank" rel="nofollow">${commentObj.public_security_network_preparation}</a>
|
||||
<span>${commentObj.telecom_appreciation}</span>
|
||||
</div>
|
||||
`);
|
||||
$("#copyright_info").text(commentObj.copyright_info);
|
||||
// 设置通用信息函数
|
||||
const setCommData = () => {
|
||||
const commentObj = JSON.parse(sessionStorage.commentData);
|
||||
$("#enterprise_name").text(commentObj.enterprise_name);
|
||||
$(".com-contact-tel").text(commentObj.enterprise_telephone);
|
||||
$("#enterprise_telephone").text(
|
||||
`联系电话:${commentObj.enterprise_telephone}`
|
||||
);
|
||||
$("#enterprise_mailbox").text(`联系邮箱:${commentObj.enterprise_mailbox}`);
|
||||
$("#enterprise_qrcode").attr("src", commentObj.enterprise_qrcode);
|
||||
$("#logo").attr("src", commentObj.official_website_logo);
|
||||
if (commentObj.friendly_link.length > 0) {
|
||||
$("#index #footerLink").attr("style", "display: block;");
|
||||
// 先清空,再填充,避免重复叠加
|
||||
$("#footerLink a").remove();
|
||||
commentObj.friendly_link.forEach((item) => {
|
||||
$("#footerLink").append(
|
||||
`<a href=${item.url} target="_blank" rel="nofollow">${item.name}</a>`
|
||||
);
|
||||
});
|
||||
} else {
|
||||
$("#footerLink").attr("style", "display: none;");
|
||||
}
|
||||
|
||||
// 统一覆盖底部备案信息和版权
|
||||
$("#footerRecord").html(`
|
||||
<div class='left-info'>
|
||||
<a href='${commentObj.icp_info_link}' target="_blank" rel="nofollow">${commentObj.icp_info}</a>
|
||||
<a href='${commentObj.public_security_network_preparation_link}' target="_blank" rel="nofollow">${commentObj.public_security_network_preparation}</a>
|
||||
<span>${commentObj.telecom_appreciation}</span>
|
||||
</div>
|
||||
<span>${commentObj.copyright_info}</span>
|
||||
`);
|
||||
$("#terms_service_url").click(function () {
|
||||
location.href = commentObj.terms_service_url;
|
||||
});
|
||||
|
||||
@@ -122,20 +122,20 @@
|
||||
<span>友情链接:</span>
|
||||
</div>
|
||||
{/if}
|
||||
{if ( isset($data.config) ) }
|
||||
<div class="footer-record">
|
||||
<div class='left-info'>
|
||||
<a href='{$data.config.icp_info_link}' target="_blank" rel="nofollow">{$data.config.icp_info}</a>
|
||||
<a href='{$data.config.public_security_network_preparation_link}' target="_blank"
|
||||
rel="nofollow">{$data.config.public_security_network_preparation}</a>
|
||||
<span>{$data.config.telecom_appreciation}</span>
|
||||
</div>
|
||||
<span>{$data.config.copyright_info}</span>
|
||||
</div>
|
||||
{else /}
|
||||
<div class="footer-record" id="footerRecord">
|
||||
<span id="copyright_info"></span>
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
{if ( isset($data.config) ) }
|
||||
<div class="footer-record" id="footerRecord">
|
||||
<div class='left-info'>
|
||||
<a href='{$data.config.icp_info_link}' target="_blank" rel="nofollow">{$data.config.icp_info}</a>
|
||||
<a href='{$data.config.public_security_network_preparation_link}' target="_blank"
|
||||
rel="nofollow">{$data.config.public_security_network_preparation}</a>
|
||||
<span>{$data.config.telecom_appreciation}</span>
|
||||
</div>
|
||||
<span>{$data.config.copyright_info}</span>
|
||||
</div>
|
||||
{else /}
|
||||
<div class="footer-record" id="footerRecord">
|
||||
<span id="copyright_info"></span>
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user