mirror of
https://github.com/ialley-workshop-open/uni-halo.git
synced 2026-06-12 13:19:31 +08:00
feat: 文章详情新增评论自动滚动到评论区域
This commit is contained in:
@@ -6,6 +6,10 @@
|
||||
<text>评论列表</text>
|
||||
<text class="count">({{ (result && result.total) || 0 }}条)</text>
|
||||
</view>
|
||||
<view class="refresh">
|
||||
<text class="icon iconfont icon-sync-alt text-weight-s text-grey-darken-1"></text>
|
||||
<text class="text-weight-s text-grey-darken-1 ml-6" style="font-size: 26rpx;" @click="fnGetData">刷新</text>
|
||||
</view>
|
||||
</view>
|
||||
<!-- 内容区域 -->
|
||||
<view class="comment-list_content">
|
||||
|
||||
@@ -208,15 +208,17 @@ export default {
|
||||
},
|
||||
handleOnChange(isOpen) {
|
||||
this.isShow = isOpen;
|
||||
if (!isOpen) {
|
||||
this.$emit("on-close", {
|
||||
refresh: false
|
||||
})
|
||||
}
|
||||
if(!isOpen){
|
||||
this.$emit("on-close", {
|
||||
isSubmit:false,
|
||||
refresh: false
|
||||
})
|
||||
}
|
||||
},
|
||||
handleClose(refresh = false) {
|
||||
this.isShow = false;
|
||||
this.$emit("on-close", {
|
||||
isSubmit:true,
|
||||
refresh: refresh
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user