Commit 22fe9364 by 李嘉林

feat: 商品列表价格

parent 0b23d765
......@@ -184,8 +184,8 @@
style="color:{{datas.componentData['priceColor']}};font-size:{{datas.componentData['priceFontSize']}}em;display:{{datas.componentData['columnNum']<3?'flex':'block'}}"
wx:elif="{{datas.componentData['priceShow']}}"
>
<text>¥{{items!=null ? minPrice : 0}}</text>
<text style="font-size:24rpx;color:#999;text-decoration:line-through;display:{{datas.componentData['columnNum']<3?'inline-block':'block'}}" wx:if="{{items!=null&&datas.componentData['priceMarking']&&items['minGoodsSuggestedRetailPrice']&&(minPrice-0<minGoodsSuggestedRetailPrice-0)&&datas.componentData['columnNum']<4}}">¥{{minGoodsSuggestedRetailPrice}}</text>
<text>¥{{items!=null ? items.minPrice : 0}}</text>
<text style="font-size:24rpx;color:#999;text-decoration:line-through;display:{{datas.componentData['columnNum']<3?'inline-block':'block'}}" wx:if="{{items!=null&&datas.componentData['priceMarking']&&items['minGoodsSuggestedRetailPrice']&&(items.minPrice-0<minGoodsSuggestedRetailPrice-0)&&datas.componentData['columnNum']<4}}">¥{{minGoodsSuggestedRetailPrice}}</text>
</view>
<view class="vipPrice2 flex" wx:if="{{datas.componentData.vipPrice}}">
<view class="left" wx:if="{{items.showVipPrice==true}}">
......
......@@ -64,7 +64,7 @@
style="display:grid;grid-template-columns:repeat({{datas.componentData.columnNum}},minmax(0px, 1fr));gap:{{datas.componentData.proGap*2}}rpx;"
>
<view
wx:for="{{datas.componentData.goodsList}}"
wx:for="{{goodsList}}"
wx:key="index"
class="goods-item {{'goodsItemIndex'+index}}"
style="margin-bottom:20rpx;"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment