|
|
|
@ -316,6 +316,20 @@ class _SettlementOrderCommodity extends State<SettlementOrderCommodity> {
|
|
|
|
|
); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
String countAllGoods(){ |
|
|
|
|
int count = 0; |
|
|
|
|
if(widget.minOrderInfo != null){ |
|
|
|
|
widget.minOrderInfo.orderProductVOList.forEach((element) { |
|
|
|
|
count += element.buyNum; |
|
|
|
|
}); |
|
|
|
|
}else if(widget.settleOrderInfo != null){ |
|
|
|
|
widget.settleOrderInfo.orderProductList.forEach((element) { |
|
|
|
|
count += element.buyNum; |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
return count.toString(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
Widget buildTotalPrice() { |
|
|
|
|
return Container( |
|
|
|
|
margin: EdgeInsets.only(top: 7.h, bottom: 11.h), |
|
|
|
@ -326,13 +340,7 @@ class _SettlementOrderCommodity extends State<SettlementOrderCommodity> {
|
|
|
|
|
children: [ |
|
|
|
|
Expanded( |
|
|
|
|
child: Text( |
|
|
|
|
S.of(context).gongjijianshangpin((widget.minOrderInfo != null) |
|
|
|
|
? ((widget.minOrderInfo != null) |
|
|
|
|
? widget.minOrderInfo.orderProductVOList.length |
|
|
|
|
: "0") |
|
|
|
|
: (widget.settleOrderInfo != null) |
|
|
|
|
? widget.settleOrderInfo.orderProductList.length |
|
|
|
|
: "0"), |
|
|
|
|
S.of(context).gongjijianshangpin(countAllGoods()), |
|
|
|
|
style: TextStyle( |
|
|
|
|
fontSize: 10.sp, |
|
|
|
|
color: Color(0xFFA29E9E), |
|
|
|
|