正在显示
1 个修改的文件
包含
10 行增加
和
12 行删除
@@ -132,7 +132,6 @@ | @@ -132,7 +132,6 @@ | ||
132 | <script src="__TMPL__/public/assets/js/base.js"></script> | 132 | <script src="__TMPL__/public/assets/js/base.js"></script> |
133 | <script src="__TMPL__/public/assets/js/jquery.js"></script> | 133 | <script src="__TMPL__/public/assets/js/jquery.js"></script> |
134 | <script> | 134 | <script> |
135 | - | ||
136 | $(function() { | 135 | $(function() { |
137 | $(".order_newsNum div").on("click", function(evt) { | 136 | $(".order_newsNum div").on("click", function(evt) { |
138 | if ($(this).text() == "-") { | 137 | if ($(this).text() == "-") { |
@@ -160,11 +159,11 @@ | @@ -160,11 +159,11 @@ | ||
160 | // 单选 | 159 | // 单选 |
161 | $(".sh_cartround img").each(function() { | 160 | $(".sh_cartround img").each(function() { |
162 | $(this).on("click", function() { | 161 | $(this).on("click", function() { |
163 | - if ($(this).attr("src") == "img/39_0.png") { | ||
164 | - $(this).attr("src", "img/39.png"); | 162 | + if ($(this).attr("src") == "__TMPL__/public/assets/images/39_0.png") { |
163 | + $(this).attr("src", "__TMPL__/public/assets/images/39.png"); | ||
165 | calcTotal(); | 164 | calcTotal(); |
166 | } else { | 165 | } else { |
167 | - $(this).attr("src", "img/39_0.png"); | 166 | + $(this).attr("src", "__TMPL__/public/assets/images/39_0.png"); |
168 | calcTotal(); | 167 | calcTotal(); |
169 | } | 168 | } |
170 | }); | 169 | }); |
@@ -172,13 +171,13 @@ | @@ -172,13 +171,13 @@ | ||
172 | 171 | ||
173 | // 全选 | 172 | // 全选 |
174 | $(".shop_carts1 img").click(function() { | 173 | $(".shop_carts1 img").click(function() { |
175 | - if ($(this).attr("src") == "img/39_1.png") { | ||
176 | - $(this).attr("src", "img/39.png"); | ||
177 | - $(".sh_cartround img").attr("src", "img/39.png"); | ||
178 | - calcTotal(); | 174 | + if ($(this).attr("src") == "__TMPL__/public/assets/images/39_1.png") { |
175 | + $(this).attr("src", "__TMPL__/public/assets/images/39.png"); | ||
176 | + $(".sh_cartround img").attr("src", "__TMPL__/public/assets/images/39.png"); | ||
177 | + calcTotal2(); | ||
179 | } else { | 178 | } else { |
180 | - $(this).attr("src", "img/39_1.png"); | ||
181 | - $(".sh_cartround img").attr("src", "img/39_0.png"); | 179 | + $(this).attr("src", "__TMPL__/public/assets/images/39_1.png"); |
180 | + $(".sh_cartround img").attr("src", "__TMPL__/public/assets/images/39_0.png"); | ||
182 | $(".zoji span").text("0"); | 181 | $(".zoji span").text("0"); |
183 | } | 182 | } |
184 | }); | 183 | }); |
@@ -197,7 +196,7 @@ | @@ -197,7 +196,7 @@ | ||
197 | // 点击删除 | 196 | // 点击删除 |
198 | $(".shop_remove2").click(function() { | 197 | $(".shop_remove2").click(function() { |
199 | $($(".sh_cartround img")).each(function() { | 198 | $($(".sh_cartround img")).each(function() { |
200 | - if ($(this).attr("src") == "img/39.png") { | 199 | + if ($(this).attr("src") == "__TMPL__/public/assets/images/39.png") { |
201 | $(this) | 200 | $(this) |
202 | .parents("li") | 201 | .parents("li") |
203 | .remove(); | 202 | .remove(); |
@@ -239,7 +238,6 @@ | @@ -239,7 +238,6 @@ | ||
239 | $(".zoji span").html(totalPrice.toFixed(2)); | 238 | $(".zoji span").html(totalPrice.toFixed(2)); |
240 | } | 239 | } |
241 | }); | 240 | }); |
242 | - | ||
243 | </script> | 241 | </script> |
244 | </body> | 242 | </body> |
245 | 243 |
-
请 注册 或 登录 后发表评论