|
@@ -162,7 +162,7 @@
|
|
|
</view>
|
|
</view>
|
|
|
<scroll-view id="msgScroll" v-if="Array.isArray(talklist)" enable-flex scroll-y="true"
|
|
<scroll-view id="msgScroll" v-if="Array.isArray(talklist)" enable-flex scroll-y="true"
|
|
|
:enhanced="true" :bounces="false" :show-scrollbar="false" :fast-deceleration="false"
|
|
:enhanced="true" :bounces="false" :show-scrollbar="false" :fast-deceleration="false"
|
|
|
- :enable-back-to-top="false" class="message-scroll-view" :scroll-top="scrollTop"
|
|
|
|
|
|
|
+ :enable-back-to-top="false" class="message-scroll-view" :class="liveItem.status == 1 ? 'message-scroll2' : ''" :scroll-top="scrollTop"
|
|
|
:scroll-into-view="scrollIntoView" @scroll="onScroll" ref="scrollView">
|
|
:scroll-into-view="scrollIntoView" @scroll="onScroll" ref="scrollView">
|
|
|
<view class="message-list" v-for="(item, talkIndex) in (talklist || [])"
|
|
<view class="message-list" v-for="(item, talkIndex) in (talklist || [])"
|
|
|
:key="item.uniqueId " :id="`list_${item.uniqueId }`" v-show="item.cmd != 'red' ">
|
|
:key="item.uniqueId " :id="`list_${item.uniqueId }`" v-show="item.cmd != 'red' ">
|
|
@@ -2122,7 +2122,6 @@
|
|
|
const now = Date.now();
|
|
const now = Date.now();
|
|
|
// 防抖检查:如果距离上次滚动时间太短,则忽略
|
|
// 防抖检查:如果距离上次滚动时间太短,则忽略
|
|
|
if (now - this.lastScrollTime < this.scrollDebounceDelay) {
|
|
if (now - this.lastScrollTime < this.scrollDebounceDelay) {
|
|
|
- // console.log('滚动防抖:忽略频繁调用');
|
|
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
this.lastScrollTime = now;
|
|
this.lastScrollTime = now;
|
|
@@ -4675,6 +4674,9 @@
|
|
|
flex: 1;
|
|
flex: 1;
|
|
|
flex-direction: column;
|
|
flex-direction: column;
|
|
|
-webkit-overflow-scrolling: touch;
|
|
-webkit-overflow-scrolling: touch;
|
|
|
|
|
+ &.message-scroll2{
|
|
|
|
|
+ height: 368rpx;
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
.message-list {
|
|
.message-list {
|