...
|
...
|
@@ -598,7 +598,6 @@ window.fetchHotArea = fetchHotArea; |
|
|
// 商品详情图片懒加载
|
|
|
lazyLoad($('#details-html img'));
|
|
|
|
|
|
|
|
|
// 咨询和评价
|
|
|
function fetchComment() {
|
|
|
var commentPage = 1,
|
...
|
...
|
@@ -825,7 +824,8 @@ function loadRecommend() { |
|
|
}
|
|
|
});
|
|
|
}
|
|
|
loadRecommend();
|
|
|
|
|
|
window.loadRecommend = loadRecommend;
|
|
|
|
|
|
// 推荐和浏览切换
|
|
|
$('.individual-comment').on('click', '.title', function() {
|
...
|
...
|
@@ -843,11 +843,12 @@ $('.individual-comment').on('click', '.title', function() { |
|
|
$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);
|
|
|
}
|
...
|
...
|
|