Commit e396639c by 李嘉林

Revert "横向标签切换商品列表导致价格错误"

This reverts commit d7c671e8.
parent d7c671e8
......@@ -38,7 +38,6 @@ const componentOptions = {
// 数据监听器
observers: {
items(val) {
if (val == null) return;
if (val && val.cutActivityGoodsList && val.cutActivityGoodsList.length != 0) {
this.setData({ cutPrice: Number(val.cutActivityGoodsList[0].minPrice).toFixed(2) })
}
......
......@@ -163,7 +163,7 @@
<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;">¥{{minPrice}}</text>
<text style="font-size:24rpx;color:#999;text-decoration:line-through;margin-left:12rpx;">¥{{items.minPrice}}</text>
<view class="cut-price__tag">砍价享</view>
</view>
</block>
......
......@@ -75,7 +75,7 @@
indexs="{{index}}"
></goods-item> -->
<goods-item
items="{{datas.componentData.goodsList[index]}}"
items="{{item}}"
datas="{{datas}}"
indexs="{{index}}"
style="height: 100%;"
......
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