From 3a2938e1a70706cdb86cd8fcfbd2884943bde9da Mon Sep 17 00:00:00 2001 From: liuye Date: Mon, 8 Jan 2024 09:40:15 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B1=85=E6=B0=91=E5=8A=A9=E6=89=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../AppResidentAssistant/AppResidentAssistant.vue | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/project/biaopin/AppResidentAssistant/AppResidentAssistant.vue b/src/project/biaopin/AppResidentAssistant/AppResidentAssistant.vue index a5e3ed1..5e13a26 100644 --- a/src/project/biaopin/AppResidentAssistant/AppResidentAssistant.vue +++ b/src/project/biaopin/AppResidentAssistant/AppResidentAssistant.vue @@ -173,6 +173,12 @@ export default { this.content = '' this.messageList.push(res.data[0]) this.messageList.push(res.data[1]) + this.$nextTick(() => { + uni.pageScrollTo({ + duration: 300, + selector: `.item${this.messageList.length-1}` + }); + }) this.$hideLoading() } }) @@ -190,6 +196,10 @@ export default { }) this.messageList.push(res.data[0]) this.messageList.push(res.data[1]) + uni.pageScrollTo({ + duration: 300, + selector: `.item${this.messageList.length-1}` + }); this.$hideLoading() } })