|
|
@ -48,8 +48,8 @@ |
|
|
|
<!-- <view class="goods-desc">{{item.desc}}</view> --> |
|
|
|
<view class="goods-bottom-row"> |
|
|
|
<view class="goods-price-row"> |
|
|
|
<text class="goods-price">¥{{item.price}}</text> |
|
|
|
<text class="goods-unit">/{{item.unit}}</text> |
|
|
|
<text class="goods-price" v-if="item.price">¥{{(item.price / item.count).toFixed(2)}}</text> |
|
|
|
<text class="goods-unit" v-if="item.price && item.unit">/{{item.unit}}</text> |
|
|
|
<text class="goods-count">x{{item.count}}</text> |
|
|
|
</view> |
|
|
|
<!-- <view class="goods-total">¥{{item.total}}</view> --> |
|
|
@ -79,8 +79,8 @@ |
|
|
|
<!-- <view class="goods-desc">{{item.desc}}</view> --> |
|
|
|
<view class="goods-bottom-row"> |
|
|
|
<view class="goods-price-row problem-price-row"> |
|
|
|
<!-- <text class="goods-price">¥{{item.price}}</text> |
|
|
|
<text class="goods-unit">/件</text> --> |
|
|
|
<text class="goods-price" v-if="item.price">¥{{(item.price / item.count).toFixed(2)}}</text> |
|
|
|
<text class="goods-unit" v-if="item.price">/件</text> |
|
|
|
<text class="goods-count">x{{item.count}}</text> |
|
|
|
</view> |
|
|
|
<!-- <view class="goods-total">¥{{item.total}}</view> --> |
|
|
@ -110,8 +110,8 @@ |
|
|
|
<!-- <view class="goods-desc">{{item.desc}}</view> --> |
|
|
|
<view class="goods-bottom-row"> |
|
|
|
<view class="goods-price-row problem-price-row"> |
|
|
|
<!-- <text class="goods-price">¥{{item.price}}</text> |
|
|
|
<text class="goods-unit">/件</text> --> |
|
|
|
<text class="goods-price" v-if="item.price">¥{{(item.price / item.count).toFixed(2)}}</text> |
|
|
|
<text class="goods-unit" v-if="item.price">/件</text> |
|
|
|
<text class="goods-count">x{{item.count}}</text> |
|
|
|
</view> |
|
|
|
<!-- <view class="goods-total">¥{{item.total}}</view> --> |
|
|
@ -167,20 +167,19 @@ export default { |
|
|
|
return this.goodsList.reduce((sum, item) => sum + item.count, 0) |
|
|
|
}, |
|
|
|
totalAmount() { |
|
|
|
console.log('this.goodsList', this.goodsList) |
|
|
|
return this.goodsList.reduce((sum, item) => sum + item.total, 0).toFixed(2) |
|
|
|
return this.goodsList.reduce((sum, item) => sum + item.price, 0).toFixed(2) |
|
|
|
}, |
|
|
|
problemCount() { |
|
|
|
return this.problemList.reduce((sum, item) => sum + item.count, 0) |
|
|
|
}, |
|
|
|
problemAmount() { |
|
|
|
return this.problemList.reduce((sum, item) => sum + item.total, 0).toFixed(2) |
|
|
|
return this.problemList.reduce((sum, item) => sum + item.price, 0).toFixed(2) |
|
|
|
}, |
|
|
|
unrecyclableCount() { |
|
|
|
return this.unrecyclableList.reduce((sum, item) => sum + item.count, 0) |
|
|
|
}, |
|
|
|
unrecyclableAmount() { |
|
|
|
return this.unrecyclableList.reduce((sum, item) => sum + item.total, 0).toFixed(2) |
|
|
|
return this.unrecyclableList.reduce((sum, item) => sum + item.price, 0).toFixed(2) |
|
|
|
}, |
|
|
|
fixedHeaderHeight() { |
|
|
|
// 导航栏高度 + 状态栏高度 + 特性区域高度 (约140rpx转px) |
|
|
|