Skip to content

Commit

Permalink
uniapp:【商品列表】样式 review
Browse files Browse the repository at this point in the history
  • Loading branch information
YunaiV committed Dec 26, 2022
1 parent d4cecee commit 4aeaa21
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion yudao-ui-app/pages/category/product-list.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,13 @@
<u-navbar :title="title" :autoBack="true" placeholder="true" titleStyle="font-size: 28rpx">
</u-navbar>
<view class="context">
<!-- 分类列表 -->
<!-- TODO @Luowenfeng:不应该展示商品分类;应该是上面一个筛选;之后是【综合】【销量】【价格】的排序 -->
<view class="tabs-top">
<u-tabs :list="categoryList" @click="changeTabs" :current="current" lineHeight="2" lineWidth="85rpx"
itemStyle="padding-left: 15px; padding-right: 15px; height: 85rpx;"></u-tabs>
</view>
<!-- 商品列表 -->
<scroll-view scroll-y="true" class="product-list" enable-flex="true">
<view class="flex-box">
<block v-for="(item, index) in productList[current]" :key="index">
Expand Down Expand Up @@ -52,7 +55,7 @@
},
methods: {
changeTabs(item) {
if (item.index != this.current) {
if (item.index !== this.current) {
this.handleProductSpu(item.index)
}
},
Expand Down

0 comments on commit 4aeaa21

Please sign in to comment.