Browse Source

修复商品详情页面显示问题

pull/12/head
徐飞洋 2 months ago
parent
commit
1927168131
  1. 16
      pages/goods-detail/goods-detail.wxml

16
pages/goods-detail/goods-detail.wxml

@ -270,16 +270,16 @@
</view>
<view class="compare-goods-info">
<text class="compare-goods-name">{{item.name}}</text>
<text class="compare-goods-spec-quantity">
<view class="compare-goods-spec-quantity">
<block wx:if="{{item.weightQuantityData && item.weightQuantityData.length > 0}}">
<block wx:for="{{item.weightQuantityData}}" wx:for-item="specItem" wx:key="index">
<view wx:for="{{item.weightQuantityData}}" wx:for-item="specItem" wx:key="index">
{{specItem.display}}
</block>
</view>
</block>
<block wx:else>
{{item.specification || item.spec || item.specs || '暂无规格'}}|{{item.quantity || '暂无件数'}}件
</block>
</text>
</view>
<text class="compare-goods-region-time">
{{item.province || item.region || '暂无地区'}}{{item.formattedDate ? ' | 售出时间:' + item.formattedDate : ''}}
</text>
@ -323,16 +323,16 @@
</view>
<view class="compare-goods-info">
<text class="compare-goods-name">{{item.name}}</text>
<text class="compare-goods-spec-quantity">
<view class="compare-goods-spec-quantity">
<block wx:if="{{item.weightQuantityData && item.weightQuantityData.length > 0}}">
<block wx:for="{{item.weightQuantityData}}" wx:for-item="specItem" wx:key="index">
<view wx:for="{{item.weightQuantityData}}" wx:for-item="specItem" wx:key="index">
{{specItem.display}}
</block>
</view>
</block>
<block wx:else>
{{item.specification || item.spec || item.specs || '暂无规格'}}|{{item.quantity || '暂无件数'}}件
</block>
</text>
</view>
<text class="compare-goods-region-time">
{{item.province || item.region || '暂无地区'}}{{item.formattedDate ? ' | 售出时间:' + item.formattedDate : ''}}
</text>

Loading…
Cancel
Save