...
|
...
|
@@ -428,7 +428,7 @@ bindEvent.add(function() { |
|
|
});
|
|
|
|
|
|
$enableNotifyYou.on('click', function() {
|
|
|
new Alert("fjdsl").show();
|
|
|
new Alert('fjdsl').show();
|
|
|
});
|
|
|
|
|
|
// 增加购买数量
|
...
|
...
|
@@ -596,7 +596,7 @@ bindEvent.add(function() { |
|
|
}
|
|
|
});
|
|
|
|
|
|
//套餐
|
|
|
// 套餐
|
|
|
$('#buy-detail').click(function() {
|
|
|
var opt = {
|
|
|
className: 'pkg-dialog',
|
...
|
...
|
@@ -606,6 +606,7 @@ bindEvent.add(function() { |
|
|
|
|
|
new Dialog(opt).show();
|
|
|
});
|
|
|
|
|
|
// 继续购物
|
|
|
$('#keep-shopping').click(function() {
|
|
|
$('#type-chose').slideDown(SLIDETIME);
|
...
|
...
|
@@ -1199,6 +1200,7 @@ function loadRecommend() { |
|
|
|
|
|
$('#recommend-shop').removeClass('hide');
|
|
|
|
|
|
|
|
|
$('#recommend-content').append(html);
|
|
|
$('.recommend-slider').slider2({
|
|
|
shownum: 5,
|
...
|
...
|
@@ -1241,33 +1243,6 @@ $('.recommend-slider').on('click', '.img-item', function() { |
|
|
|
|
|
window.loadRecommend = loadRecommend;
|
|
|
|
|
|
// 推荐和浏览切换
|
|
|
// $('.individual-comment').on('click', '.title', function() {
|
|
|
// var $this = $(this),
|
|
|
// index = $this.index();
|
|
|
//
|
|
|
// var $latestWalk = $('.latest-walk'),
|
|
|
// $recommendComment = $('#recommend-shop');
|
|
|
//
|
|
|
// if ($this.hasClass('cur')) {
|
|
|
// return;
|
|
|
// }
|
|
|
//
|
|
|
// $this.addClass('cur');
|
|
|
// $this.siblings('.cur').removeClass('cur');
|
|
|
//
|
|
|
// if (index === 0) {
|
|
|
// // 店铺推荐
|
|
|
// $recommendComment.slideDown(SLIDETIME);
|
|
|
// $latestWalk.slideUp(SLIDETIME);
|
|
|
// } else {
|
|
|
// // 最近游览
|
|
|
// fetchLatestWalk(); // eslint-disable-line
|
|
|
// $recommendComment.slideUp(SLIDETIME);
|
|
|
// $latestWalk.slideDown(SLIDETIME);
|
|
|
// }
|
|
|
// });
|
|
|
|
|
|
$('.bottom-tab').on('click', '.bottom-title', function() {
|
|
|
var $this = $(this),
|
|
|
index = $this.index();
|
...
|
...
|
@@ -1361,13 +1336,37 @@ bindEvent.fire(); |
|
|
}());
|
|
|
|
|
|
$(window).scroll(function() {
|
|
|
var sc = $(document);
|
|
|
var win = $(window);
|
|
|
var scrollStart = $('.other-infos').offset().top;
|
|
|
var scrollEnd = $('#judge').offset().top;
|
|
|
if ($(document).scrollTop() >= scrollStart && $(document).scrollTop() <= scrollEnd) {
|
|
|
var scrollBottom = sc.height() - $('#after-service-switch').offset().top;
|
|
|
var scrollEnd = $('#textbox').offset().top;
|
|
|
|
|
|
if (sc.scrollTop() >= scrollStart && sc.scrollTop() <= scrollEnd) {
|
|
|
$('.redcar').addClass('fixednav');
|
|
|
} else {
|
|
|
$('.redcar').removeClass('fixednav');
|
|
|
}
|
|
|
|
|
|
if (sc.height() - win.height() - sc.scrollTop() <= scrollBottom) {
|
|
|
$('.redcar').height(win.height() - (scrollBottom + win.height() + sc.scrollTop() - sc.height()));
|
|
|
|
|
|
} else {
|
|
|
$('.redcar').height(1000);
|
|
|
}
|
|
|
|
|
|
$('.getnav').each(function(i, ele) {
|
|
|
|
|
|
var data;
|
|
|
|
|
|
if ($(ele).offset().top - $(window).scrollTop() < 100) {
|
|
|
data = $(ele).data('id');
|
|
|
$('.redcar-nav li:eq(' + data + ')').siblings().find('a').removeClass('fixed');
|
|
|
$('.redcar-nav li:eq(' + data + ')').find('a').addClass('fixed');
|
|
|
|
|
|
}
|
|
|
});
|
|
|
|
|
|
});
|
|
|
|
|
|
$('.redcar').on('click', '.option', function() {
|
...
|
...
|
@@ -1381,5 +1380,12 @@ $('.redcar').on('click', '.option', function() { |
|
|
$this.addClass('fixed');
|
|
|
});
|
|
|
|
|
|
$(function() {
|
|
|
$('.bottom-tab .change').click(function() {
|
|
|
$('.img-brand-switch .next').trigger('click');
|
|
|
});
|
|
|
});
|
|
|
|
|
|
|
|
|
// 数据懒加载
|
|
|
dataLazyLoad.init({cls: '.datalazyload', threshold: 0}); |
...
|
...
|
|