Browse Source

更改;

zyh
w-R 3 years ago
parent
commit
84c1279e30
  1. 46
      lib/order/bargain_group_order.dart
  2. 5
      lib/order/order_history_page.dart
  3. 2
      lib/store/shopping/shopping_home/group_details.dart

46
lib/order/bargain_group_order.dart

@ -66,9 +66,9 @@ class _BargainGroupOrder extends State<BargainGroupOrder>
];
_pages = [
ExchangeHistoryList(0,type),
ExchangeHistoryList(1,type),
ExchangeHistoryList(2,type),
ExchangeHistoryList(3,type),
ExchangeHistoryList(4,type)
ExchangeHistoryList(3,type)
];
}
@ -252,25 +252,25 @@ class _ExchangeHistoryList extends State<ExchangeHistoryList> {
mainAxisAlignment: MainAxisAlignment.spaceBetween,
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Container(
width: 19.w,
height:21.h,
margin: EdgeInsets.only(left: 12.w, top: 12.h),
alignment: Alignment.center,
decoration: BoxDecoration(
color: Color(0xff32A060),
borderRadius: BorderRadius.circular(2),
),
child: Text(
// (orderInfo != null && orderInfo.isTakeOut == 0) ? "" : "",
"",
style: TextStyle(
fontSize: 12.sp,
fontWeight: FontWeight.bold,
color: Colors.white,
),
),
),
// Container(
// width: 19.w,
// height:21.h,
// margin: EdgeInsets.only(left: 12.w, top: 12.h),
// alignment: Alignment.center,
// decoration: BoxDecoration(
// color: Color(0xff32A060),
// borderRadius: BorderRadius.circular(2),
// ),
// child: Text(
// // (orderInfo != null && orderInfo.isTakeOut == 0) ? "" : "",
// "",
// style: TextStyle(
// fontSize: 12.sp,
// fontWeight: FontWeight.bold,
// color: Colors.white,
// ),
// ),
// ),
Expanded(
child: Container(
width: double.infinity,
@ -289,7 +289,7 @@ class _ExchangeHistoryList extends State<ExchangeHistoryList> {
),
Padding(
padding: EdgeInsets.only(top: 12.h, right: 12.w),
child: Text(
child:Text(
// (orderInfo != null &&
// orderInfo.storeVO != null &&
// orderInfo.storeVO.posType != null)
@ -301,7 +301,7 @@ class _ExchangeHistoryList extends State<ExchangeHistoryList> {
// orderInfo.sendStatus,
// orderInfo.isTakeOut)
// : "",
"还差${activityOrderList?.howManyMore ?? 0}人拼团成功",
activityOrderList.howManyMore != 0 ? "还差${activityOrderList?.howManyMore ?? 0}拼团成功" : "拼团成功",
style: TextStyle(
fontSize: 14.sp,
fontWeight: FontWeight.bold,

5
lib/order/order_history_page.dart

@ -242,6 +242,7 @@ class _OrderHistoryList extends State<OrderHistoryList>
mainAxisAlignment: MainAxisAlignment.spaceBetween,
crossAxisAlignment: CrossAxisAlignment.start,
children: [
(orderInfo != null && orderInfo.orderType == 0) ? Container():
Container(
width: 19,
height: 21,
@ -256,7 +257,7 @@ class _OrderHistoryList extends State<OrderHistoryList>
style: BorderStyle.solid,
)),
child: Text(
"",
(orderInfo != null && orderInfo.orderType == 7) ?"":"",
style: TextStyle(
fontSize: 12.sp,
fontWeight: FontWeight.bold,
@ -274,7 +275,7 @@ class _OrderHistoryList extends State<OrderHistoryList>
borderRadius: BorderRadius.circular(2),
),
child: Text(
(orderInfo != null && orderInfo.isTakeOut == 0) ? "" : "",
(orderInfo != null && orderInfo.isTakeOut == 0) ? "" : ((orderInfo != null && orderInfo.isTakeOut == 1) ? "" : ""),
style: TextStyle(
fontSize: 12.sp,
fontWeight: FontWeight.bold,

2
lib/store/shopping/shopping_home/group_details.dart

@ -497,7 +497,7 @@ class _GroupDetails extends State<GroupDetails> {
),
)),
),
if((activityActRecordDetails?.actRecord?.joinNum ?? 0) < limitNumber && tempDay != 0 && tempHour!=0 && tempM != 0 && tempS != 0)
if((activityActRecordDetails?.actRecord?.joinNum ?? 0) < limitNumber || tempDay != 0 && tempHour!=0 && tempM != 0 && tempS != 0)
InkWell(
onTap: () {
setState(() {

Loading…
Cancel
Save