From 0ed8c9caa46e54630369663beb5bdf411fe017c6 Mon Sep 17 00:00:00 2001 From: cyc Date: Tue, 5 Dec 2017 17:33:02 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9js=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- js/cruise.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/js/cruise.js b/js/cruise.js index d8f10813..7574cda6 100644 --- a/js/cruise.js +++ b/js/cruise.js @@ -1,4 +1,5 @@ -var flg=true; +$(function(){ + var flg=true; $(".Father_tr .wishlist img").click(function(){ if(flg){ $(this).parents(".Father_tr").next().show(); @@ -107,6 +108,8 @@ var flg=true; total(); $("#total_tr").show(); }); +}); + //总价格计算 function total(){ var adult_num=$("select[name='adultsNumber']").val();