...
|
...
|
@@ -86,41 +86,28 @@ |
|
|
</div>
|
|
|
</div>
|
|
|
<div class="evalute" style="display:none">
|
|
|
<volist name="comment" id="vo">
|
|
|
<div class="evalute_list">
|
|
|
<div class="evalute_people">
|
|
|
<p class="people_img">
|
|
|
<img src="__INDEX__/img/people.png" alt="">
|
|
|
<img src="{$vo.avatar}" alt="">
|
|
|
</p>
|
|
|
<div class="people_info">
|
|
|
<p class="people_name">向昱筱</p>
|
|
|
<p class="people_date">2018-03-09</p>
|
|
|
<p class="people_name">{$vo.user_nickname}</p>
|
|
|
<p class="people_date">{$vo.create_time|date='Y-m-d',###}</p>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="evalute_text">
|
|
|
颜值高口感好,很新鲜,奶油一点都不腻,超清爽的口
|
|
|
感,奶香味很浓,非常喜欢。
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="evalute_list">
|
|
|
<div class="evalute_people">
|
|
|
<p class="people_img">
|
|
|
<img src="__INDEX__/img/people.png" alt="">
|
|
|
</p>
|
|
|
<div class="people_info">
|
|
|
<p class="people_name">向昱筱</p>
|
|
|
<p class="people_date">2018-03-09</p>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="evalute_text">
|
|
|
质量很好,很好的一次购物,味道不错!
|
|
|
{$vo.content}
|
|
|
</div>
|
|
|
</div>
|
|
|
</volist>
|
|
|
</div>
|
|
|
<div class="foot">
|
|
|
<div class="cartnum">
|
|
|
<p class="goodcart">
|
|
|
<img src="__INDEX__/img/goodcart.png" alt="">
|
|
|
<p class="num">12</p>
|
|
|
<p class="num">{$total}</p>
|
|
|
</p>
|
|
|
</div>
|
|
|
<p class="addcart">加入购物车</p>
|
...
|
...
|
@@ -159,7 +146,19 @@ |
|
|
})
|
|
|
//加入购物车
|
|
|
$(".addcart").click(function(){
|
|
|
window.location.href='__INDEX__/shopcar/cart.html'
|
|
|
$.ajax({
|
|
|
url:"{:url('cart/Cart/addCart')}",
|
|
|
data:{
|
|
|
gid:'{$id}',
|
|
|
num:1
|
|
|
},
|
|
|
type:"POST",
|
|
|
dataType:"JSON",
|
|
|
|
|
|
success: function () {
|
|
|
$(".num").html(parseInt($(".num").html())+1);
|
|
|
}
|
|
|
})
|
|
|
})
|
|
|
</script>
|
|
|
</body>
|
...
|
...
|
|