cart.html 9.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184
  1. {include file="default/base/mall_top" /}
  2. <link rel="stylesheet" href="{$Think.HOME_SITE_ROOT}/css/home_cart.css">
  3. <script src="{$Think.HOME_SITE_ROOT}/js/goods_cart.js"></script>
  4. <div class="dsc-header">
  5. <div class="logo">
  6. <a href="{$Think.HOME_SITE_URL}"><img src="{:ds_get_pic(ATTACH_COMMON,$Think.config.ds_config.site_logo)}"/></a>
  7. </div>
  8. <ul class="dsc-flow">
  9. <li class="current"><i class="iconfont">&#xe69a;</i>
  10. <p>{$Think.lang.cart_index_ensure_order}</p>
  11. <sub></sub>
  12. <div class="hr"></div>
  13. </li>
  14. <li class=""><i class="iconfont">&#xe731;</i>
  15. <p>{$Think.lang.cart_index_ensure_info}</p>
  16. <sub></sub>
  17. <div class="hr"></div>
  18. </li>
  19. <li class=""><i class="iconfont">&#xe64f;</i>
  20. <p>{$Think.lang.cart_index_payment}</p>
  21. <sub></sub>
  22. <div class="hr"></div>
  23. </li>
  24. <li class=""><i class="iconfont">&#xe67e;</i>
  25. <p>{$Think.lang.cart_index_buy_finish}</p>
  26. <sub></sub>
  27. <div class="hr"></div>
  28. </li>
  29. </ul>
  30. </div>
  31. <div class="dsc-line"></div>
  32. <div class="dsc-main">
  33. <div class="dsc-title">
  34. <h3>{$Think.lang.cart_index_ensure_order}</h3>
  35. <h5>{$Think.lang.look_shopping_cart_list}</h5>
  36. </div>
  37. <form action="{:url('Buy/buy_step1')}" method="POST" id="form_buy" name="form_buy">
  38. <input type="hidden" value="1" name="ifcart">
  39. <table class="dsc-table-style" ds_type="table_cart">
  40. <thead>
  41. <tr>
  42. <th class="w50"><label>
  43. <input type="checkbox" checked value="1" id="selectAll">
  44. {$Think.lang.ds_select_all}</label></th>
  45. <th></th>
  46. <th>{$Think.lang.cart_index_store_goods}</th>
  47. <th class="w120">{$Think.lang.cart_index_price}({$Think.lang.ds_yuan})</th>
  48. <th class="w120">{$Think.lang.cart_index_amount}</th>
  49. <th class="w120">{$Think.lang.cart_index_sum}({$Think.lang.ds_yuan})</th>
  50. <th class="w80">{$Think.lang.cart_index_handle}</th>
  51. </tr>
  52. </thead>
  53. <?php foreach($store_cart_list as $store_id => $cart_list) {?>
  54. <tbody>
  55. <tr>
  56. <th colspan="7"><strong>{$Think.lang.cart_step1_store}:<a href="{:url('Store/index',['store_id'=>$store_id])}">{$cart_list[0]['store_name']}</a></strong> <span member_id="{$store_list[$store_id]['member_id']}"></span>
  57. {notempty name="$free_freight_list[$store_id]"}
  58. <div class="store-sale"><em><i class="iconfont">&#xe753;</i>{$Think.lang.cart_step1_transport_fee}</em>{$free_freight_list[$store_id]}&emsp;</div>
  59. {/notempty}
  60. </th>
  61. </tr>
  62. <!-- S one store list -->
  63. <?php foreach($cart_list as $cart_info) {?>
  64. <tr id="cart_item_{$cart_info.cart_id}" ds_group="{$cart_info.cart_id}" class="shop-list {if $cart_info.state}{else/}item_disabled{/if}">
  65. <td><input type="checkbox" {if $cart_info.state}checked{else/}disabled{/if} ds_type="eachGoodsCheckBox" value="{$cart_info.cart_id}|{$cart_info.goods_num}" id="cart_id{$cart_info.cart_id}" name="cart_id[]"></td>
  66. {if $cart_info.bl_id == '0'}
  67. <td class="w60"><a href="{:url('Goods/index',['goods_id'=>$cart_info.goods_id])}" target="_blank" class="dsc-goods-thumb"><img class="lazyload" data-original="{:goods_thumb($cart_info,240)}" alt="{$cart_info.goods_name}" /></a></td>
  68. {/if}
  69. <td class="tl" {if $cart_info.bl_id != '0'}colspan="2"{/if}><dl class="dsc-goods-info">
  70. <dt><a href="{:url('Goods/index',['goods_id'=>$cart_info.goods_id])}" target="_blank">{$cart_info.goods_name}</a></dt>
  71. {notempty name="$cart_info.ifxianshi"}
  72. <dd> <span class="xianshi">{$Think.lang.ds_mansong_flag}<strong>{$cart_info['xianshi_info']['xianshigoods_lower_limit']}</strong>{$Think.lang.unit_price_drop}<em>¥{$cart_info['xianshi_info']['down_price']}</em></span> </dd>
  73. {/notempty}
  74. {if isset($cart_info.ifgroupbuy)}
  75. <dd> <span class="groupbuy">{$Think.lang.ds_groupbuy}{if $cart_info.upper_limit},{$Think.lang.maximum_limit_purchase}<strong>{$cart_info.upper_limit}</strong>{$Think.lang.piece}{/if}</span></dd>
  76. {/if}
  77. {if $cart_info.bl_id != '0'}
  78. <dd><span class="buldling">{$Think.lang.single_set_drop}<em>¥{$cart_info.down_price}</em></span></dd>
  79. {/if}
  80. {notempty name="$cart_info.ifmgdiscount"}
  81. <dd><span class="mgdiscount">{$cart_info.mgdiscount_desc}</span></dd>
  82. {/notempty}
  83. <!-- S gift list -->
  84. {notempty name="$cart_info.gift_list"}
  85. <dd><span class="dsc-goods-gift">{$Think.lang.gift}</span>
  86. <ul class="dsc-goods-gift-list">
  87. {foreach name="$cart_info.gift_list" item="goods_info"}
  88. <li ds_group="{$cart_info.cart_id}"><a href="{:url('Goods/index',['goods_id'=>$goods_info.gift_goodsid])}" target="_blank" class="thumb" ><img src="{:goods_cthumb($goods_info['gift_goodsimage'],240,$store_id)}" alt="{$goods_info.gift_goodsname}" /></a>
  89. {/foreach}
  90. </li>
  91. </ul>
  92. </dd>
  93. {/notempty}
  94. <!-- E gift list -->
  95. </dl></td>
  96. <td class="w120"><em id="item{$cart_info.cart_id}_price">{$cart_info.goods_price}</em></td>
  97. {if $cart_info.state}
  98. <td class="w120 ws0"><a href="JavaScript:void(0);" onclick="decrease_quantity({$cart_info.cart_id});" title="{$Think.lang.cart_index_reduse}" class="add-substract-key tip">-</a>
  99. <input id="input_item_{$cart_info.cart_id}" value="{$cart_info.goods_num}" orig="{$cart_info.goods_num}" changed="{$cart_info.goods_num}" onkeyup="change_quantity({$cart_info.cart_id}, this);" type="text" class="text w20"/>
  100. <a href="JavaScript:void(0);" onclick="add_quantity({$cart_info.cart_id});" title="{$Think.lang.cart_index_increase}" class="add-substract-key tip" >+</a></td>
  101. {else/}
  102. <td class="w120">{$Think.lang.invalid}
  103. <input type="hidden" value="{$cart_info.cart_id}" name="invalid_cart[]"></td>
  104. {/if}
  105. <td class="w120">
  106. {if $cart_info.state}
  107. <em id="item{$cart_info.cart_id}_subtotal" ds_type="eachGoodsTotal">{$cart_info.goods_total}</em>
  108. {/if}
  109. </td>
  110. <td class="w80">
  111. {if $cart_info.bl_id == '0'}
  112. <a href="javascript:void(0)" onclick="collect_goods('{$cart_info.goods_id}');">{$Think.lang.cart_index_favorite}</a><br/>
  113. {/if}
  114. <a href="javascript:void(0)" onclick="drop_cart_item({$cart_info.cart_id});">{$Think.lang.cart_index_del}</a></td>
  115. </tr>
  116. <!-- S bundling goods list -->
  117. {notempty name="$cart_info.bl_goods_list"}
  118. {foreach name="$cart_info.bl_goods_list" item="goods_info" }
  119. <tr class="shop-list {if !$cart_info['state']}item_disabled{/if}" ds_group="{$cart_info.cart_id}">
  120. <td></td>
  121. <td class="w60"><a href="{:url('Goods/index',['goods_id'=>$goods_info.goods_id])}" target="_blank" class="dsc-goods-thumb"><img src="{:goods_cthumb($goods_info['goods_image'],240,$store_id)}" alt="{$goods_info.goods_name}" /></a></td>
  122. <td class="tl"><dl class="dsc-goods-info">
  123. <dt><a href="{:url('Goods/index',['goods_id'=>$goods_info.goods_id])}" target="_blank">{$goods_info.goods_name}</a> </dt>
  124. </dl></td>
  125. <td><em>{$goods_info.blgoods_price}</em></td>
  126. <td>{if !$cart_info['state']}{$Think.lang.invalid}{/if}</td>
  127. <td></td>
  128. <td><a href="javascript:void(0)" onclick="collect_goods('{$goods_info.goods_id}');">{$Think.lang.cart_index_favorite}</a><br/></td>
  129. </tr>
  130. {/foreach}
  131. {/notempty}
  132. <!-- E bundling goods list -->
  133. <?php } ?>
  134. <!-- E one store list -->
  135. <!-- S mansong list -->
  136. {notempty name="$mansong_rule_list[$store_id]"}
  137. <tr ds_group="{$cart_info.cart_id}">
  138. <td></td>
  139. <td class="tl" colspan="10"><div class="store-sale"><em> <i class="iconfont">&#xe753;</i> {$Think.lang.ds_mansong} </em>{:implode('<br/>', $mansong_rule_list[$store_id])}</div></td>
  140. </tr>
  141. {/notempty}
  142. <!-- E mansong list -->
  143. <tr>
  144. <td class="tr" colspan="7"><div class="dsc-store-account">
  145. <dl>
  146. <dt>{$Think.lang.total_store}:</dt>
  147. <dd><em ds_type="eachStoreTotal"></em>{$Think.lang.ds_yuan}</dd>
  148. </dl>
  149. </div></td>
  150. </tr>
  151. <?php }?>
  152. </tbody>
  153. <tfoot>
  154. <tr>
  155. <td colspan="7"><div class="dsc-all-account">{$Think.lang.cart_index_goods_sumary}<em id="cartTotal">{$cart_totals|default=0}</em>{$Think.lang.ds_yuan}</div></td>
  156. </tr>
  157. </tfoot>
  158. </table>
  159. </form>
  160. <div class="dsc-bottom"><a id="next_submit" href="javascript:void(0)" class="dsc-btn dsc-btn-acidblue fr"><i class="iconfont">&#xe731;</i>{$Think.lang.next_fillcheck_shopping_information}</a></div>
  161. <!-- 猜你喜欢 -->
  162. <div id="guesslike_div"></div>
  163. </div>
  164. <script type="text/javascript">
  165. $(function(){
  166. //猜你喜欢
  167. $('#guesslike_div').load("{:url('Search/get_guesslike')}", function(){
  168. $(this).show();
  169. });
  170. });
  171. </script>
  172. {include file="default/base/mall_footer" /}