|
@@ -1374,13 +1374,17 @@ function titleStr(type) {
|
|
|
}
|
|
|
function bindSlide() {
|
|
|
$(".showMore").off("click").on("click", function () {
|
|
|
+ console.log(123);
|
|
|
const longBox = $(this).parent().next().length ? $(this).parent().next() : $(this).parent().parent().next();
|
|
|
+
|
|
|
$(".longStrBox").css("display", "none")
|
|
|
longBox.css("display", "block")
|
|
|
let location = longBox.attr("data-location")
|
|
|
let scrollTop = getLongTop(location)
|
|
|
+ console.log(location);
|
|
|
const n = Number(scrollTop) - 2 > -1 ? Number(scrollTop) - 2 : 0;
|
|
|
longBox.css("top", n + "px")
|
|
|
+ console.log(n);
|
|
|
})
|
|
|
$(".showLess").off("click").on("click", function () {
|
|
|
$(this).parent().parent().css("display", "none")
|