|
|
@ -79,23 +79,23 @@ |
|
|
<!-- 规格信息 --> |
|
|
<!-- 规格信息 --> |
|
|
<view class="weight-quantity-info" wx:if="{{(goodsDetail.weightQuantityData && goodsDetail.weightQuantityData.length > 0) || goodsDetail.specInfo || goodsDetail.spec}}"> |
|
|
<view class="weight-quantity-info" wx:if="{{(goodsDetail.weightQuantityData && goodsDetail.weightQuantityData.length > 0) || goodsDetail.specInfo || goodsDetail.spec}}"> |
|
|
<view class="wq-title">规格信息</view> |
|
|
<view class="wq-title">规格信息</view> |
|
|
<view class="wq-grid-list"> |
|
|
<view class="wq-block-list"> |
|
|
<block wx:if="{{goodsDetail.weightQuantityData && goodsDetail.weightQuantityData.length > 0}}"> |
|
|
<block wx:if="{{goodsDetail.weightQuantityData && goodsDetail.weightQuantityData.length > 0}}"> |
|
|
<view class="wq-grid-row" wx:for="{{goodsDetail.weightQuantityData}}" wx:key="index"> |
|
|
<view class="wq-block-row" wx:for="{{goodsDetail.weightQuantityData}}" wx:key="index"> |
|
|
<text class="grid-item weight-spec-item">{{item.weightSpec}}</text> |
|
|
<view class="wq-block spec-block"><text class="block-text weight-spec-text">{{item.weightSpec}}</text></view> |
|
|
<text class="grid-item quantity-item">【{{item.quantity}}】</text> |
|
|
<view class="wq-block quantity-block"><text class="block-text quantity-text">【{{item.quantity}}】</text></view> |
|
|
<text class="grid-item costprice-item" wx:if="{{item.costprice && item.costprice !== '暂无'}}">¥{{item.costprice}}元</text> |
|
|
<view class="wq-block costprice-block"><text class="block-text costprice-text" wx:if="{{item.costprice && item.costprice !== '暂无'}}">¥{{item.costprice}}</text></view> |
|
|
<text class="grid-item price-item" wx:if="{{item.price && item.price !== '暂无'}}">¥{{item.price}}元</text> |
|
|
<view class="wq-block price-block"><text class="block-text price-text" wx:if="{{item.price && item.price !== '暂无'}}">¥{{item.price}}</text></view> |
|
|
</view> |
|
|
</view> |
|
|
</block> |
|
|
</block> |
|
|
<block wx:elif="{{goodsDetail.specInfo && goodsDetail.specInfo.length > 0}}"> |
|
|
<block wx:elif="{{goodsDetail.specInfo && goodsDetail.specInfo.length > 0}}"> |
|
|
<view class="wq-grid-row" wx:for="{{goodsDetail.specInfo}}" wx:key="index"> |
|
|
<view class="wq-block-row" wx:for="{{goodsDetail.specInfo}}" wx:key="index"> |
|
|
<text class="grid-item weight-spec-item" colspan="4">{{item}}</text> |
|
|
<view class="wq-block spec-block" style="flex: 0 0 100%;"><text class="block-text weight-spec-text">{{item}}</text></view> |
|
|
</view> |
|
|
</view> |
|
|
</block> |
|
|
</block> |
|
|
<block wx:else> |
|
|
<block wx:else> |
|
|
<view class="wq-grid-row"> |
|
|
<view class="wq-block-row"> |
|
|
<text class="grid-item weight-spec-item" colspan="4">{{goodsDetail.spec || '暂无规格信息'}}</text> |
|
|
<view class="wq-block spec-block" style="flex: 0 0 100%;"><text class="block-text weight-spec-text">{{goodsDetail.spec || '暂无规格信息'}}</text></view> |
|
|
</view> |
|
|
</view> |
|
|
</block> |
|
|
</block> |
|
|
</view> |
|
|
</view> |
|
|
|