iframe 页面无法进行点赞 点菜 评论

This commit is contained in:
陈昱达
2025-08-05 14:36:16 +08:00
parent 7229a86d09
commit 1994c61335

View File

@@ -615,9 +615,9 @@
<span>查看评价</span>
<button class="dialog-close" onclick="DialogHandler.closeDialog()" type="button">×</button>
</div>
<textarea id="commentText" placeholder="请输入您的评价..."></textarea>
<textarea id="commentText" placeholder="本次风险筛查结果暂无评价"></textarea>
<div class='dialog-action'>
<button style='background: #3498db; color: white; border: 1px solid #3498db;' onclick="DialogHandler.saveComment()" type="button">发布</button>
<button id='saveBtn' style='background: #3498db; color: white; border: 1px solid #3498db;' onclick="DialogHandler.saveComment()" type="button">发布</button>
<button onclick="DialogHandler.closeDialog()" type="button">关闭</button>
</div>
</div>
@@ -1201,11 +1201,28 @@
var ping = document.getElementById('ping');
var zan = document.getElementById('zan');
var noNav = Utils.getQueryParam('noNav');
var noPadding = Utils.getQueryParam('noPT');
ping.onclick = function() {
DialogHandler.showDialog();
var commentText = document.getElementById('commentText')
var saveBtn = document.getElementById('saveBtn')
commentText.removeAttribute('disabled')
saveBtn.style.display = ''
if(noNav || noPadding){
commentText.setAttribute('disabled',true)
saveBtn.style.display = 'none'
}
};
zan.onclick = function() {
if(noNav || noPadding){
return false
}
var dataParams = {
taCode: StateManager.taCode,
resultId: StateManager.resultId,
@@ -1241,6 +1258,9 @@
};
cai.onclick = function() {
if(noNav || noPadding){
return false
}
var dataParams = {
taCode: StateManager.taCode,
resultId: StateManager.resultId,