index.html 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. {extend name="default/base/base_member" /}
  2. {block name="member_main"}
  3. <form id="goodsevalform" method="get" class="tc">
  4. <input type="hidden" name="type" value="{$Request.get.type}"/>
  5. {if $goodsevallist}
  6. <div class="dsm-evaluation-list">
  7. {foreach name="goodsevallist" item="list"}
  8. <div class="dsm-evaluation-timeline">
  9. <div class="date">{$list.geval_addtime|date="Y-m-d H:i:s"}</div>
  10. <div class="goods-thumb"><a target="_blank" href="{:url('Goods/index',['goods_id'=>$list.geval_goodsid])}">
  11. <img src="{:goods_cthumb($list.geval_goodsimage)}"> </a></div>
  12. <dl class="detail">
  13. <dt><a target="_blank" href="{:url('Goods/index',['goods_id'=>$list.geval_goodsid])}">{$list.geval_goodsname}</a> </dt>
  14. <dd>{$Think.lang.commodity_rating}:
  15. <div class="raty" style="display:inline-block;" data-score="{$list.geval_scores}"></div>
  16. </dd>
  17. <dd>{$Think.lang.member_evaluation_my_evaluation}:{$list.geval_content} </dd>
  18. <dd>
  19. {if $list.geval_image== ''}
  20. <a href="{:url('Memberevaluate/add_image',['geval_id'=>$list.geval_id])}" class="dsm-btn dsm-btn-orange">{$Think.lang.my_printout}</a>
  21. {/if}
  22. {if $list.geval_image !=''}
  23. {$Think.lang.print_picture}:
  24. <ul class="photos-thumb">
  25. {php}$image_array = explode(',', $list['geval_image']);{/php}
  26. {foreach name="image_array" item="value"}
  27. <li> <a data-lightbox="lightbox-image" href="{:sns_thumb($value)}"><img src="{:sns_thumb($value)}"></a></li>
  28. {/foreach}
  29. </ul>
  30. {/if}
  31. </dd>
  32. {if $list.geval_explain}
  33. <dd>
  34. <p style="color:#996600;padding:5px 0px;">[{$Think.lang.member_evaluation_explain}]{$list.geval_explain}</p>
  35. </dd>
  36. {/if}
  37. </dl>
  38. </div>
  39. {/foreach}
  40. </div>
  41. <div class="pagination mt30">{$show_page|raw}</div>
  42. {else}
  43. <div class="norecord">
  44. <div class="warning-option"><i></i><span>{$Think.lang.no_record}</span></div>
  45. </div>
  46. {/if}
  47. </form>
  48. <link rel="stylesheet" href="{$Think.PLUGINS_SITE_ROOT}/js/jquery.lightbox/css/lightbox.min.css">
  49. <script src="{$Think.PLUGINS_SITE_ROOT}/js/jquery.lightbox/js/lightbox.min.js"></script>
  50. <script src="{$Think.PLUGINS_SITE_ROOT}/js/jquery.raty/jquery.raty.min.js"></script>
  51. <script type="text/javascript">
  52. $(function() {
  53. $('.raty').raty({
  54. path: "{$Think.PLUGINS_SITE_ROOT}/js/jquery.raty/img",
  55. readOnly: true,
  56. score: function() {
  57. return $(this).attr('data-score');
  58. }
  59. });
  60. })
  61. </script>
  62. {/block}