|
|
@ -19,7 +19,7 @@ |
|
|
|
</block> |
|
|
|
</view> |
|
|
|
|
|
|
|
<view class="rgi-total"><text>共{{ orderInfo.goods_nums || 0 }}件</text><image class="rt-img" mode="aspectFit" src="/static/images/icon/arrow_b2.png"></image></view> |
|
|
|
<view class="rgi-total"><text>共{{ totalGoodsNum || 0 }}件</text><image class="rt-img" mode="aspectFit" src="/static/images/icon/arrow_b2.png"></image></view> |
|
|
|
</view> |
|
|
|
<view class="mo-total"><text class="mt-txt">商品金额合计:</text>¥{{ orderInfo.pay_amount || 0 }}</view> |
|
|
|
<view class="mo-bot"> |
|
|
@ -37,7 +37,16 @@ export default { |
|
|
|
isShowSendMethods(){ |
|
|
|
let { orderInfo } = this; |
|
|
|
return orderInfo.status == 2 || orderInfo.status == 3 || orderInfo.status == 5 || orderInfo.status == 6 |
|
|
|
}, |
|
|
|
}, |
|
|
|
totalGoodsNum(){ |
|
|
|
let { orderInfo } = this; |
|
|
|
if(!orderInfo)return 0; |
|
|
|
let _ls = orderInfo.goods || []; |
|
|
|
return _ls.reduce((total, item)=>{ |
|
|
|
total += +item.product_nums || 0; |
|
|
|
return total |
|
|
|
}, 0) |
|
|
|
} |
|
|
|
}, |
|
|
|
props: { |
|
|
|
|
|
|
|