From 0288a3b3e55f31d2d2996e67bc26df2d7e90400b Mon Sep 17 00:00:00 2001 From: csk Date: Thu, 19 Jan 2017 11:37:00 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BD=93=E7=94=A8=E6=88=B7=E7=82=B9=E5=87=BB?= =?UTF-8?q?=E8=93=9D=E8=89=B2=E9=93=BE=E6=8E=A5=E6=97=B6=EF=BC=8C=E4=B9=9F?= =?UTF-8?q?=E5=8F=AF=E4=BB=A5=E5=B1=95=E5=BC=80=E4=B8=8B=E9=9D=A2=E7=9A=84?= =?UTF-8?q?=E6=96=87=E5=AD=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- css/cruise.css | 3 ++- js/cruise.js | 11 +++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/css/cruise.css b/css/cruise.css index 0f9188f8..2320828b 100644 --- a/css/cruise.css +++ b/css/cruise.css @@ -19,6 +19,7 @@ table.CruiseTable th { background:#9d9d9d; color:#fff; font-size:15px; text-shad table.CruiseTable td { font-size:14px; padding:10px 0 10px 10px; } table.CruiseTable tr.BgWhite { background-color:#fff; } table.CruiseTable tr.BgWhite td.wishlist, table.CruiseTable tr.BgGrey td.wishlist { text-align:center;} +td.wishlist img,.arrowup{cursor: pointer;} table.CruiseTable tr.BgWhiteBottom td{ background-color:#fff; border-bottom:1px solid #e0e0e0; font-size:18px; font-family:Trebuchet MS;} table.CruiseTable tr.BgGrey { background:#f7f6f6; } table.CruiseTable tr.BgGrey td.date input, table.CruiseTable tr.BgWhite td.date input { border: 1px solid #d1d1d1; background: url(/pic/calendar.png) no-repeat 98% 6px #fff; padding: 5px 5px; width: 100%; border-radius: 4px; color: #555; font-family: Verdana, Geneva, sans-serif; font-size:14px; } @@ -29,7 +30,7 @@ table.CruiseTable tr.BgBottom td.TravelerNumber select { text-align: center; bor table.CruiseTable tr.BgBottom td.TravelerNumber {font-family:Trebuchet MS;} .traveldetail { color:#a31022; font-size:13px; margin-left:15px;} table.CruiseTable tr.BgGreyCenter td{ background:#f7f6f6; border-bottom:1px solid #e0e0e0; text-align:center;} -table.CruiseTable td.TourName { color:#1f60a3; } +table.CruiseTable td.TourName { color:#1f60a3; cursor: pointer;} table.CruiseTable td .Price { color:#a31022;} table.CruiseTable tr.BottomGrey td{ background:#f7f6f6; padding: 20px; } table.CruiseTable tr.PriceBottom td{ background:#f7f6f6; text-align:center; font-size:18px;border-bottom:1px solid #e0e0e0; font-family:Trebuchet MS; } diff --git a/js/cruise.js b/js/cruise.js index fb1c48b6..d8f10813 100644 --- a/js/cruise.js +++ b/js/cruise.js @@ -10,6 +10,17 @@ var flg=true; flg=true; } + }); + $(".Father_tr .TourName").click(function(){ + if(flg){ + $(this).parents(".Father_tr").next().show(); + $(this).parents(".Father_tr").find(".wishlist img").attr("src","/image/arrow-up.png"); + flg=false; + }else{ + $(this).parents(".Father_tr").next().hide(); + $(this).parents(".Father_tr").find(".wishlist img").attr("src","/image/arrow-down.png"); + flg=true; + } }); $(".arrowup img").click(function(){ $(this).parents(".Son_tr").hide();