联系官方销售客服
1835022288
028-61286886
<div class="xpinglun" style="height: auto;"> <ul> {list action=comment module=news cid=$id more=1 order=inputtime page=1 pagesize=10 urlrule=$urlrule} <li class="ds-post"> <div class="pllist"> <div class="pltx"> <img src="{dr_avatar($t.uid)}" > </div> <div class="plnr"> <div class="plnrbt">{$t.author}</div> <p>{dr_sns_content($t.content)}</p> <div class="plnrtp"> <span class="plnrtp-time">{dr_fdate($t.inputtime)}</span> <a class="ds-post-reply" href="javascript:void(0);" onclick="dr_reply_show({$t.id}, '{$t.author}')"> <span class="icon-comments-o text-main"></span> 回复({count($t.rlist)}) </a> <a href="javascript:void(0);" onclick="dr_zc_comment({$t.id})"> <span class="icon-thumbs-o-up text-main"></span> 支持(<span id="dr_comment_zc_{$t.id}">{$t.support}</span>) </a> <a href="javascript:void(0);" onclick="dr_fd_comment({$t.id})"> <span class="icon-thumbs-o-down text-main"></span> 反对(<span id="dr_comment_fd_{$t.id}">{$t.oppose}</span>) </a> {if $member.adminid} <a href="javascript:void(0);" onclick="dr_delete_comment({$t.id})"> <span class="icon-times text-red"></span> 删除 </a> {/if} </div> </div> </div> <div id="ds-reset"> <div class="plk" id="dr_reply_{$t.id}" style="display:none;"></div> </div> </li> <!--判断如果有回复--> <ul class="xxpinglun"> <!--显示回复数据--> <li class="ds-post"> <div class="pllist"> <div class="pltx"> <img src="{dr_avatar($r.uid)}" > </div> <div class="plnr"> <div class="plnrbt">{$r.author}</div> <p>{dr_sns_content($r.content)}</p> </div> <div class="plnrtp"> <span class="plnrtp-time">{dr_fdate($r.inputtime)}</span> {if $member.adminid} <a href="javascript:void(0);" onclick="dr_delete_comment({$r.id})"> <span class="icon-times text-red"></span> 删除 </a> {/if} </div> </div> </li> </ul> <!--判断如果有回复 结束--> {/list} </ul> <div class="pingpage"> {$pages} </div> </div>
评论调用:怎么判断评论如果有回复 显示回复数据
这个评论是在内容页的,怎么调用
reply=$t.id 加上这个 无法调出数据
不加这个只能调出当前文章id的最新评论
reply=$id 把这个改成ID 也是不行调用不出来数据二开/定制/使用解答专家