2023.11.16

This commit is contained in:
2023-11-16 00:11:40 +08:00
parent dc946ec669
commit 3579868cc7
3 changed files with 11 additions and 9 deletions

View File

@@ -46,14 +46,7 @@
is_loading.value = false
return
}
// 滚动条设置
uni.createSelectorQuery().in(instance).select('#scroll-view-content').boundingClientRect((res)=>{
let top = res.height-w_h.value+100;
if(top>0){
scrollTop.value = top;
}
// console.log(res.height,w_h.value)
}).exec()
records.value.push({
content:in_content.value,
type:2
@@ -83,6 +76,14 @@
duration:2000
})
}
// 滚动条设置
uni.createSelectorQuery().in(instance).select('#scroll-view-content').boundingClientRect((res)=>{
let top = res.height-w_h.value+100;
if(top>0){
scrollTop.value = top;
}
// console.log(res.height,w_h.value)
}).exec()
}
</script>
<template>