正在显示
1 个修改的文件
包含
16 行增加
和
1 行删除
@@ -119,7 +119,7 @@ | @@ -119,7 +119,7 @@ | ||
119 | 119 | ||
120 | <!-- 底部 --> | 120 | <!-- 底部 --> |
121 | <div class="de_footer"> | 121 | <div class="de_footer"> |
122 | - <div class="de_footerLeft"> | 122 | + <div class="de_footerLeft" onclick="goods_collection({$data.id})"> |
123 | <div class="de_footerLeftLi"> | 123 | <div class="de_footerLeftLi"> |
124 | <div class="de_footerLeftImg"> | 124 | <div class="de_footerLeftImg"> |
125 | <img src="__TMPL__/public/assets/images/26.png" alt=""> | 125 | <img src="__TMPL__/public/assets/images/26.png" alt=""> |
@@ -136,6 +136,21 @@ | @@ -136,6 +136,21 @@ | ||
136 | </div> | 136 | </div> |
137 | </div> | 137 | </div> |
138 | <script src="__TMPL__/public/assets/js/base.js"></script> | 138 | <script src="__TMPL__/public/assets/js/base.js"></script> |
139 | +<script src="__TMPL__/public/assets/js/jquery.js"></script> | ||
140 | +<script> | ||
141 | + /** | ||
142 | + *点击收藏 | ||
143 | + */ | ||
144 | + function goods_collection(id){ | ||
145 | + $.post("{:url('Goodsdetails/goods_collection')}",{goods_id:id},function(data){ | ||
146 | + if(data){ | ||
147 | + alert('收藏成功'); | ||
148 | + }else{ | ||
149 | + alert('收藏失败'); | ||
150 | + } | ||
151 | + }); | ||
152 | + } | ||
153 | +</script> | ||
139 | </body> | 154 | </body> |
140 | 155 | ||
141 | </html> | 156 | </html> |
-
请 注册 或 登录 后发表评论