|
|
|
@ -243,21 +243,6 @@ class _ExchangeHistoryList extends State<ExchangeHistoryList> {
|
|
|
|
|
); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
String orderStatus(state) { |
|
|
|
|
String orderStatus = ""; |
|
|
|
|
switch (state) { |
|
|
|
|
case 1: |
|
|
|
|
orderStatus = S.of(context).weiwancheng; |
|
|
|
|
break; |
|
|
|
|
case 2: |
|
|
|
|
orderStatus = S.of(context).yiwancheng; |
|
|
|
|
break; |
|
|
|
|
case 9: |
|
|
|
|
orderStatus = S.of(context).yiquxiao; |
|
|
|
|
break; |
|
|
|
|
} |
|
|
|
|
return orderStatus; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
Widget bargainOrder(ActivityOrderList activityOrderList) { |
|
|
|
|
return Container( |
|
|
|
@ -321,7 +306,7 @@ class _ExchangeHistoryList extends State<ExchangeHistoryList> {
|
|
|
|
|
padding: EdgeInsets.only(top: 12.h, right: 12.w), |
|
|
|
|
child:Text( |
|
|
|
|
(widget.type == 1)?(widget.orderStatus == 4 ? "拼团失败" :(activityOrderList.howManyMore != 0 ? "还差${activityOrderList?.howManyMore ?? 0}人拼团成功" : "拼团成功")) |
|
|
|
|
:(widget.orderStatus == 4 ? "砍价失败" : (activityOrderList.howManyMoney != "0.00" ? "还差¥${activityOrderList?.howManyMoney ?? 0}砍价成功" : "砍价成功")), |
|
|
|
|
:(activityOrderList.actRecordState == 1 ? "待支付" :(widget.orderStatus == 4 ? "砍价失败" : (activityOrderList.howManyMoney != "0.00" ? "还差¥${activityOrderList?.howManyMoney ?? 0}砍价成功" : "砍价成功"))), |
|
|
|
|
style: TextStyle( |
|
|
|
|
fontSize: 14.sp, |
|
|
|
|
fontWeight: FontWeight.bold, |
|
|
|
@ -464,6 +449,9 @@ class _ExchangeHistoryList extends State<ExchangeHistoryList> {
|
|
|
|
|
"actRecordId": activityOrderList.actRecordId, |
|
|
|
|
"limitNumber":activityOrderList.successNumber, |
|
|
|
|
"storeInfo":storeInfo, |
|
|
|
|
}).then((value) { |
|
|
|
|
_refresh(); |
|
|
|
|
setState(() {}); |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|