From 754c83bfec0e5dfdef514acf33c9eda6fb49ca4f Mon Sep 17 00:00:00 2001 From: shuixiang Date: Fri, 10 Sep 2021 15:48:58 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8D=E5=A5=BD=E6=84=8F=E6=80=9D=E6=8A=8A?= =?UTF-8?q?=E6=97=B6=E9=97=B4=E5=8E=BB=E6=8E=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- resources/views/admin/pages/index.blade.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/resources/views/admin/pages/index.blade.php b/resources/views/admin/pages/index.blade.php index 76e2749..7badda5 100644 --- a/resources/views/admin/pages/index.blade.php +++ b/resources/views/admin/pages/index.blade.php @@ -196,9 +196,9 @@ // 获取元素距离父级元素顶部的距离 let offsetTop = $('.msg-list-item.active').position().top - $(".msg-list").animate({ scrollTop: offsetTop - 20}, 2000) + $(".msg-list").animate({ scrollTop: offsetTop - 20}, 1) - $(".msg-chat-list").animate({ scrollTop: $(".msg-chat-list")[0].scrollHeight - $('.msg-chat-list').height() + 600 }, 2000) + $(".msg-chat-list").animate({ scrollTop: $(".msg-chat-list")[0].scrollHeight - $('.msg-chat-list').height() + 600 }, 1) $('.msg-image').on('click', function (e) { $('.image').click(); @@ -224,7 +224,7 @@ templateHtml = templateHtml.replace('#contents', imgDoc) templateHtml = templateHtml.replace('#times', msgTime) $(".msg-chat-list").append(templateHtml) - $(".msg-chat-list").animate({ scrollTop: $(".msg-chat-list")[0].scrollHeight - $('.msg-chat-list').height() + 600 }, 2000) + $(".msg-chat-list").animate({ scrollTop: $(".msg-chat-list")[0].scrollHeight - $('.msg-chat-list').height() + 600 }, 1) }, error: function (error) { console.log(error)