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

5
lib/order/order_history_page.dart

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

Loading…
Cancel
Save