zhjx 6 rokov pred
rodič
commit
1998365564

+ 2 - 2
resources/views/web/order/result.blade.php

xqd xqd
@@ -303,7 +303,7 @@
                         var xiang = document.getElementById(chosec[i].id) 
                             console.log(xiang)
                         // zonger += Number(chose[i].price);
-                        var num = $("#"+xiang).parent().children(".youhui");
+                        var num = xiang.parent().children(".youhui");
                         console.log(parseInt(num.text()))
                         var price = parseInt(num.text())
                         zonger += price;
@@ -325,7 +325,7 @@
                         console.log(tao)
                         console.log($("#"+tao))
                         // zonger += Number(taocan[t].youhui);
-                        var num = $("#"+tao).parent().children(".youhui");
+                        var num = tao.parent().children(".youhui");
                         console.log(parseInt(num.text()))
                         var price = parseInt(num.text())
                         zonger += price;