YunaiV
2025-04-27 12:42:14 +08:00
parent 70f9c004ea
commit 4fc6943391
+12 -10
View File
@@ -2,9 +2,10 @@
<template> <template>
<s-layout :bgStyle="{ color: '#fff' }" tabbar="/pages/index/category" title="分类"> <s-layout :bgStyle="{ color: '#fff' }" tabbar="/pages/index/category" title="分类">
<view class="s-category"> <view class="s-category">
<view class="three-level-wrap ss-flex ss-col-top" :style="[{ height: pageHeight + 'px' }]"> <view class="three-level-wrap ss-flex ss-col-top">
<!-- 商品分类 --> <!-- 商品分类 -->
<scroll-view class="side-menu-wrap" scroll-y :style="[{ height: pageHeight + 'px' }]"> <view class="side-menu-wrap">
<scroll-view scroll-y :style="[{ height: pageHeight + 'px' }]">
<view <view
class="menu-item ss-flex" class="menu-item ss-flex"
v-for="(item, index) in state.categoryList" v-for="(item, index) in state.categoryList"
@@ -17,14 +18,10 @@
</view> </view>
</view> </view>
</scroll-view> </scroll-view>
</view>
<!-- 商品分类 --> <!-- 商品分类 -->
<scroll-view <view class="goods-list-box" v-if="state.categoryList?.length">
class="goods-list-box" <scroll-view scroll-y :style="[{ height: pageHeight + 'px' }]">
scroll-y
:style="[{ height: pageHeight + 'px' }]"
v-if="state.categoryList?.length"
@scrolltolower="handleScrollToLower"
>
<image <image
v-if="state.categoryList[state.activeMenu].picUrl" v-if="state.categoryList[state.activeMenu].picUrl"
class="banner-img" class="banner-img"
@@ -52,6 +49,7 @@
</scroll-view> </scroll-view>
</view> </view>
</view> </view>
</view>
</s-layout> </s-layout>
</template> </template>
@@ -154,6 +152,9 @@
height: 100%; height: 100%;
padding-left: 12rpx; padding-left: 12rpx;
background-color: #f6f6f6; background-color: #f6f6f6;
position: fixed;
left: 0;
top: 128rpx;
.menu-item { .menu-item {
width: 100%; width: 100%;
@@ -224,8 +225,9 @@
.goods-list-box { .goods-list-box {
background-color: #fff; background-color: #fff;
width: calc(100vw - 100px); width: calc(100vw - 200rpx);
padding: 10px; padding: 10px;
margin-left: 200rpx;
} }
.banner-img { .banner-img {