liujiaxin před 3 týdny
rodič
revize
92bb40352e
2 změnil soubory, kde provedl 5 přidání a 3 odebrání
  1. 1 1
      pages/home/index.vue
  2. 4 2
      pages_course/living.vue

+ 1 - 1
pages/home/index.vue

@@ -807,7 +807,7 @@
 			goAuthUrl(url) {
 				this.utils.isLogin().then(res => {
 					if (res) {
-						uni.navigateTo({
+						uni.switchTab({
 							url: url
 						})
 					}

+ 4 - 2
pages_course/living.vue

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