商品列表搜索

version/0412
shuxiaoquan 8 months ago
parent 57f645d223
commit 18c8b3a097
  1. 1
      pages/activity/newPeople.vue
  2. 6
      pages/goods/list.vue

@ -344,7 +344,6 @@
.title { .title {
padding: 10rpx 0; padding: 10rpx 0;
line-height: 40rpx;
font-size: 24rpx; font-size: 24rpx;
font-family: PingFang SC, PingFang SC; font-family: PingFang SC, PingFang SC;
font-weight: 400; font-weight: 400;

@ -8,8 +8,9 @@
<search :tips="options.search ? options.search : '搜索商品'" @event="handleSearch" /> <search :tips="options.search ? options.search : '搜索商品'" @event="handleSearch" />
</view> </view>
</view> </view>
<view class="store-sort" v-if="tabbar.length>0"> <view class="store-sort">
<view class="goodsType"> <template v-if="options.categoryId">
<view class="goodsType" v-if="tabbar && tabbar.length > 0">
<scroll-view class="typeList" scroll-x="true"> <scroll-view class="typeList" scroll-x="true">
<view v-for="(item,index) in tabbar" :key="index" class="typeItem" @click="onChage(item,1)" <view v-for="(item,index) in tabbar" :key="index" class="typeItem" @click="onChage(item,1)"
:style="{'color':item.category_id==isBanrdActive?'#F43B21':'#5A5A5A','background':item.category_id==isBanrdActive?'#FEF6F6':'#F7F8FA','border':item.category_id==isBanrdActive?'2rpx solid #F22029':'none'}"> :style="{'color':item.category_id==isBanrdActive?'#F43B21':'#5A5A5A','background':item.category_id==isBanrdActive?'#FEF6F6':'#F7F8FA','border':item.category_id==isBanrdActive?'2rpx solid #F22029':'none'}">
@ -25,6 +26,7 @@
</view> </view>
</scroll-view> </scroll-view>
</view> </view>
</template>
<!-- 排序标签 --> <!-- 排序标签 -->
<view class="store-box"> <view class="store-box">
<view class="sort-item" :class="{ active: sortType === 'all' }" @click="handleSortType('all')"> <view class="sort-item" :class="{ active: sortType === 'all' }" @click="handleSortType('all')">

Loading…
Cancel
Save