index.html 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. {extend name="default/base/base_home" /}
  2. {block name="mall_main"}
  3. <script src="{$Think.PLUGINS_SITE_ROOT}/jquery.countdown.js"></script>
  4. <div class="dsh-bargain w1200">
  5. {notempty name="bargain_list"}
  6. <div class="goods-list clearfix">
  7. <ul>
  8. {foreach name="bargain_list" item="value"}
  9. <li>
  10. <div class="goods-pic">
  11. <img class="lazyload item-img" data-original="{$value.bargain_goods_image_url}" title="{$value.bargain_goods_name}" src="{$Think.HOME_SITE_ROOT}/images/loading.gif" alt="{$value.bargain_goods_name}" />
  12. <span class="item-shadow"><img src="{$Think.HOME_SITE_URL}/qrcode?url={$value.bargain_url}"> 扫我砍价</span>
  13. </div>
  14. <div class="goods-name">{$value.bargain_goods_name}</div>
  15. <p>
  16. <span class="bargain_time"><i class="iconfont">&#xe701;</i>{$value.bargain_time}小时有效</span>最多购{$value.bargain_limit}件
  17. </p>
  18. <p>
  19. <em class="bargain_floorprice">{:ds_price_format_forlist($value['bargain_floorprice'])}</em>
  20. <em class="bargain_goods_price">{:ds_price_format_forlist($value['bargain_goods_price'])}</em>
  21. <em class="countdown" data-time="{$value.bargain_endtime|date='Y-m-d H:i:s'}">
  22. 距结束<span class="days">00</span>天&nbsp;<span class="hours">01</span>:<span class="minutes">56</span>:<span class="seconds">23</span>
  23. </em>
  24. </p>
  25. </li>
  26. {/foreach}
  27. </ul>
  28. </div>
  29. <div class="pagination">{$show_page|raw}</div>
  30. {else /}
  31. <div class="no_results">{$Think.lang.bargain_no_record}</div>
  32. {/notempty}
  33. </div>
  34. <script type="text/javascript">
  35. //倒计时JS
  36. $(".countdown").each(function(){
  37. $(this).countdown();
  38. });
  39. </script>
  40. {/block}