feat: 底部按钮

This commit is contained in:
2025-08-15 21:59:06 +08:00
parent 3b42587c8d
commit c6e2aa884b
7 changed files with 15 additions and 13 deletions
+9 -7
View File
@@ -3,7 +3,8 @@
<view class="sort_header">
<!-- 分类切换 -->
<view class="sort_category_header">
<view :class="selCategory === 1 ? 'category_item category_item_sel' : 'category_item'" @click="checkCategory(1)">
<view :class="selCategory === 1 ? 'category_item category_item_sel' : 'category_item'"
@click="checkCategory(1)">
<view>分类</view>
<view v-if="selCategory === 1" class="category_item_sel_but"></view>
</view>
@@ -22,7 +23,8 @@
<!-- 左侧类别 -->
<scroll-view scroll-y scroll-with-animation class="u-tab-view menu-scroll-view" :scroll-top="scrollTop">
<view v-for="(item, index) in tabbarList" :key="index" class="u-tab-item"
:class="[current == index ? 'u-tab-item-active' : '']" :data-current="index" @tap.stop="swichMenu(item, index)">
:class="[current == index ? 'u-tab-item-active' : '']" :data-current="index"
@tap.stop="swichMenu(item, index)">
<text class="u-line-1">{{ item.name }}</text>
</view>
</scroll-view>
@@ -56,7 +58,7 @@
</view>
</scroll-view>
</view>
<CustomTabBar :tabIndex="1" />
<!-- <CustomTabBar :tabIndex="1" /> -->
</view>
</template>
@@ -128,15 +130,15 @@ export default {
}
},
jumpSearch(item) {
uni.navigateTo({
url: '/pages/shop/search',
})
},
jumpInfo(item){
jumpInfo(item) {
uni.navigateTo({
url: `/pages/other_package/productInfo/productInfo?id=${item.id}`,
url: `/pages/other_package/productInfo/productInfo?id=${item.id}`,
})
},
// 查询分类