...
|
...
|
@@ -1393,10 +1393,10 @@ $(function() { |
|
|
type: 'GET',
|
|
|
url: '/product/detail/getPacakge',
|
|
|
data: {
|
|
|
skn: '51127118'
|
|
|
skn: skn
|
|
|
}
|
|
|
}).then(function(result) {
|
|
|
if (result.code === 200) {
|
|
|
if (result.code === 200 && result.data.packageData.length > 0) {
|
|
|
var packageTpl = require('hbs/product/package.hbs'); // eslint-disable-line
|
|
|
|
|
|
pkgData = result.data;
|
...
|
...
|
@@ -1406,6 +1406,8 @@ $(function() { |
|
|
$('.good-info .good-detail-text > a').dotdotdot({
|
|
|
wrap: 'letter'
|
|
|
});
|
|
|
} else {
|
|
|
$('#package').addClass('hide');
|
|
|
}
|
|
|
});
|
|
|
|
...
|
...
|
@@ -1516,11 +1518,13 @@ $('.bottom-tab').on('click', '.bottom-title', function() { |
|
|
// 店铺推荐
|
|
|
$recommendComment.slideDown(SLIDETIME);
|
|
|
$latestWalk.slideUp(SLIDETIME);
|
|
|
$('.change').removeClass('hide');
|
|
|
} else {
|
|
|
// 最近游览
|
|
|
fetchLatestWalk(); // eslint-disable-line
|
|
|
$recommendComment.slideUp(SLIDETIME);
|
|
|
$latestWalk.slideDown(SLIDETIME);
|
|
|
$('.change').addClass('hide');
|
|
|
}
|
|
|
|
|
|
});
|
...
|
...
|
@@ -1633,6 +1637,16 @@ $('.redcar').on('click', '.option', function() { |
|
|
$this.addClass('fixed');
|
|
|
});
|
|
|
|
|
|
$('.redcar').on('click', function() {
|
|
|
var $addToCart = $('#add-to-cart');
|
|
|
var sc = $(document);
|
|
|
if (maxStock === -1) {
|
|
|
sc.scrollTop(0);
|
|
|
} else {
|
|
|
$addToCart.trigger('click');
|
|
|
}
|
|
|
});
|
|
|
|
|
|
$(function() {
|
|
|
$('.bottom-tab .change').click(function() {
|
|
|
$('.img-brand-switch .next').trigger('click');
|
...
|
...
|
|