Authored by 张孝茹

tip

... ... @@ -67,12 +67,12 @@ class TopicDetail extends Page {
let TR = swiper.translate;
if (TR < -(issueListLength + 100) && TR > -(issueListLength + 200)) {
$('.tip').removeClass('hide');
$('.content .tip').removeClass('hide');
} else if (TR < -(issueListLength + 200)) {
$('.tip').html('释放查看');
$('.tip').removeClass('hide');
$('.content .tip').html('释放查看');
$('.content .tip').removeClass('hide');
} else {
$('.tip').addClass('hide');
$('.content .tip').addClass('hide');
}
},
onTouchEnd: function(swiper) {
... ... @@ -83,14 +83,14 @@ class TopicDetail extends Page {
swiper.setWrapperTranslate(TR);
window.location.href = `/rectopic/list?id=${common.queryString().id}&city_id=${common.queryString().city_id}`;
} else {
$('.tip').html('查看更多');
$('.content .tip').html('查看更多');
}
if (TR > 5) {
$('.issue-list').css({transform: 'translate3d(' + 0 + ',' + 0 + ',' + 0 + ')'});
}
$('.tip').addClass('hide');
$('.content .tip').addClass('hide');
}
});
}
... ...