Fix:2987 【商城小程序】寻趣味分类,古镇应该始终固定在左侧,现在往右滑动会把古镇分类挤掉,详情见视频附件

This commit is contained in:
modendeveloper
2025-01-08 22:03:19 +08:00
parent a24bfb2ff2
commit daf0ed691e
+4 -2
View File
@@ -42,7 +42,7 @@
</view> </view>
<view> <view>
<scroll-view class="type-box flex" scroll-x enable-flex> <view class="type-box flex" >
<view class="first-box"> <view class="first-box">
<view class="first-box__inner"> <view class="first-box__inner">
<view <view
@@ -57,6 +57,7 @@
</view> </view>
</view> </view>
</view> </view>
<scroll-view style="padding-left: 0" class="type-box flex " scroll-x enable-flex>
<view class="scroll-box"> <view class="scroll-box">
<view <view
v-for="(item, index) in typeList" v-for="(item, index) in typeList"
@@ -64,7 +65,7 @@
:class="{ :class="{
'active': typeIndex === index 'active': typeIndex === index
}" }"
class="item flex-0 flex flex-col jc-center ai-center" class="item flex-0 flex flex-col jc-center ai-center v12-white"
@click="tapType(index)" @click="tapType(index)"
> >
<image :src="item.icon" mode="scaleToFill"/> <image :src="item.icon" mode="scaleToFill"/>
@@ -74,6 +75,7 @@
</scroll-view> </scroll-view>
</view> </view>
</view> </view>
</view>
<view class="type-banner-wrap"> <view class="type-banner-wrap">
<view v-if="currType.titleImage" class="title"> <view v-if="currType.titleImage" class="title">
<image <image