人人商城

index.html 1.9KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. {template 'common/_header'}
  2. <div class="lynn-banner" style="background: {$casebanner['background']}">
  3. <div class="lynn-banner-info">
  4. <img src="{php echo pctomedia($casebanner['casebanner'])}" alt="">
  5. </div>
  6. </div>
  7. <div class="list-container" style="padding: 0 0 56px;">
  8. <div class="lynn-case-menu">
  9. <ul class="lynn-case-menu-ul">
  10. <li><a href="{php echo webUrl(array('case/index'))}" class="{if empty($_GPC['cate'])}active{/if}">全部</a></li>
  11. {loop $category $index $item}
  12. <li><a href="{php echo webUrl(array('case/index','cate'=>$item['id']))}" class="{if $_GPC['cate'] == $item['id']}active{/if}">{$item['name']}</a></li>
  13. {/loop}
  14. </ul>
  15. </div>
  16. <div class="lynn-case-list">
  17. <ul class="lynn-case-list-ul">
  18. {loop $articles $index $item}
  19. <li>
  20. <a href="javascript:void(0);">
  21. <img src="{php echo pctomedia($item['thumb'])}" class="case-img" alt="{$item['title']}">
  22. <p>{$item['title']}</p>
  23. <div class="lynn-case-slider">
  24. {$item['description']}
  25. </div>
  26. <span class="rcode">
  27. <img src="{php echo pctomedia($item['qr'])}" width="142" height="142" alt="{$item['title']}">
  28. <p>扫面二维码关注店铺</p>
  29. </span>
  30. </a>
  31. </li>
  32. {/loop}
  33. </ul>
  34. {if !$articles}暂无内容!{/if}
  35. {$pager}
  36. </div>
  37. </div>
  38. {template 'common/_footer'}
  39. <script type="text/javascript">
  40. $(function(){
  41. $(".lynn-case-list-ul li a").on("mouseenter",function(){
  42. $(this).find(".rcode").show()
  43. }).on("mouseleave",function(){
  44. $(this).find(".rcode").hide()
  45. })
  46. })
  47. </script>
  48. </body>
  49. </html>