12345678910111213141516171819202122232425262728293031323334353637383940 |
- {extend name="default/base/base_home" /}
- {block name="mall_main"}
- <script src="{$Think.PLUGINS_SITE_ROOT}/jquery.countdown.js"></script>
- <div class="dsh-bargain w1200">
- {notempty name="bargain_list"}
- <div class="goods-list clearfix">
- <ul>
- {foreach name="bargain_list" item="value"}
- <li>
- <div class="goods-pic">
- <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}" />
- <span class="item-shadow"><img src="{$Think.HOME_SITE_URL}/qrcode?url={$value.bargain_url}"> 扫我砍价</span>
- </div>
- <div class="goods-name">{$value.bargain_goods_name}</div>
- <p>
- <span class="bargain_time"><i class="iconfont"></i>{$value.bargain_time}小时有效</span>最多购{$value.bargain_limit}件
- </p>
- <p>
- <em class="bargain_floorprice">{:ds_price_format_forlist($value['bargain_floorprice'])}</em>
- <em class="bargain_goods_price">{:ds_price_format_forlist($value['bargain_goods_price'])}</em>
- <em class="countdown" data-time="{$value.bargain_endtime|date='Y-m-d H:i:s'}">
- 距结束<span class="days">00</span>天 <span class="hours">01</span>:<span class="minutes">56</span>:<span class="seconds">23</span>
- </em>
- </p>
- </li>
- {/foreach}
- </ul>
- </div>
- <div class="pagination">{$show_page|raw}</div>
- {else /}
- <div class="no_results">{$Think.lang.bargain_no_record}</div>
- {/notempty}
- </div>
- <script type="text/javascript">
- //倒计时JS
- $(".countdown").each(function(){
- $(this).countdown();
- });
- </script>
- {/block}
|