首页产品列表优化

master
santaner 1 year ago
parent 3924a4b856
commit 309e16f42e
  1. 7
      pages/index/component/goodList.vue

@ -15,8 +15,8 @@
<view class="merchant_info">
<view v-if="item.merchant && item.merchant.type_name" :style="'background:'+labelColor" class="font-bg-red">{{item.merchant.type_name}}</view>
<view class="txt" :style="'border-color:'+priceColor+';color:'+priceColor+';'" v-if="item.issetCoupon && couponShow">领券</view>
<view class="txt delivery" v-if="item.delivery_free">包邮</view>
</view>
<view class="stock">库存{{ item.stock }}</view>
</view>
<view v-if="priceShow" class="price acea-row" :style="'color:'+priceColor">
<view>
@ -180,6 +180,7 @@ export default {
margin-bottom: 20rpx;
overflow: hidden;
position: relative;
border-bottom: 1px solid #eee;
&.on {
border-radius: 0;
}
@ -324,6 +325,10 @@ export default {
}
}
}
.stock{
margin-top: 10rpx;
font-size: 24rpx;
}
&.on {
display: flex;
}

Loading…
Cancel
Save