Commit 8ff65369 by 李嘉林

定金预售

parent 22039b51
......@@ -149,8 +149,15 @@
<view class="bottom" wx:if="{{datas.componentData['goodsType'] !=1}}">
<!-- 价格 -->
<view class="priceItem flex" style="flex-wrap:{{items && items.secondKillActivityInfoGoodsList ? 'wrap' : 'nowrap'}};justify-content:{{priceTextStyle}}">
<!-- 定金膨胀 -->
<block wx:if="{{items && items.depositInflationInfoList && items.depositInflationInfoList.length != 0 && items.depositInflationInfoList[0].status == 1}}">
<view class="flex cut-price__wrapper">
<view class="cut-price__min" style="color:{{datas.componentData['priceColor']}};font-size:{{datas.componentData['priceFontSize']}}em;">¥{{ items.depositInflationInfoList[0].goodsInfo[0].depositPrice }}</view>
<view class="cut-price__tag">火热预定中</view>
</view>
</block>
<!-- 砍价展示 -->
<block wx:if="{{items && items.cutActivityGoodsList && items.cutActivityGoodsList.length != 0 && items.cutActivityGoodsList[0].status == 2}}">
<block wx:elif="{{items && items.cutActivityGoodsList && items.cutActivityGoodsList.length != 0 && items.cutActivityGoodsList[0].status == 2}}">
<view class="flex cut-price__wrapper">
<view class="cut-price__min" style="color:{{datas.componentData['priceColor']}};font-size:{{datas.componentData['priceFontSize']}}em;">¥{{ cutPrice }}</view>
<text style="font-size:24rpx;color:#999;text-decoration:line-through;margin-left:12rpx;">¥{{items.minPrice}}</text>
......
......@@ -449,6 +449,11 @@ const componentOptions = {
item.getSaleTime = 0;
item.getSaleTime = this.getSaleTime(item.saleTime);
}
if (item.depositInflationInfoList && item.depositInflationInfoList.length > 0) {
item.depositInflationInfoList[0].goodsInfo[0].depositPrice = item.depositInflationInfoList[0].goodsInfo[0].depositPrice
? Number(item.depositInflationInfoList[0].goodsInfo[0].depositPrice).toFixed(2)
: 0;
}
item.attributeValueList = [];
if (attributeValueList.length > 0) {
// 过滤商品属性
......
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