groupbuy_detail.html 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232
  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/index')}">{$Think.lang.homepage}</a> </span> <span class="arrow">></span>
  7. {if $groupbuy_info['groupbuy_is_vr']}
  8. <span><a href="{:url('Showgroupbuy/vr_groupbuy_list')}">{$Think.lang.virtual_grab}</a></span>
  9. {else/}
  10. <span><a href="{:url('Showgroupbuy/groupbuy_list')}">{$Think.lang.online_grab}</a></span>
  11. {/if}
  12. <span class="arrow">></span> <span>{$groupbuy_info.groupbuy_name}</span> </div>
  13. </div>
  14. <div class="dsg-container wrapper">
  15. <div class="dsg-main {$groupbuy_info.state_flag}">
  16. <div class="dsg-group">
  17. <div class="dsg-item">
  18. <div class="pic"><img src="{:groupbuy_thumb($groupbuy_info['groupbuy_image'],'max')}" alt=""></div>
  19. <div class="info" id="main-nav-holder">
  20. <h2>{$groupbuy_info.groupbuy_name}</h2>
  21. <h3>{$groupbuy_info.groupbuy_remark}</h3>
  22. <div class="button"><span><em>{$Think.lang.currency}{$groupbuy_info.groupbuy_price}</em><del>{$Think.lang.currency}{$groupbuy_info.goods_price}</del></span><a href="{$groupbuy_info.goods_url}" target="_blank">{$groupbuy_info.button_text}&nbsp;&nbsp;&nbsp;&nbsp;<i class="iconfont">&#xe687;</i></a></div>
  23. <div class="require">
  24. <h4>{gt name='buy_limit' value='0'}{$Think.lang.maximum_purchase_per_person}<em>{$buy_limit}</em>{$Think.lang.piece},{else/}{$Think.lang.limited_quantity}{/gt}<em>{php}echo $groupbuy_info['virtual_quantity']+$groupbuy_info['groupbuy_buy_quantity'];{/php}</em>{$Think.lang.people_have_been_robbed}</h4>
  25. </div>
  26. <div class="time">
  27. {notempty name="groupbuy_info.count_down"}
  28. <!-- 倒计时 距离本期结束 -->
  29. <i class="iconfont">&#xe736;</i>{$Think.lang.remaining_time}:<span id="d1">0</span><strong>{$Think.lang.text_tian}</strong><span id="h1">0</span><strong>{$Think.lang.text_hour}</strong><span id="m1">0</span><strong>{$Think.lang.text_minute}</strong><span id="s1">0</span><strong>{$Think.lang.text_second}</strong>
  30. <script type="text/javascript">
  31. var tms = [];
  32. var day = [];
  33. var hour = [];
  34. var minute = [];
  35. var second = [];
  36. tms[tms.length] = "{$groupbuy_info.count_down}";
  37. day[day.length] = "d1";
  38. hour[hour.length] = "h1";
  39. minute[minute.length] = "m1";
  40. second[second.length] = "s1";
  41. function groupbuyTakeCount() {
  42. for (var i = 0, j = tms.length; i < j; i++) {
  43. tms[i] -= 1;
  44. //计算天、时、分、秒、
  45. var days = Math.floor(tms[i] / (1 * 60 * 60 * 24));
  46. var hours = Math.floor(tms[i] / (1 * 60 * 60)) % 24;
  47. var minutes = Math.floor(tms[i] / (1 * 60)) % 60;
  48. var seconds = Math.floor(tms[i] / 1) % 60;
  49. if (days < 0)
  50. days = 0;
  51. if (hours < 0)
  52. hours = 0;
  53. if (minutes < 0)
  54. minutes = 0;
  55. if (seconds < 0)
  56. seconds = 0;
  57. //将天、时、分、秒插入到html中
  58. document.getElementById(day[i]).innerHTML = days;
  59. document.getElementById(hour[i]).innerHTML = hours;
  60. document.getElementById(minute[i]).innerHTML = minutes;
  61. document.getElementById(second[i]).innerHTML = seconds;
  62. }
  63. }
  64. setInterval(groupbuyTakeCount, 1000);
  65. </script>
  66. {/notempty}
  67. </div>
  68. </div>
  69. <div class="clear"></div>
  70. </div>
  71. </div>
  72. </div>
  73. <div class="dsg-layout-l">
  74. <div class="dsg-title-bar">
  75. <ul class="tabs-nav">
  76. <li class="tabs-selected"><a href="javascript:void(0);">{$Think.lang.goods_info}</a></li>
  77. <li><a href="javascript:void(0);">{$Think.lang.buyer_list}</a></li>
  78. <li><a href="javascript:void(0);">{$Think.lang.product_evaluation}({$evaluate_info.all})</a></li>
  79. </ul>
  80. </div>
  81. <div class="dsg-detail-content">
  82. {if $groupbuy_info['groupbuy_is_vr']}
  83. <div class="dsg-instructions">
  84. <h4>{$Think.lang.use_statement}</h4>
  85. <ul>
  86. <li>
  87. {$Think.lang.explanatory_text1}
  88. <time>{$groupbuy_info.groupbuy_endtime|date="Y-m-d H:i:s"}</time>
  89. {if $goods_info['virtual_indate'] > 0}
  90. {$Think.lang.explanatory_text2}<time>{$goods_info.virtual_indate|date="Y-m-d H:i"}</time>
  91. {$Think.lang.explanatory_text3}
  92. {/if}
  93. </li>
  94. <li>{$Think.lang.explanatory_text4}</li>
  95. {if $buy_limit > 0}
  96. <li>{$Think.lang.explanatory_text5}<strong>{$buy_limit}</strong>{$Think.lang.explanatory_text6}</li>
  97. {/if}
  98. </ul>
  99. </div>
  100. {/if}
  101. <div class="dsg-intro">{:htmlspecialchars_decode($groupbuy_info.groupbuy_intro)}</div>
  102. </div>
  103. <div id="groupbuy_order" class="dsg-detail-content hide"></div>
  104. <div class="dsg-detail-content hide">
  105. <div class="dsg-evaluate">
  106. <div class="top">
  107. <div class="rate">
  108. <p><strong>{$evaluate_info.good_percent}</strong><sub>%</sub>{$Think.lang.praise}</p>
  109. <span>{$Think.lang.common}{$evaluate_info.all}{$Think.lang.people_participation_score}</span></div>
  110. <div class="percent">
  111. <dl>
  112. <dt>{$Think.lang.praise}<em>({$evaluate_info.good_percent}%)</em></dt>
  113. <dd><i style="width: {$evaluate_info.good_percent}%"></i></dd>
  114. </dl>
  115. <dl>
  116. <dt>{$Think.lang.medium_rating}<em>({$evaluate_info.normal_percent}%)</em></dt>
  117. <dd><i style="width: {$evaluate_info.normal_percent}%"></i></dd>
  118. </dl>
  119. <dl>
  120. <dt>{$Think.lang.poor_rating}<em>({$evaluate_info.bad_percent}%)</em></dt>
  121. <dd><i style="width: {$evaluate_info.bad_percent}%"></i></dd>
  122. </dl>
  123. </div>
  124. <div class="btns"><span>{$Think.lang.goods_evaluated}</span>
  125. <p><a href="{if $groupbuy_info['groupbuy_is_vr']}{:url('Membervrorder/index')}{else/}{:url('Memberorder/index')}{/if}" class="dsg-btn dsg-btn-orange" target="_blank"><i class="iconfont">&#xe71b;</i>{$Think.lang.evaluation_goods}</a></p>
  126. </div>
  127. </div>
  128. <!-- 商品评价内容部分 -->
  129. <div id="groupbuy_evaluate" class="dsg-evaluate-main"></div>
  130. </div>
  131. </div>
  132. </div>
  133. <div class="dsg-layout-r">
  134. {if !$store_info['is_platform_store'] || $groupbuy_info['groupbuy_is_vr']}
  135. <div class="dsg-store">
  136. <div class="title">{$Think.lang.store_info}</div>
  137. <div class="content">
  138. <div class="dsg-store-info">
  139. <dl class="name">
  140. <dt>{$Think.lang.captions_merchants|raw}:</dt>
  141. <dd> {$groupbuy_info.store_name}</dd>
  142. </dl>
  143. {if !$store_info['is_platform_store']}
  144. <dl class="all-rate">
  145. <dt>{$Think.lang.composite_score}:</dt>
  146. <dd>
  147. <div class="rating"><span style=" width:{$store_info.store_credit_percent}%"></span></div>
  148. <em>{$store_info.store_credit_average}</em>{$Think.lang.credit_unit} </dd>
  149. </dl>
  150. <div class="detail-rate">
  151. <h5><strong>{$Think.lang.store_dynamic_score}</strong>{$Think.lang.compared_with_industry}</h5>
  152. <ul class="rate">
  153. {foreach name="$store_info.store_credit" item="value" }
  154. <li> {$value.text}<span class="credit">{$value.credit} {$Think.lang.credit_unit}</span> <span class="{$value.percent_class|default=''}"><i></i>{$value.percent_text|default=''}<em>{$value.percent|default=''}</em></span> </li>
  155. {/foreach}
  156. </ul>
  157. </div>
  158. {/if}
  159. <dl class="messenger">
  160. <dt>{$Think.lang.online_customer_service}:</dt>
  161. <dd member_id="{$store_info.member_id}">
  162. {notempty name="$store_info.store_qq"}
  163. <a target="_blank" href="{$Think.HTTP_TYPE}wpa.qq.com/msgrd?v=3&uin={$store_info.store_qq}&site=qq&menu=yes" title="QQ: {$store_info.store_qq}"><img border="0" src="{$Think.HTTP_TYPE}wpa.qq.com/pa?p=2:{$store_info.store_qq}:52" style=" vertical-align: middle;"/></a>
  164. {/notempty}
  165. {notempty name="store_info.store_ww"}
  166. <a target="_blank" href="http://amos.im.alisoft.com/msg.aw?v=2&amp;uid={$store_info.store_ww}&site=cntaobao&s=1; ?>" ><img border="0" src="http://amos.im.alisoft.com/online.aw?v=2&uid={$store_info.store_ww}&site=cntaobao&s=2;?>" alt="{$Think.lang.ds_message_me}" style=" vertical-align: middle;"/></a>
  167. {/notempty}
  168. </dd>
  169. </dl>
  170. <div class="goto"> <a href="{:url('Store/index',['store_id'=>$groupbuy_info.store_id])}" >{$Think.lang.enter_stores}</a></div>
  171. </div>
  172. </div>
  173. </div>
  174. {/if}
  175. <div class="dsg-module-sidebar">
  176. <div class="title">{$Think.lang.current_hot}</div>
  177. <div class="content">
  178. <div class="dsg-group-command">
  179. {php}$hot_groupbuy_count = 1;{/php}
  180. {notempty name="commended_groupbuy_list"}
  181. {foreach name="commended_groupbuy_list" item="hot_groupbuy" }
  182. <dl {if $hot_groupbuy_count === 1}style="border:none"{/if}{php}$hot_groupbuy_count++;{/php} >
  183. <dt class="name"><a href="{$hot_groupbuy.groupbuy_url}" target="_blank">{$hot_groupbuy.groupbuy_name}</a></dt>
  184. <dd class="pic-thumb"><a href="{$hot_groupbuy.groupbuy_url}" target="_blank"><img src="{:groupbuy_thumb($hot_groupbuy['groupbuy_image1'],'max')}"></a></dd>
  185. <dd class="item"><a href="{$hot_groupbuy.groupbuy_url}" target="_blank">{$Think.lang.to_see}</a> <span class="price">{$Think.lang.currency}{$hot_groupbuy.groupbuy_price}</span> </dd>
  186. </dl>
  187. {/foreach}
  188. {/notempty}
  189. </div>
  190. </div>
  191. </div>
  192. </div>
  193. </div>
  194. <script src="{$Think.PLUGINS_SITE_ROOT}/jquery.ajaxContent.pack.js" type="text/javascript"></script>
  195. <script src="{$Think.PLUGINS_SITE_ROOT}/js/jquery.raty/jquery.raty.min.js"></script>
  196. <script>
  197. $(function(){
  198. //首页Tab标签卡滑门切换
  199. $(".tabs-nav > li > a").on('mouseover', (function(e) {
  200. if (e.target == this) {
  201. var tabs = $(this).parent().parent().children("li");
  202. var panels = $(this).parent().parent().parent().parent().children(".dsg-detail-content");
  203. var index = $.inArray(this, $(this).parent().parent().find("a"));
  204. if (panels.eq(index)[0]) {
  205. tabs.removeClass("tabs-selected").eq(index).addClass("tabs-selected");
  206. panels.addClass("hide").eq(index).removeClass("hide");
  207. }
  208. }
  209. }));
  210. $("#groupbuy_order").load("{:url('Showgroupbuy/groupbuy_order',['group_id'=>$groupbuy_info.groupbuy_id,'is_vr'=>$groupbuy_info.groupbuy_is_vr])}");
  211. $("#groupbuy_evaluate").load("{:url('Showgroupbuy/groupbuy_evaluate',['commonid'=>$groupbuy_info.goods_commonid])}");
  212. });
  213. </script>
  214. </div>
  215. {/block}