Browse Source

砍价流程ok;

zyh
w-R 3 years ago
parent
commit
ca20451c38
  1. 20
      lib/order/bargain_group_order.dart
  2. 3
      lib/store/shopping/shopping_home/bargain_details.dart

20
lib/order/bargain_group_order.dart

@ -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(() {});
});
}
},

3
lib/store/shopping/shopping_home/bargain_details.dart

@ -535,8 +535,7 @@ class _BargainDetails extends State<BargainDetails> {
),
],
),
if (limitNumber ==
(activityActRecordDetails?.actRecord?.joinNum ?? 0))
if ((activityActRecordDetails?.actRecord?.state ?? 0) == 1)
GestureDetector(
onTap: (){
toOrder();

Loading…
Cancel
Save