赵鹏 6 years ago
commit 349fba0308

@ -53,12 +53,12 @@ p.chinatourp, h1.chinatourh1, h2.chinatourh2, .immersionta { text-align: center;
line-height: 27px; line-height: 27px;
display: block; display: block;
width: 100%; width: 100%;
height: 35px;font-size: 24px; height: 35px;font-size: 23px;
color: #000; color: #000;
margin-bottom: 40px; margin-bottom: 40px;
font-weight: 300; font-weight: 400;
} }
.beijingtourname a { text-decoration: none;} .beijingtourname a { text-decoration: none; color: #000;}
.beijingtourname a:hover { color: #a31022;} .beijingtourname a:hover { color: #a31022;}
.tourroute { font-size: 16px; .tourroute { font-size: 16px;
display: block; height: 45px;} display: block; height: 45px;}

@ -2,7 +2,7 @@
/* CSS Document */ /* CSS Document */
/* H2 H3 title style */ /* H2 H3 title style */
#mainContentRight h2.first { margin-top:0; } #mainContentRight h2.first { margin-top:0; }
#mainContentRight h2 { font-size: 28px; margin: 50px 0 15px; color:#444; } #mainContentRight h2 { font-size: 28px; margin: 50px 0 30px; color:#444; }
h2 a { font-size: 28px;} h2 a { font-size: 28px;}
#mainContentRight h3 { font-size: 22px; margin: 40px 0 15px; font-weight:400; color:#444; } #mainContentRight h3 { font-size: 22px; margin: 40px 0 15px; font-weight:400; color:#444; }
#mainContentRight h3 strong { font-weight: normal !important } #mainContentRight h3 strong { font-weight: normal !important }
@ -330,7 +330,7 @@ h2.blackTitle { color: #333; }
height: 100%;} height: 100%;}
.topdetail {background: #f1f1f1; padding: 20px; .topdetail {background: #f1f1f1; padding: 20px;
height: 100%; border-radius: 0 4px 4px 0;} height: 100%; border-radius: 0 4px 4px 0;}
.recotourtitle {display: block; font-size: 22px; font-weight: 600; text-transform: uppercase; margin-bottom: 15px; color:#000;} .recotourtitle {display: block; font-size: 22px; font-weight: 600; margin-bottom: 15px; color:#000;}
.recotourtitle a { text-decoration: none;} .recotourtitle a { text-decoration: none;}
.recotourtitle a:hover { color: #a31022;} .recotourtitle a:hover { color: #a31022;}
.recotourday {color:#000; text-transform: uppercase; font-size: 18px;display: block;} .recotourday {color:#000; text-transform: uppercase; font-size: 18px;display: block;}
@ -341,7 +341,7 @@ h2.blackTitle { color: #333; }
.tourrecobm {margin-bottom: 20px;} .tourrecobm {margin-bottom: 20px;}
.tourrecobm img.bmtourcover {border-radius: 4px 4px 0 0; height: 210px;} .tourrecobm img.bmtourcover {border-radius: 4px 4px 0 0; height: 210px;}
.tourbmdetail {background: #f1f1f1; border-radius: 0 0 4px 4px; padding:20px;} .tourbmdetail {background: #f1f1f1; border-radius: 0 0 4px 4px; padding:20px;}
.tourbmname {color: #000; text-transform: uppercase; font-size:20px; font-weight: 300; display: block;} .tourbmname {color: #000; font-size:20px; font-weight: 300; display: block;}
.tourbmname a { text-decoration: none;} .tourbmname a { text-decoration: none;}
.tourbmname a:hover { color: #a31022;} .tourbmname a:hover { color: #a31022;}
.tourbmday {border:1px solid #555; padding: 2px 8px; font-size: 15px; color: #555; border-radius: 4px; margin-top: 10px; .tourbmday {border:1px solid #555; padding: 2px 8px; font-size: 15px; color: #555; border-radius: 4px; margin-top: 10px;
@ -368,7 +368,7 @@ a.recoarticlelink:hover {
transform: scale(1.02); transform: scale(1.02);
box-shadow: 0px 9px 100px -7px rgba(0,0,0, 0.36);} box-shadow: 0px 9px 100px -7px rgba(0,0,0, 0.36);}
.recobg {position: absolute; background: url(https://data.chinahighlights.com/pic/article/article-reco-middle-bg.png) no-repeat left; color: #fff; width: 100%; height: 100%; bottom:0; padding: 15px 0 15px 15px; border-radius: 4px;} .recobg {position: absolute; background: url(https://data.chinahighlights.com/pic/article/article-reco-middle-bg.png) no-repeat left; color: #fff; width: 100%; height: 100%; bottom:0; padding: 15px 0 15px 15px; border-radius: 4px;}
.infotmdetail {display: block; border-bottom:1px solid #f1f1f1; padding-bottom: 40px; margin-bottom: 20px;} .infotmdetail {display: block; border-bottom:1px solid #f1f1f1; padding-bottom: 40px; margin-top: 50px;}
.infotmword {font-size: 25px; font-weight:300; text-align:center; display: block;margin-bottom: 20px;} .infotmword {font-size: 25px; font-weight:300; text-align:center; display: block;margin-bottom: 20px;}
.infotmbt {font-size: 20px; font-weight:300; text-align:center; display: block;} .infotmbt {font-size: 20px; font-weight:300; text-align:center; display: block;}
.infotmbt a {color:#a31022;} .infotmbt a {color:#a31022;}
@ -635,7 +635,7 @@ h2.tipsTitle .numberStyle { font-size: 22px; font-weight: bold; color: #a31022;
#articleRecommend .articleList { line-height: 16px; margin-bottom: 10px; } #articleRecommend .articleList { line-height: 16px; margin-bottom: 10px; }
#articleRecommend .articleList a { font-size: 13px; text-decoration: none; color: #333; } #articleRecommend .articleList a { font-size: 13px; text-decoration: none; color: #333; }
#articleRecommend .articleList .articlePhoto { display: block } #articleRecommend .articleList .articlePhoto { display: block }
#articleRecommend h2 { text-transform: uppercase;}
@media(min-width:1000px) { @media(min-width:1000px) {
#articleRecommend .articleList .articlePhoto { #articleRecommend .articleList .articlePhoto {
max-height: 120px !important; max-height: 120px !important;

@ -770,7 +770,7 @@ padding-left: 20px;
.InquiryFormBox input.EmailAddress { background: url(//data.chinahighlights.com/pic/input-email.png) no-repeat 15px; padding-left: 50px;} .InquiryFormBox input.EmailAddress { background: url(//data.chinahighlights.com/pic/input-email.png) no-repeat 15px; padding-left: 50px;}
.InquiryFormBox p { margin-bottom: 20px !important} .InquiryFormBox p { margin-bottom: 20px !important}
.TourInfo { padding: 20px;} .TourInfo { padding: 20px;}
..TourInfo .fa { margin-right: 10px;}
.fa-bed { font-size: 21px; margin-right: 10px; color: #c1c1c1; .fa-bed { font-size: 21px; margin-right: 10px; color: #c1c1c1;
margin-top: 2px;} margin-top: 2px;}
.fa-cutlery { font-size: 21px; color: #c1c1c1; margin-top: 2px;} .fa-cutlery { font-size: 21px; color: #c1c1c1; margin-top: 2px;}
@ -895,4 +895,17 @@ min.php?f=/publ…628745538:1837
background: url(/pic/quote-right.png) no-repeat right bottom / 18px 14px; background: url(/pic/quote-right.png) no-repeat right bottom / 18px 14px;
display:block;margin-top:15px; display:block;margin-top:15px;
} }
.highlightscontent { display:flex;justify-content:center;}
.highlightsdetail { float:left;padding:0 30px;margin-top:15px;margin-bottom:40px;}
.highlightsdetail img {width:200px;height:200px;border-radius:50%;margin:0 auto;}
.highlightsinfo { width:250px;display:block;text-align:center;margin-top:10px;font-size:17px;}
.onedayroute { display:block;margin-bottom:90px;}
.titlebg {background:#d2d2d2;border-radius:50%;width:50px;height:50px;display:block;float:left;position:relative;margin-right:20px;}
.titlebg .fa {position:absolute;right:24%;bottom:30%;font-size:22px;color:#6c6c6c;}
.onedaytitle {font-size:22px;display:block;margin-bottom:15px;color:#000;font-weight:300;padding-top:10px;}
.onedayinfo {border-left:2px dashed #d2d2d2;padding-left:30px;margin-left:25px;margin-bottom:-25px;}
.tourpic {display:block;padding-bottom:60px;}
.onedayta {padding:80px 0;margin-bottom:-20px;background:#f1f1f1;display:block;margin-top:30px;}
i.fa.fa-lightbulb-o {
font-size: 28px;
}

@ -649,4 +649,4 @@ p strong { color: #555 !important }
background: #fff; background: #fff;
border: #fff; border: #fff;
width: 100%; width: 100%;
height: 100%;} height: 100%;transition-duration: 0.8s;}

@ -0,0 +1,92 @@
$(function() {
String.prototype.capitalize = function() {
return this.replace(/^\S/, function(s) {
return s.toUpperCase();
});
}
$("a[minus]").each(function(index, element) {
$(element).click(function() {
var targetId = $(this).data("target");
var $targetInput = $("#" + targetId);
var minVal = $targetInput.data("min");
var inputVal = parseInt($targetInput.val());
if (inputVal > minVal) {
inputVal -= 1;
$targetInput.val(inputVal);
}
});
});
$("a[plus]").each(function(index, element) {
$(element).click(function() {
var targetId = $(this).data("target");
var $targetInput = $("#" + targetId);
var maxVal = $targetInput.data("max");
var inputVal = parseInt($targetInput.val());
if (inputVal < maxVal) {
inputVal += 1;
$targetInput.val(inputVal);
}
});
});
var $realname = $('#realname');
$("#realname").blur(function() {
$realname.val($realname.val().capitalize());
});
$('.whoTravel :input').focus(function(){
$('.whoTravel').children('.requiredArea').remove();
});
$('#starting_date').focus(function() {
$('.travelDays').children('.requiredArea').remove();
});
$('#starting_date').focus(function() {
$('.datesArrival').children('.requiredArea').remove();
});
$('input[name="hotel"]').click(function() {
$('.hotelBlock').children('.requiredArea').remove();
});
$('input[name="HotelName"]').focus(function() {
$('.hotelBlock').children('.requiredArea').remove();
});
$('input[name="travelstyle"]').click(function() {
$('.travelBlock').children('.requiredArea').remove();
});
$('input[name="realname"],input[name="nationality"],input[name="email"]').focus(function() {
$(this).parents('.personalInfo').children('.requiredArea').remove();
});
var substringMatcher = function(strs) {
return function findMatches(q, cb) {
if (q == '') {
return cb(
["United States", "Canada", "Australia", "United Kingdom", "Germany",
"France", "Italy", "Spain", "China", "Singapore", "Malaysia"]);
}
var matches, substringRegex;
matches = [];
substrRegex = new RegExp(q, 'i');
$.each(strs, function(i, str) {
if (substrRegex.test(str)) {
matches.push(str);
}
});
cb(matches);
};
};
var nationality_map = ["afghanistan", "albania", "algeria", "american samoa", "andorra", "angola", "anguilla", "antarctica", "antigua and barbuda", "argentina", "armenia", "aruba", "australia", "austria", "azerbaijan", "bahamas", "bahrain", "bangladesh", "barbadian", "barbados", "belarus", "belgium", "belize", "benin", "bermuda", "bhutan", "bolivia", "botswana", "bouvet island", "brazil", "british indian ocean territory", "brunei darussalam", "bulgaria", "burkina faso", "burundi", "cambodia", "cameroon", "canada", "cape verde", "cayman islands", "central african republic", "chad", "chile", "china", "china HK", "christmas island", "colombia", "comoros", "congo", "cook islands", "costa rica", "croatia", "cuba", "cyprus", "czech republic", "czechoslovakia", "denmark", "djibouti", "dominica", "dominican republic", "east timor", "ecuador", "egypt", "el salvador", "equatorial guinea", "eritrea", "estonia", "ethiopia", "falkland islands", "faroe islands", "fiji", "finland", "france", "french guiana", "french polynesia", "gabon", "gambia", "georgia", "germany", "ghana", "gibraltar", "greece", "greenland", "grenada", "guadeloupe", "guam", "guatemala", "guernsey", "guinea", "guinea-bissau", "guyana", "haiti", "honduras", "hong kong", "hungary", "iceland", "india", "indonesia", "iran", "iraq", "ireland", "isle of man", "israel", "italy", "jamaica", "japan", "jersey", "jordan", "kazakhstan", "kazakhstan2", "kenya", "kiribati", "korea", "kuwait", "kyrgyzstan", "laos", "latvia", "lebanon", "lesotho", "liberia", "libyan arab jamahiriya", "liechtenstein", "lithuania", "luxembourg", "macau", "macedonia", "madagascar", "malawi", "malaysia", "maldives", "mali", "malta", "marshall islands", "martinique", "mauritania", "mauritius", "mayotte", "mexican", "micronesia", "moldova", "monaco", "mongolia", "montserrat", "morocco", "mozambique", "myanmar", "namibia", "nauru", "nepal", "netherlands", "netherlands antilles", "neutral zone", "new caledonia", "new zealand", "nicaragua", "niger", "nigeria", "niue", "norfolk island", "north korea", "northern mariana islands", "norway", "oman", "pakistan", "palau", "panama", "papua new guinea", "paraguay", "peru", "philippines", "pitcairn", "poland", "portugal", "puerto rico", "qatar", "reunion", "romania", "russian federation", "rwanda", "saint helena", "samoa", "san marino", "sao tome and principe", "saudi arabia", "scotland", "senegal", "seychelles", "sierra leone", "singapore", "slovakia", "slovenia", "solomon islands", "somalia", "south africa", "south georgia and the sandwich", "spain", "sri lanka", "sudan", "suriname", "swaziland", "sweden", "switzerland", "syrian arab republic", "taiwan", "tanzania", "thailand", "the republic of cote d'ivoire", "togo", "tokelau", "tonga", "trinidad and tobago", "tunisia", "turkey", "turkmenistan", "turks and caicos islands", "tuvalu", "uganda", "ukraine", "united arab emirates", "united kingdom", "united states", "unknown", "uruguay", "ussr", "uzbekistan", "vanuatu", "vatican city state", "venezuela", "vietnam", "virgin islands (british)", "virgin islands (u.s.)", "western sahara", "yemen", "yugoslavia", "zaire", "zambia", "zimbabwe"];
$('.nationality').typeahead({
hint: false,
highlight: true,
minLength: 1,
classNames: {
suggestion: 'tt-suggestion tt-selectable tt-suggestion-nationality'
}
},
{
name: 'nationality_states',
source: substringMatcher(nationality_map),
limit: 10
});
})

@ -5,6 +5,32 @@ $(function() {
}); });
} }
$("a[minus]").each(function(index, element) {
$(element).click(function() {
var targetId = $(this).data("target");
var $targetInput = $("#" + targetId);
var minVal = $targetInput.data("min");
var inputVal = parseInt($targetInput.val());
if (inputVal > minVal) {
inputVal -= 1;
$targetInput.val(inputVal);
}
});
});
$("a[plus]").each(function(index, element) {
$(element).click(function() {
var targetId = $(this).data("target");
var $targetInput = $("#" + targetId);
var maxVal = $targetInput.data("max");
var inputVal = parseInt($targetInput.val());
if (inputVal < maxVal) {
inputVal += 1;
$targetInput.val(inputVal);
}
});
});
$("#adult_number").combobox({ $("#adult_number").combobox({
maxLength: 3, maxLength: 3,
source: [{ source: [{

Loading…
Cancel
Save