feat: vue-mobile => 完成用户信息修改功能,前后端都添加文件上传功能。

This commit is contained in:
RockYang
2023-06-27 12:11:55 +08:00
parent 5187a43543
commit a08981f876
20 changed files with 353 additions and 73 deletions

View File

@@ -145,6 +145,7 @@ const onLoad = () => {
blocks.forEach((block) => {
hl.highlightElement(block)
})
scrollListBox()
})
}
@@ -239,12 +240,10 @@ const connect = function (chat_id, role_id) {
blocks.forEach((block) => {
hl.highlightElement(block)
})
scrollListBox()
})
}
nextTick(() => {
scrollListBox()
})
};
}
@@ -275,7 +274,7 @@ const connect = function (chat_id, role_id) {
// 将聊天框的滚动条滑动到最底部
const scrollListBox = () => {
document.getElementById('message-list-box').scrollTo(0, document.getElementById('message-list-box').scrollHeight)
document.getElementById('message-list-box').scrollTo(0, document.getElementById('message-list-box').scrollHeight + 46)
}
const sendMessage = () => {
@@ -352,6 +351,7 @@ const shareChat = () => {
.mobile-chat {
.message-list-box {
padding-top 50px
padding-bottom 10px
overflow-x auto
background #F5F5F5;