feat: 底部按钮
This commit is contained in:
+9
-7
@@ -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}`,
|
||||
})
|
||||
},
|
||||
// 查询分类
|
||||
|
||||
Reference in New Issue
Block a user