fanfan 5 months ago
parent 63e3b64c3b
commit 43113a8f55
  1. 6
      pages/goods/list.vue

@ -15,7 +15,7 @@
<scroll-view class="typeList" scroll-x="true">
<view v-for="(item,index) in tabbar" :key="index"
:class="[item.image ? 'bandsImg' : 'typeItem2']" @click="onChage(item,1,index)"
:style="{'background':item.image?'none':(isBanrdActive==item.category_id?'#FEF6F6':'#F7F8FA'),'color':item.image?(item.category_id==isBanrdActive?'#F43B21':'#5A5A5A'):(item.category_id==isBanrdActive?'#F43B21':'#5A5A5A'),'border':item.image?(item.category_id==isBanrdActive?'1rpx solid #F22029':'1rpx solid #E7E7E7'):'none'}">
:style="{'background':item.image?'none':(isBanrdActive==item.category_id?'#FEF6F6':'#F7F8FA'),'color':item.image?(item.category_id==isBanrdActive?'#F43B21':'#5A5A5A'):(item.category_id==isBanrdActive?'#F43B21':'#5A5A5A'),'border':item.image?(item.category_id==isBanrdActive?'1rpx solid #F22029':'1rpx solid #E7E7E7'):(item.category_id==isBanrdActive?'1rpx solid #F22029':'none')}">
<image :style="{display: item.image ? 'inline-block' : 'none'}"
:src="item.image?item.image.external_url:''" mode="aspectFill"></image>
<view :class="[item.image ? 'typeItem' : '']">{{item.name}}</view>
@ -999,7 +999,7 @@
font-size: 24rpx;
font-family: PingFang SC, PingFang SC;
font-weight: 400;
line-height: 60rpx;
line-height: 59rpx;
text-align: center;
}
}
@ -1015,7 +1015,7 @@
font-size: 24rpx;
font-family: PingFang SC, PingFang SC;
font-weight: 400;
line-height: 60rpx;
line-height: 59rpx;
text-align: center;
}

Loading…
Cancel
Save