Authored by OF1706

mini node same

... ... @@ -162,10 +162,11 @@
\{\{#carData\}\}
<div class="gobuy-notempty">
<div class="goods-list-wrapper">
<h3 class="rich-cart-title">最近加入的商品:</h3>
<ul class="goods-list">
\{\{#main_goods\}\}
\{{#notzero buy_number}}
<li class="goods-item \{\{@index\}\} \{\{#gt @index 4\}\} hide \{\{else\}\} test \{\{/gt\}\}">
<li class="goods-item \{\{#gt @index 4\}\} hide \{\{/gt\}\}" data-num="\{\{buy_number\}\}">
<a href="\{\{product_url\}\}">
<img src="\{\{default_img\}\}" alt="" class="goods-img" />
</a>
... ... @@ -218,7 +219,7 @@
<div class="go-full-cart">
<div>
<p data-role="totalinfo"
data-total="{{total}}">购物车里还有<span data-role="last-num">{{total}}</span>件商品</p>
data-total="\{\{total\}\}">购物车里还有<span data-role="last-num">\{\{total\}\}</span>件商品</p>
<a href="//www.yohobuy.com/cart/cart">查看我的购物车</a>
</div>
</div>
... ...
... ... @@ -1153,12 +1153,13 @@ function loadCartData() {
shoppingData,
strK;
$.getData('//www.yohobuy.com/common/shoppingCart', '', function(jsonData) {
$.getJSON('//www.yohobuy.com/cart/cart/minicart?callback=?', {}, function(jsonData) {
if (cartTpl === '') {
cartTpl = handlebars.compile($('#mini-cart-tpl').html());
}
$('#miniCartBox').children('.gobuy-wrapper').html(cartTpl({
carData: jsonData
carData: jsonData.data
}));
refreshCartNum();
... ...
... ... @@ -942,14 +942,23 @@
overflow: hidden;
}
.rich-cart-title {
font-size: 16px;
color: #000;
line-height: 16px;
margin: 0 26px;
padding: 18px 0;
border-bottom: 1px solid #dcdcdc;
}
.goods-list-wrapper {
width: 100%;
margin-bottom: 19px;
margin-bottom: 0;
overflow: hidden;
}
.goods-list {
margin-top: 40px;
margin-top: 0;
}
.goods-item {
... ...