fix: correct scroll-view props and event bindings

update scroll-view component syntax in goods, ChatLongAnswer and Discovery pages
This commit is contained in:
duanshuwen
2026-07-25 11:18:25 +08:00
parent 8d4d5510f9
commit 4e3a39e3c1
3 changed files with 3 additions and 3 deletions

View File

@@ -6,7 +6,7 @@
</view>
<!-- 滚动区域 -->
<scroll-view class="flex-1 overflow-hidden chat-scroll" overflow-y-auto:scroll-into-view="scrollIntoViewId"
<scroll-view class="flex-1 overflow-hidden chat-scroll" scroll-y :scroll-into-view="scrollIntoViewId"
scroll-with-animation @scroll="onScroll" @touchstart="onTouchStart" @touchend="onTouchEnd"
@touchcancel="onTouchEnd">
<view class="flex flex-col pt-[12px] px-[16px] pb-[24px] gap-[10px]">

View File

@@ -4,7 +4,7 @@
<FindTabs v-if="discoveryTabs.length > 0" v-model="activeIndex" :tabs="discoveryTabs" @change="handleTabChange" />
</view>
<scroll-view class="discovery-scroll" overflow-y-auto@scroll="handleContentScroll">
<scroll-view class="discovery-scroll" scroll-y @scroll="handleContentScroll">
<view class="discovery-body">
<CardSwiper v-if="discoveryCards.length > 0" :list="discoveryCards" @didSelectItem="handleCardClick" />
<ExploreCards v-if="exploreCards.length > 0" :list="exploreCards" @didSelectItem="handleCardClick" />

View File

@@ -5,7 +5,7 @@
:backIconColor="navOpacity < 0.5 ? '#ffffff' : '#000000'" />
<!-- 滚动区域 -->
<scroll-view class="content-wrapper" overflow-y-auto@scroll="handleScroll">
<scroll-view class="content-wrapper" scroll-y @scroll="handleScroll">
<ImageSwiper :border-radius="0" :height="300" :images="goodsData.commodityPhotoList" thumbnailBottom="42px" />
<view class="goods-content">