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

This commit is contained in:
modendeveloper
2025-01-08 22:03:19 +08:00
parent a24bfb2ff2
commit daf0ed691e
+17 -15
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,21 +57,23 @@
</view> </view>
</view> </view>
</view> </view>
<view class="scroll-box"> <scroll-view style="padding-left: 0" class="type-box flex " scroll-x enable-flex>
<view <view class="scroll-box">
v-for="(item, index) in typeList" <view
:key="index" v-for="(item, index) in typeList"
:class="{ :key="index"
'active': typeIndex === index :class="{
}" 'active': typeIndex === index
class="item flex-0 flex flex-col jc-center ai-center" }"
@click="tapType(index)" class="item flex-0 flex flex-col jc-center ai-center v12-white"
> @click="tapType(index)"
<image :src="item.icon" mode="scaleToFill"/> >
<view class="name">{{ item.name }}</view> <image :src="item.icon" mode="scaleToFill"/>
<view class="name">{{ item.name }}</view>
</view>
</view> </view>
</view> </scroll-view>
</scroll-view> </view>
</view> </view>
</view> </view>
<view class="type-banner-wrap"> <view class="type-banner-wrap">