Server : Apache System : Linux iZ2vcgyutqttsd1p850kl8Z 3.10.0-1160.92.1.el7.x86_64 #1 SMP Tue Jun 20 11:48:01 UTC 2023 x86_64 User : www ( 1000) PHP Version : 5.6.40 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv Directory : /www/wwwroot/saimikebio.com/themes/lingshi/library/ |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <div class="my-comment-pre"> <div class="tab-title"> <span>商品评价</span> </div> <div class="goods-content"> <ul> <li class="hpd"><div class="main-color">{$rank_num.rank_pa}%</div><p>好评度</p></li> <li class="pre"> <dl><dt>好评<span>({$rank_num.rank_pa}%)</span></dt><dd><div style="width:{$rank_num.rank_pa}%"></div></dd></dl> <dl><dt>中评<span>({$rank_num.rank_pb}%)</span></dt><dd><div style="width:{$rank_num.rank_pb}%"></div></dd></dl> <dl><dt>差评<span>({$rank_num.rank_pc}%)</span></dt><dd><div style="width:{$rank_num.rank_pc}%"></div></dd></dl> </li> {if $comment_tags} <li class="tag"> <dl> <dt>买家印象:</dt> <dd> <!--{foreach from=$comment_tags item=value key=tag_key}--> <span onClick="ShowMyComments_tag({$goods.goods_id},0,1,'{$value.tag_name}')"><a>{$value.tag_name}({$value.tag_num})</a></span> <!--{/foreach}--> </dd> </dl> </li> {/if} </ul> </div> </div> <div class="my-comment-tab"> <ul> <li id="mct_0" onClick="ShowMyComments({$goods.goods_id},0,1)" class="cur">全部评价<span>({$rank_num.rank_total})</span></li> <li id="mct_1" onClick="ShowMyComments({$goods.goods_id},1,1)">好评<span>({$rank_num.rank_a})</span></li> <li id="mct_2" onClick="ShowMyComments({$goods.goods_id},2,1)">中评<span>({$rank_num.rank_b})</span></li> <li id="mct_3" onClick="ShowMyComments({$goods.goods_id},3,1)">差评<span>({$rank_num.rank_c})</span></li> <li id="mct_4" onClick="ShowMyComments({$goods.goods_id},4,1)">用户晒单<span>({$rank_num.shaidan_num})</span></li> </ul> </div> <div class="my-comment-list clearfix" id="ECS_MYCOMMENTS"> </div> <script language="javascript"> function ShowMyComments_tag(goods_id, type, page, c_tag) { for (var i = 0; i <= 4 ; i ++) { document.getElementById("mct_"+i).className = (type == i) ? 'cur' : ''; } Ajax.call('goods_comment.php?act=list_json', 'goods_id=' + goods_id + '&type=' + type + '&page=' + page + '&c_tag=' + c_tag, ShowMyCommentsResponse, 'GET', 'JSON'); } function ShowMyComments(goods_id, type, page) { for (var i = 0; i <= 4 ; i ++) { document.getElementById("mct_"+i).className = (type == i) ? 'cur' : ''; } Ajax.call('goods_comment.php?act=list_json', 'goods_id=' + goods_id + '&type=' + type + '&page='+page, ShowMyCommentsResponse, 'GET', 'JSON'); } function ShowMyCommentsResponse(result) { if (result.error) { } try { var layer = document.getElementById("ECS_MYCOMMENTS"); layer.innerHTML = result.content; } catch (ex) { } } function show_good(comment_id) { Ajax.call('goods_comment.php?act=good_json', 'comment_id=' + comment_id, show_goodResponse, 'GET', 'JSON'); } function show_goodResponse(result) { if (result.error == 1) { alert("您已经评过分了哦!"); } else { var layer = document.getElementById("good_num_"+result.comment_id); layer.innerHTML = result.good_num; } } document.getElementById('mct_0').click(); </script>