From 28bbe9c1d401189d830bd3cb177c4b6739b957e5 Mon Sep 17 00:00:00 2001 From: anyv <anyu@bronet.cn> Date: Tue, 4 Jun 2019 19:13:19 +0800 Subject: [PATCH] 1 --- public/themes/simpleboot3/portal/shopcart/shop_cart.html | 3 +++ 1 file changed, 3 insertions(+), 0 deletions(-) diff --git a/public/themes/simpleboot3/portal/shopcart/shop_cart.html b/public/themes/simpleboot3/portal/shopcart/shop_cart.html index 1577baa..d3f3071 100644 --- a/public/themes/simpleboot3/portal/shopcart/shop_cart.html +++ b/public/themes/simpleboot3/portal/shopcart/shop_cart.html @@ -179,6 +179,7 @@ calcTotal(); } else { $(this).attr("src", "__TMPL__/public/assets/images/39_0.png"); + $(this).parent().removeClass('add'); calcTotal(); } }); @@ -189,10 +190,12 @@ if ($(this).attr("src") == "__TMPL__/public/assets/images/39_1.png") { $(this).attr("src", "__TMPL__/public/assets/images/39.png"); $(".sh_cartround img").attr("src", "__TMPL__/public/assets/images/39.png"); + $('.sh_cartround').addClass('add'); calcTotal2(); } else { $(this).attr("src", "__TMPL__/public/assets/images/39_1.png"); $(".sh_cartround img").attr("src", "__TMPL__/public/assets/images/39_0.png"); + $('.sh_cartround').removeClass('add'); $(".zoji span").text("0"); } }); -- libgit2 0.24.0