...
|
...
|
@@ -119,7 +119,7 @@ |
|
|
|
|
|
<!-- 底部 -->
|
|
|
<div class="de_footer">
|
|
|
<div class="de_footerLeft">
|
|
|
<div class="de_footerLeft" onclick="goods_collection({$data.id})">
|
|
|
<div class="de_footerLeftLi">
|
|
|
<div class="de_footerLeftImg">
|
|
|
<img src="__TMPL__/public/assets/images/26.png" alt="">
|
...
|
...
|
@@ -136,6 +136,21 @@ |
|
|
</div>
|
|
|
</div>
|
|
|
<script src="__TMPL__/public/assets/js/base.js"></script>
|
|
|
<script src="__TMPL__/public/assets/js/jquery.js"></script>
|
|
|
<script>
|
|
|
/**
|
|
|
*点击收藏
|
|
|
*/
|
|
|
function goods_collection(id){
|
|
|
$.post("{:url('Goodsdetails/goods_collection')}",{goods_id:id},function(data){
|
|
|
if(data){
|
|
|
alert('收藏成功');
|
|
|
}else{
|
|
|
alert('收藏失败');
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
</script>
|
|
|
</body>
|
|
|
|
|
|
</html> |
|
|
\ No newline at end of file |
...
|
...
|
|