From b6227af9a58f9a0b87a0722647f2272a091af00a Mon Sep 17 00:00:00 2001
From: anyv <anyu@bronet.cn>
Date: Tue, 4 Jun 2019 17:48:37 +0800
Subject: [PATCH] 1

---
 public/themes/simpleboot3/portal/goodsdetails/goods_details.html |  9 ++++++++-
 public/themes/simpleboot3/portal/shopcart/shop_cart.html         |  4 ++--
 2 files changed, 10 insertions(+), 3 deletions(-)

diff --git a/public/themes/simpleboot3/portal/goodsdetails/goods_details.html b/public/themes/simpleboot3/portal/goodsdetails/goods_details.html
index 4298560..49efa1d 100644
--- a/public/themes/simpleboot3/portal/goodsdetails/goods_details.html
+++ b/public/themes/simpleboot3/portal/goodsdetails/goods_details.html
@@ -128,7 +128,7 @@
             </div>
         </div>
         <div class="de_footerRight">
-            <div class="de_footerRight1">加入购物车</div>
+            <div class="de_footerRight1" onclick="add_cart()">加入购物车</div>
             <a href="order_confirm.html">
                 <div class="de_footerRight2">立即购买</div>
             </a>
@@ -150,6 +150,13 @@
             }
         });
     }
+
+    /**
+     *点击加入购物车
+     */
+    function add_cart(){
+
+    }
 </script>
 </body>
 
diff --git a/public/themes/simpleboot3/portal/shopcart/shop_cart.html b/public/themes/simpleboot3/portal/shopcart/shop_cart.html
index 2f7123d..e9f3400 100644
--- a/public/themes/simpleboot3/portal/shopcart/shop_cart.html
+++ b/public/themes/simpleboot3/portal/shopcart/shop_cart.html
@@ -161,10 +161,10 @@
             $(this).on("click", function() {
                 if ($(this).attr("src") == "__TMPL__/public/assets/images/39_0.png") {
                     $(this).attr("src", "__TMPL__/public/assets/images/39.png");
-                    calcTotal();
+                    calcTotal2();
                 } else {
                     $(this).attr("src", "__TMPL__/public/assets/images/39_0.png");
-                    calcTotal();
+                    calcTotal2();
                 }
             });
         });
--
libgit2 0.24.0