|
|
|
@ -125,8 +125,8 @@ class _SettlementOrderCommodity extends State<SettlementOrderCommodity> {
|
|
|
|
|
children: [ |
|
|
|
|
MImage( |
|
|
|
|
productList.skuImg, |
|
|
|
|
width: 44, |
|
|
|
|
height: 44, |
|
|
|
|
width: 55, |
|
|
|
|
height: 55, |
|
|
|
|
fit: BoxFit.cover, |
|
|
|
|
radius: BorderRadius.circular(4), |
|
|
|
|
errorSrc: "assets/image/default_1.webp", |
|
|
|
@ -136,18 +136,14 @@ class _SettlementOrderCommodity extends State<SettlementOrderCommodity> {
|
|
|
|
|
flex: 1, |
|
|
|
|
child: Container( |
|
|
|
|
margin: EdgeInsets.only( |
|
|
|
|
left: 16.w, |
|
|
|
|
left:8.w, |
|
|
|
|
), |
|
|
|
|
// height: 44.h, |
|
|
|
|
child: Column( |
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceAround, |
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start, |
|
|
|
|
children: [ |
|
|
|
|
Row( |
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceBetween, |
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.center, |
|
|
|
|
children: [ |
|
|
|
|
Expanded(child: Text( |
|
|
|
|
Text( |
|
|
|
|
productList.productName, |
|
|
|
|
maxLines: 1, |
|
|
|
|
overflow: TextOverflow.ellipsis, |
|
|
|
@ -156,8 +152,18 @@ class _SettlementOrderCommodity extends State<SettlementOrderCommodity> {
|
|
|
|
|
fontSize: 14.sp, |
|
|
|
|
color: Color(0xFF353535), |
|
|
|
|
), |
|
|
|
|
),), |
|
|
|
|
|
|
|
|
|
), |
|
|
|
|
SizedBox(height: 4.h,), |
|
|
|
|
Text( |
|
|
|
|
productList.skuNameStr != null |
|
|
|
|
? "${productList.skuNameStr ?? ""}" |
|
|
|
|
: "", |
|
|
|
|
overflow: TextOverflow.ellipsis, |
|
|
|
|
style: TextStyle( |
|
|
|
|
fontSize: 10.sp, |
|
|
|
|
color: Color(0xFFA29E9E), |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
Text( |
|
|
|
|
"x${productList.buyNum}", |
|
|
|
|
style: TextStyle( |
|
|
|
@ -165,39 +171,35 @@ class _SettlementOrderCommodity extends State<SettlementOrderCommodity> {
|
|
|
|
|
color: Color(0xFF727272), |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
|
|
|
|
|
], |
|
|
|
|
), |
|
|
|
|
Row( |
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceBetween, |
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.center, |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
Column( |
|
|
|
|
mainAxisAlignment: MainAxisAlignment.start, |
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.end, |
|
|
|
|
children: [ |
|
|
|
|
Expanded( |
|
|
|
|
flex: 1, |
|
|
|
|
child: Text( |
|
|
|
|
productList.skuNameStr != null |
|
|
|
|
? "${productList.skuNameStr ?? ""}" |
|
|
|
|
: "", |
|
|
|
|
overflow: TextOverflow.ellipsis, |
|
|
|
|
Text( |
|
|
|
|
S.of(context).yuan_(AppUtils.calculateDouble(double.tryParse(productList.sellPrice ?? "0") - double.tryParse(productList.discountAmount ?? "0"))), |
|
|
|
|
style: TextStyle( |
|
|
|
|
fontSize: 12.sp, |
|
|
|
|
color: Color(0xFFA29E9E), |
|
|
|
|
), |
|
|
|
|
fontWeight: FontWeight.bold, |
|
|
|
|
fontSize: 14.sp, |
|
|
|
|
color: Color(0xFF4C4C4C), |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
if(productList.discountAmount != null) |
|
|
|
|
Text( |
|
|
|
|
S.of(context).yuan_(productList.sellPrice), |
|
|
|
|
style: TextStyle( |
|
|
|
|
fontWeight: FontWeight.bold, |
|
|
|
|
fontWeight: MyFontWeight.regular, |
|
|
|
|
fontSize: 12.sp, |
|
|
|
|
color: Color(0xFF4C4C4C), |
|
|
|
|
decoration: TextDecoration.lineThrough, |
|
|
|
|
color: Color(0xFFA29E9E), |
|
|
|
|
), |
|
|
|
|
) |
|
|
|
|
], |
|
|
|
|
), |
|
|
|
|
], |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
) |
|
|
|
|
], |
|
|
|
|
), |
|
|
|
|
); |
|
|
|
@ -409,9 +411,9 @@ class _SettlementOrderCommodity extends State<SettlementOrderCommodity> {
|
|
|
|
|
String totalPrice() { |
|
|
|
|
if (widget.minOrderInfo != null && |
|
|
|
|
widget.minOrderInfo.orderProductVOList != null) { |
|
|
|
|
return "${widget.minOrderInfo.finalPayPrice}"; |
|
|
|
|
return "¥${widget.minOrderInfo.finalPayPrice}"; |
|
|
|
|
} |
|
|
|
|
if (widget.settleOrderInfo.orderProductList == null) return ""; |
|
|
|
|
return "${widget.settleOrderInfo.price}"; |
|
|
|
|
return "¥${widget.settleOrderInfo.price}"; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|