index.html 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. {extend name="default/base/base_home" /}
  2. {block name="mall_main"}
  3. <link rel="stylesheet" href="{$Think.HOME_SITE_ROOT}/css/home_group.css">
  4. <div class="w1200">
  5. <div class="dsh-breadcrumb-layout" style="display: block;">
  6. <div class="dsh-breadcrumb wrapper"> <i class="iconfont">&#xe6ff;</i> <span> <a href="{:url('Index')}">{$Think.lang.homepage}</a> </span> <span class="arrow">></span> <span>{$Think.lang.text_groupbuy}</span></div>
  7. </div>
  8. <div class="dsg-container clearfix">
  9. <div class="dsg-category" id="dsgCategory">
  10. <h3>{$Think.lang.online_grab}</h3>
  11. <ul>
  12. {notempty name="$groupbuy_classes.name"}
  13. <?php $i = 0; $names = $groupbuy_classes['name']; foreach ((array) $groupbuy_classes['children'][0] as $v) { if (++$i > 6) break; ?>
  14. <li><a href="{:url('Showgroupbuy/groupbuy_list',['class'=>$v])}">{$names[$v]}</a></li>
  15. <?php } ?>
  16. {/notempty}
  17. </ul>
  18. <h3>{$Think.lang.virtual_grab}</h3>
  19. <ul>
  20. {notempty name="$groupbuy_vr_classes.name"}
  21. <?php $i = 0; $names = $groupbuy_vr_classes['name']; foreach ((array) $groupbuy_vr_classes['children'][0] as $v) { if (++$i > 6) break; ?>
  22. <li><a href="{:url('Showgroupbuy/vr_groupbuy_list',['vr_class'=>$v])}">{$names[$v]}</a></li>
  23. <?php } ?>
  24. {/notempty}
  25. </ul>
  26. </div>
  27. {notempty name="picArr"}
  28. <div class="dsg-slides-banner">
  29. <ul class="bd">
  30. {foreach name="picArr" item="p" }
  31. <li><a href="{$p.1}" target="_blank"><img class="lazyload" data-original="{:ds_get_pic('home/groupbuy/slider',$p.0)}" style="height: 300px"></a></li>
  32. {/foreach}
  33. </ul>
  34. <ul class="hd">
  35. {foreach $picArr as $p}
  36. <li></li>
  37. {/foreach}
  38. </ul>
  39. <a class="ctrl prev" href="javascript:void(0)">&lt;</a>
  40. <a class="ctrl next" href="javascript:void(0)">&gt;</a>
  41. </div>
  42. {/notempty}
  43. </div>
  44. <div class="group-list mt20">
  45. <div class="dsg-recommend-title">
  46. <h3>{$Think.lang.online_snap_up_recommendations}</h3>
  47. <a href="{:url('Showgroupbuy/groupbuy_list')}" class="more">{$Think.lang.check_out_more}</a></div>
  48. {notempty name="groupbuy"}
  49. <ul>
  50. {foreach name="groupbuy" item="groupbuy" }
  51. <li class="{$current}">
  52. <div class="dsg-list-content"> <a title="{$groupbuy.groupbuy_name}" href="{$groupbuy.groupbuy_url}" class="pic-thumb" target="_blank"><img class="lazyload" data-original="{:groupbuy_thumb($groupbuy['groupbuy_image'],'normal')}" alt=""></a>
  53. <h3 class="title"><a title="{$groupbuy.groupbuy_name}" href="{$groupbuy.groupbuy_url}" target="_blank">{$groupbuy.groupbuy_name}</a></h3>
  54. <?php list($integer_part, $decimal_part) = explode('.', $groupbuy['groupbuy_price']);?>
  55. <div class="item-prices"> <span class="price"><i>{$Think.lang.currency}</i>{$integer_part}<em>.{$decimal_part}</em></span>
  56. <div class="dock"><span class="limit-num">{$groupbuy.groupbuy_rebate}&nbsp;{$Think.lang.text_zhe}</span> <del class="orig-price">{$Think.lang.currency}{$groupbuy.goods_price}</del></div>
  57. <span class="sold-num"><em><?php echo $groupbuy['groupbuy_buy_quantity']+$groupbuy['virtual_quantity'];?></em>{$Think.lang.text_piece}{$Think.lang.text_buy}</span><a href="{$groupbuy.groupbuy_url}" target="_blank" class="buy-button">{$Think.lang.groupbuy_buy}</a></div>
  58. </div>
  59. </li>
  60. {/foreach}
  61. </ul>
  62. {else /}
  63. <div class="norecommend">{$Think.lang.snap_up_recommendations_wirelessly}</div>
  64. {/notempty}
  65. </div>
  66. <div class="group-list mt30">
  67. <div class="dsg-recommend-title">
  68. <h3>{$Think.lang.virtual_panic_buying_recommendation}</h3>
  69. <a href="{:url('Showgroupbuy/vr_groupbuy_list')}" class="more">{$Think.lang.check_out_more}</a></div>
  70. {notempty name="vr_groupbuy"}
  71. <ul>
  72. {foreach name="vr_groupbuy" item="groupbuy" }
  73. <li class="{$current}">
  74. <div class="dsg-list-content"> <a title="{$groupbuy.groupbuy_name}" href="{$groupbuy.groupbuy_url}" class="pic-thumb" target="_blank"><img class="lazyload" data-original="{:groupbuy_thumb($groupbuy['groupbuy_image'],'normal')}" alt=""></a>
  75. <h3 class="title"><a title="{$groupbuy.groupbuy_name}" href="{$groupbuy.groupbuy_url}" target="_blank">{$groupbuy.groupbuy_name}</a></h3>
  76. <?php list($integer_part, $decimal_part) = explode('.', $groupbuy['groupbuy_price']);?>
  77. <div class="item-prices"> <span class="price"><i>{$Think.lang.currency}</i>{$integer_part}<em>.{$decimal_part}</em></span>
  78. <div class="dock"><span class="limit-num">{$groupbuy.groupbuy_rebate}&nbsp;{$Think.lang.text_zhe}</span> <del class="orig-price">{$Think.lang.currency}{$groupbuy.goods_price}</del></div>
  79. <span class="sold-num"><em><?php echo $groupbuy['groupbuy_buy_quantity']+$groupbuy['virtual_quantity'];?></em>{$Think.lang.text_piece}{$Think.lang.text_buy}</span><a href="{$groupbuy.groupbuy_url}" target="_blank" class="buy-button">{$Think.lang.groupbuy_buy}</a></div>
  80. </div>
  81. </li>
  82. {/foreach}
  83. </ul>
  84. {else /}
  85. <div class="norecommend">{$Think.lang.no_virtual_panic_buying_recommendation}</div>
  86. {/notempty}
  87. </div>
  88. </div>
  89. <script src="{$Think.PLUGINS_SITE_ROOT}/jquery.SuperSlide.2.1.1.js"></script>
  90. <script>
  91. //轮播
  92. jQuery(".dsg-slides-banner").slide({mainCell: "ul", autoPlay: true, delayTime: 500,interTime: 5000});
  93. </script>
  94. {/block}