作者 anyv
1 个管道 的构建 通过 耗费 1 秒

1

@@ -132,6 +132,7 @@ @@ -132,6 +132,7 @@
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 +
135 $(function() { 136 $(function() {
136 $(".order_newsNum div").on("click", function(evt) { 137 $(".order_newsNum div").on("click", function(evt) {
137 if ($(this).text() == "-") { 138 if ($(this).text() == "-") {
@@ -159,25 +160,25 @@ @@ -159,25 +160,25 @@
159 // 单选 160 // 单选
160 $(".sh_cartround img").each(function() { 161 $(".sh_cartround img").each(function() {
161 $(this).on("click", function() { 162 $(this).on("click", function() {
162 - if ($(this).attr("src") == "__TMPL__/public/assets/images/39_0.png") {  
163 - $(this).attr("src", "__TMPL__/public/assets/images/39.png");  
164 - calcTotal2(); 163 + if ($(this).attr("src") == "img/39_0.png") {
  164 + $(this).attr("src", "img/39.png");
  165 + calcTotal();
165 } else { 166 } else {
166 - $(this).attr("src", "__TMPL__/public/assets/images/39_0.png");  
167 - calcTotal2(); 167 + $(this).attr("src", "img/39_0.png");
  168 + calcTotal();
168 } 169 }
169 }); 170 });
170 }); 171 });
171 172
172 // 全选 173 // 全选
173 $(".shop_carts1 img").click(function() { 174 $(".shop_carts1 img").click(function() {
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"); 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");
177 calcTotal(); 178 calcTotal();
178 } else { 179 } else {
179 - $(this).attr("src", "__TMPL__/public/assets/images/39_1.png");  
180 - $(".sh_cartround img").attr("src", "__TMPL__/public/assets/images/39_0.png"); 180 + $(this).attr("src", "img/39_1.png");
  181 + $(".sh_cartround img").attr("src", "img/39_0.png");
181 $(".zoji span").text("0"); 182 $(".zoji span").text("0");
182 } 183 }
183 }); 184 });
@@ -196,7 +197,7 @@ @@ -196,7 +197,7 @@
196 // 点击删除 197 // 点击删除
197 $(".shop_remove2").click(function() { 198 $(".shop_remove2").click(function() {
198 $($(".sh_cartround img")).each(function() { 199 $($(".sh_cartround img")).each(function() {
199 - if ($(this).attr("src") == "__TMPL__/public/assets/images/39.png") { 200 + if ($(this).attr("src") == "img/39.png") {
200 $(this) 201 $(this)
201 .parents("li") 202 .parents("li")
202 .remove(); 203 .remove();
@@ -238,6 +239,7 @@ @@ -238,6 +239,7 @@
238 $(".zoji span").html(totalPrice.toFixed(2)); 239 $(".zoji span").html(totalPrice.toFixed(2));
239 } 240 }
240 }); 241 });
  242 +
241 </script> 243 </script>
242 </body> 244 </body>
243 245