|
|
|
@ -3,8 +3,11 @@ import 'package:flutter/cupertino.dart';
|
|
|
|
|
import 'package:flutter/material.dart'; |
|
|
|
|
import 'package:flutter_smart_dialog/flutter_smart_dialog.dart'; |
|
|
|
|
import 'package:huixiang/generated/l10n.dart'; |
|
|
|
|
import 'package:huixiang/order/order_view/order_commodity.dart'; |
|
|
|
|
import 'package:huixiang/order/order_view/order_info.dart'; |
|
|
|
|
import 'package:huixiang/retrofit/data/base_data.dart'; |
|
|
|
|
import 'package:huixiang/retrofit/data/coupon.dart'; |
|
|
|
|
import 'package:huixiang/retrofit/data/order_info.dart'; |
|
|
|
|
import 'package:huixiang/retrofit/data/settleOrderInfo.dart'; |
|
|
|
|
import 'package:huixiang/retrofit/data/store_info.dart'; |
|
|
|
|
import 'package:huixiang/retrofit/min_api.dart'; |
|
|
|
@ -57,21 +60,19 @@ class _Settlement extends State<Settlement> {
|
|
|
|
|
StoreInfo storeInfo; |
|
|
|
|
SettleOrderInfo settleOrderInfo; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
///订单结算信息 |
|
|
|
|
queryOrderInfo() async { |
|
|
|
|
BaseData<SettleOrderInfo> baseData = await minService.getOrderInfo({ |
|
|
|
|
"addressId":null, |
|
|
|
|
"addressId": null, |
|
|
|
|
"isTake": 0, |
|
|
|
|
"memberCouponId": null, |
|
|
|
|
// "orderId": widget.arguments["orderId"], |
|
|
|
|
"orderId":"1449199929208602624", |
|
|
|
|
"orderId": "1449199929208602624", |
|
|
|
|
"promotionId": null |
|
|
|
|
}); |
|
|
|
|
if (baseData != null && baseData.isSuccess) { |
|
|
|
|
settleOrderInfo = baseData.data; |
|
|
|
|
setState(() { |
|
|
|
|
}); |
|
|
|
|
setState(() {}); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -95,7 +96,7 @@ class _Settlement extends State<Settlement> {
|
|
|
|
|
appBar: MyAppBar( |
|
|
|
|
background: Color(0xFF3A405A), |
|
|
|
|
leadingColor: Colors.white, |
|
|
|
|
title:S.of(context).dingdanjiesuan, |
|
|
|
|
title: S.of(context).dingdanjiesuan, |
|
|
|
|
titleColor: Colors.white, |
|
|
|
|
titleSize: 18.sp, |
|
|
|
|
), |
|
|
|
@ -106,10 +107,12 @@ class _Settlement extends State<Settlement> {
|
|
|
|
|
child: Column( |
|
|
|
|
children: [ |
|
|
|
|
distributionMode(), |
|
|
|
|
SizedBox(height: 14,), |
|
|
|
|
SizedBox( |
|
|
|
|
height: 14, |
|
|
|
|
), |
|
|
|
|
|
|
|
|
|
///订单商品 |
|
|
|
|
SettlementOrderCommodity(settleOrderInfo,0), |
|
|
|
|
SettlementOrderCommodity(settleOrderInfo, 0), |
|
|
|
|
// if (payStatus == 0) couponRemarks(), |
|
|
|
|
/*(payStatus == 0) ? paySelector() : */ |
|
|
|
|
|
|
|
|
@ -118,7 +121,6 @@ class _Settlement extends State<Settlement> {
|
|
|
|
|
|
|
|
|
|
///支付方式 |
|
|
|
|
payMethod(), |
|
|
|
|
|
|
|
|
|
], |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
@ -134,49 +136,48 @@ class _Settlement extends State<Settlement> {
|
|
|
|
|
bottom: 0, |
|
|
|
|
left: 0, |
|
|
|
|
right: 0, |
|
|
|
|
child: |
|
|
|
|
Container( |
|
|
|
|
height: 54.h, |
|
|
|
|
color: Colors.white, |
|
|
|
|
child: Row( |
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.center, |
|
|
|
|
children: [ |
|
|
|
|
Spacer(), |
|
|
|
|
Text( |
|
|
|
|
S.of(context).heji, |
|
|
|
|
style: TextStyle( |
|
|
|
|
fontSize: 12.sp, |
|
|
|
|
fontWeight: MyFontWeight.regular, |
|
|
|
|
color: Colors.black, |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
Text( |
|
|
|
|
"¥19.00", |
|
|
|
|
style: TextStyle( |
|
|
|
|
fontSize: 20.sp, |
|
|
|
|
fontWeight: MyFontWeight.semi_bold, |
|
|
|
|
color: Color(0xFF32A060), |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
SizedBox(width: 28,), |
|
|
|
|
GestureDetector( |
|
|
|
|
onTap: () { |
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
child: RoundButton( |
|
|
|
|
width: 103.w, |
|
|
|
|
height: 54.h, |
|
|
|
|
text: S.current.jiesuan, |
|
|
|
|
textColor: Colors.white, |
|
|
|
|
fontWeight: MyFontWeight.regular, |
|
|
|
|
backgroup: Color(0xFF32A060), |
|
|
|
|
fontSize: 16.sp, |
|
|
|
|
padding: EdgeInsets.symmetric(vertical: 5.h), |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
], |
|
|
|
|
child: Container( |
|
|
|
|
height: 54.h, |
|
|
|
|
color: Colors.white, |
|
|
|
|
child: Row( |
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.center, |
|
|
|
|
children: [ |
|
|
|
|
Spacer(), |
|
|
|
|
Text( |
|
|
|
|
S.of(context).heji, |
|
|
|
|
style: TextStyle( |
|
|
|
|
fontSize: 12.sp, |
|
|
|
|
fontWeight: MyFontWeight.regular, |
|
|
|
|
color: Colors.black, |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
Text( |
|
|
|
|
"¥19.00", |
|
|
|
|
style: TextStyle( |
|
|
|
|
fontSize: 20.sp, |
|
|
|
|
fontWeight: MyFontWeight.semi_bold, |
|
|
|
|
color: Color(0xFF32A060), |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
SizedBox( |
|
|
|
|
width: 28, |
|
|
|
|
), |
|
|
|
|
GestureDetector( |
|
|
|
|
onTap: () {}, |
|
|
|
|
child: RoundButton( |
|
|
|
|
width: 103.w, |
|
|
|
|
height: 54.h, |
|
|
|
|
text: S.current.jiesuan, |
|
|
|
|
textColor: Colors.white, |
|
|
|
|
fontWeight: MyFontWeight.regular, |
|
|
|
|
backgroup: Color(0xFF32A060), |
|
|
|
|
fontSize: 16.sp, |
|
|
|
|
padding: EdgeInsets.symmetric(vertical: 5.h), |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
], |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
) |
|
|
|
|
], |
|
|
|
|
); |
|
|
|
@ -186,7 +187,6 @@ class _Settlement extends State<Settlement> {
|
|
|
|
|
String center = ""; |
|
|
|
|
TextEditingController _vc = TextEditingController(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Widget distributionMode() { |
|
|
|
|
return Container( |
|
|
|
|
decoration: BoxDecoration( |
|
|
|
@ -223,37 +223,40 @@ class _Settlement extends State<Settlement> {
|
|
|
|
|
Expanded( |
|
|
|
|
flex: 1, |
|
|
|
|
child: Container( |
|
|
|
|
height: 50.h, |
|
|
|
|
decoration: BoxDecoration( |
|
|
|
|
image: selectedBtn == 0 |
|
|
|
|
? DecorationImage( |
|
|
|
|
image: AssetImage( |
|
|
|
|
"assets/image/order_btn1.png"), |
|
|
|
|
fit: BoxFit.fill, |
|
|
|
|
) |
|
|
|
|
: null, |
|
|
|
|
borderRadius: BorderRadius.only( |
|
|
|
|
topLeft: Radius.circular(8))), |
|
|
|
|
child: GestureDetector( |
|
|
|
|
onTap: () { |
|
|
|
|
setState(() { |
|
|
|
|
selectedBtn = 0; |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
child: Stack( |
|
|
|
|
alignment: Alignment.center, |
|
|
|
|
children: [ |
|
|
|
|
Text( |
|
|
|
|
S.of(context).daodianziqu, |
|
|
|
|
style: TextStyle( |
|
|
|
|
fontSize: 14.sp, |
|
|
|
|
fontWeight: MyFontWeight.semi_bold, |
|
|
|
|
color: Colors.black, |
|
|
|
|
), |
|
|
|
|
height: 50.h, |
|
|
|
|
decoration: BoxDecoration( |
|
|
|
|
image: selectedBtn == 0 |
|
|
|
|
? DecorationImage( |
|
|
|
|
image: |
|
|
|
|
AssetImage("assets/image/order_btn1.png"), |
|
|
|
|
fit: BoxFit.fill, |
|
|
|
|
) |
|
|
|
|
: null, |
|
|
|
|
borderRadius: BorderRadius.only( |
|
|
|
|
topLeft: Radius.circular(8), |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
child: GestureDetector( |
|
|
|
|
onTap: () { |
|
|
|
|
setState(() { |
|
|
|
|
selectedBtn = 0; |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
child: Stack( |
|
|
|
|
alignment: Alignment.center, |
|
|
|
|
children: [ |
|
|
|
|
Text( |
|
|
|
|
S.of(context).daodianziqu, |
|
|
|
|
style: TextStyle( |
|
|
|
|
fontSize: 14.sp, |
|
|
|
|
fontWeight: MyFontWeight.semi_bold, |
|
|
|
|
color: Colors.black, |
|
|
|
|
), |
|
|
|
|
], |
|
|
|
|
), |
|
|
|
|
)), |
|
|
|
|
), |
|
|
|
|
], |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
Expanded( |
|
|
|
|
flex: 1, |
|
|
|
@ -273,7 +276,7 @@ class _Settlement extends State<Settlement> {
|
|
|
|
|
fit: BoxFit.fill, |
|
|
|
|
), |
|
|
|
|
Text( |
|
|
|
|
S.of(context).waimaipeisong, |
|
|
|
|
S.of(context).waimaipeisong, |
|
|
|
|
style: TextStyle( |
|
|
|
|
fontSize: 14.sp, |
|
|
|
|
fontWeight: MyFontWeight.regular, |
|
|
|
@ -287,68 +290,214 @@ class _Settlement extends State<Settlement> {
|
|
|
|
|
Expanded( |
|
|
|
|
flex: 1, |
|
|
|
|
child: Container( |
|
|
|
|
height: 50.h, |
|
|
|
|
decoration: BoxDecoration( |
|
|
|
|
image: selectedBtn == 2 |
|
|
|
|
? DecorationImage( |
|
|
|
|
image: AssetImage( |
|
|
|
|
"assets/image/order_btn3.png"), |
|
|
|
|
fit: BoxFit.fill, |
|
|
|
|
) |
|
|
|
|
: null, |
|
|
|
|
borderRadius: BorderRadius.only( |
|
|
|
|
topRight: Radius.circular(8))), |
|
|
|
|
child: GestureDetector( |
|
|
|
|
onTap: () { |
|
|
|
|
setState(() { |
|
|
|
|
// selectedBtn = 2; |
|
|
|
|
SmartDialog.showToast("该功能暂未开放!", alignment: Alignment.center); |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
child: Stack( |
|
|
|
|
alignment: Alignment.center, |
|
|
|
|
children: [ |
|
|
|
|
Text( |
|
|
|
|
S.of(context).kuaidiwuliu, |
|
|
|
|
style: TextStyle( |
|
|
|
|
fontSize: 14.sp, |
|
|
|
|
fontWeight: MyFontWeight.regular, |
|
|
|
|
color: Colors.black, |
|
|
|
|
), |
|
|
|
|
height: 50.h, |
|
|
|
|
decoration: BoxDecoration( |
|
|
|
|
image: selectedBtn == 2 |
|
|
|
|
? DecorationImage( |
|
|
|
|
image: |
|
|
|
|
AssetImage("assets/image/order_btn3.png"), |
|
|
|
|
fit: BoxFit.fill, |
|
|
|
|
) |
|
|
|
|
: null, |
|
|
|
|
borderRadius: BorderRadius.only( |
|
|
|
|
topRight: Radius.circular(8), |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
child: GestureDetector( |
|
|
|
|
onTap: () { |
|
|
|
|
setState(() { |
|
|
|
|
// selectedBtn = 2; |
|
|
|
|
SmartDialog.showToast("该功能暂未开放!", |
|
|
|
|
alignment: Alignment.center); |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
child: Stack( |
|
|
|
|
alignment: Alignment.center, |
|
|
|
|
children: [ |
|
|
|
|
Text( |
|
|
|
|
S.of(context).kuaidiwuliu, |
|
|
|
|
style: TextStyle( |
|
|
|
|
fontSize: 14.sp, |
|
|
|
|
fontWeight: MyFontWeight.regular, |
|
|
|
|
color: Colors.black, |
|
|
|
|
), |
|
|
|
|
], |
|
|
|
|
), |
|
|
|
|
)), |
|
|
|
|
), |
|
|
|
|
], |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
], |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
selectedBtn == 0 ? |
|
|
|
|
Container( |
|
|
|
|
width: double.infinity, |
|
|
|
|
padding: EdgeInsets.only(left: 16, right: 16, top: 15), |
|
|
|
|
child: Column( |
|
|
|
|
children: [ |
|
|
|
|
Row( |
|
|
|
|
children: [ |
|
|
|
|
Expanded(child:Column( |
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceBetween, |
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start, |
|
|
|
|
children: [ |
|
|
|
|
Text( |
|
|
|
|
storeInfo != null ? (storeInfo.storeName ?? "") : "", |
|
|
|
|
overflow: TextOverflow.ellipsis, |
|
|
|
|
style: TextStyle( |
|
|
|
|
fontSize: 14.sp, |
|
|
|
|
fontWeight: MyFontWeight.semi_bold, |
|
|
|
|
color: Color(0xFF4C4C4C), |
|
|
|
|
selectedBtn == 0 |
|
|
|
|
? Container( |
|
|
|
|
width: double.infinity, |
|
|
|
|
padding: EdgeInsets.only(left: 16, right: 16, top: 15), |
|
|
|
|
child: Column( |
|
|
|
|
children: [ |
|
|
|
|
Row( |
|
|
|
|
children: [ |
|
|
|
|
Expanded( |
|
|
|
|
child: Column( |
|
|
|
|
mainAxisAlignment: |
|
|
|
|
MainAxisAlignment.spaceBetween, |
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start, |
|
|
|
|
children: [ |
|
|
|
|
Text( |
|
|
|
|
storeInfo != null |
|
|
|
|
? (storeInfo.storeName ?? "") |
|
|
|
|
: "", |
|
|
|
|
overflow: TextOverflow.ellipsis, |
|
|
|
|
style: TextStyle( |
|
|
|
|
fontSize: 14.sp, |
|
|
|
|
fontWeight: MyFontWeight.semi_bold, |
|
|
|
|
color: Color(0xFF4C4C4C), |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
SizedBox( |
|
|
|
|
height: 4, |
|
|
|
|
), |
|
|
|
|
Text( |
|
|
|
|
storeInfo != null |
|
|
|
|
? storeInfo.address |
|
|
|
|
: "", |
|
|
|
|
overflow: TextOverflow.ellipsis, |
|
|
|
|
maxLines: 2, |
|
|
|
|
style: TextStyle( |
|
|
|
|
fontSize: 12.sp, |
|
|
|
|
fontWeight: MyFontWeight.regular, |
|
|
|
|
color: Color(0xFF727272), |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
SizedBox( |
|
|
|
|
height: 12, |
|
|
|
|
), |
|
|
|
|
], |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
SizedBox( |
|
|
|
|
height: 4, |
|
|
|
|
), |
|
|
|
|
Text( |
|
|
|
|
storeInfo != null ? storeInfo.address : "", |
|
|
|
|
SizedBox( |
|
|
|
|
width: 18, |
|
|
|
|
), |
|
|
|
|
Stack( |
|
|
|
|
alignment: Alignment.center, |
|
|
|
|
children: [ |
|
|
|
|
Column( |
|
|
|
|
children: [ |
|
|
|
|
Image.asset( |
|
|
|
|
"assets/image/map.png", |
|
|
|
|
height: 61.h, |
|
|
|
|
width: 61.w, |
|
|
|
|
), |
|
|
|
|
], |
|
|
|
|
), |
|
|
|
|
Column( |
|
|
|
|
children: [ |
|
|
|
|
RoundButton( |
|
|
|
|
width: 41.w, |
|
|
|
|
height: 13, |
|
|
|
|
text: "距离您11m", |
|
|
|
|
textColor: Color(0xFF34A262), |
|
|
|
|
fontWeight: MyFontWeight.semi_bold, |
|
|
|
|
radius: 7.5, |
|
|
|
|
backgroup: Colors.white, |
|
|
|
|
fontSize: 7.sp, |
|
|
|
|
), |
|
|
|
|
Image.asset( |
|
|
|
|
"assets/image/landmark.png", |
|
|
|
|
height: 24.h, |
|
|
|
|
width: 24.w, |
|
|
|
|
), |
|
|
|
|
], |
|
|
|
|
), |
|
|
|
|
], |
|
|
|
|
) |
|
|
|
|
], |
|
|
|
|
), |
|
|
|
|
Row( |
|
|
|
|
children: [ |
|
|
|
|
Expanded( |
|
|
|
|
child: Text( |
|
|
|
|
S.of(context).yuliudianhua, |
|
|
|
|
overflow: TextOverflow.ellipsis, |
|
|
|
|
style: TextStyle( |
|
|
|
|
fontSize: 14.sp, |
|
|
|
|
fontWeight: MyFontWeight.regular, |
|
|
|
|
color: Color(0xFF4C4C4C), |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
Text( |
|
|
|
|
storeInfo != null ? storeInfo.headMobile : "", |
|
|
|
|
style: TextStyle( |
|
|
|
|
fontSize: 14.sp, |
|
|
|
|
fontWeight: MyFontWeight.medium, |
|
|
|
|
color: Color(0xFF4C4C4C), |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
GestureDetector( |
|
|
|
|
onTap: () { |
|
|
|
|
showAlertDialog(); |
|
|
|
|
}, |
|
|
|
|
child: Image.asset( |
|
|
|
|
"assets/image/pen.png", |
|
|
|
|
height: 14.h, |
|
|
|
|
width: 14.w, |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
], |
|
|
|
|
) |
|
|
|
|
], |
|
|
|
|
), |
|
|
|
|
) |
|
|
|
|
: Container( |
|
|
|
|
width: double.infinity, |
|
|
|
|
padding: EdgeInsets.only(left: 16, right: 16, top: 15), |
|
|
|
|
child: Column( |
|
|
|
|
children: [ |
|
|
|
|
Row( |
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceBetween, |
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.center, |
|
|
|
|
children: [ |
|
|
|
|
Image.asset( |
|
|
|
|
"assets/image/icon_permission_location.png", |
|
|
|
|
height: 24.h, |
|
|
|
|
width: 24.w, |
|
|
|
|
), |
|
|
|
|
Text( |
|
|
|
|
"张先生", |
|
|
|
|
overflow: TextOverflow.ellipsis, |
|
|
|
|
style: TextStyle( |
|
|
|
|
fontSize: 15.sp, |
|
|
|
|
fontWeight: MyFontWeight.medium, |
|
|
|
|
color: Color(0xFF4C4C4C), |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
SizedBox( |
|
|
|
|
width: 13, |
|
|
|
|
), |
|
|
|
|
Expanded( |
|
|
|
|
child: Text( |
|
|
|
|
"12309090909", |
|
|
|
|
overflow: TextOverflow.ellipsis, |
|
|
|
|
maxLines: 2, |
|
|
|
|
style: TextStyle( |
|
|
|
|
fontSize: 15.sp, |
|
|
|
|
fontWeight: MyFontWeight.medium, |
|
|
|
|
color: Color(0xFF4C4C4C), |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
Icon( |
|
|
|
|
Icons.keyboard_arrow_right, |
|
|
|
|
size: 24, |
|
|
|
|
), |
|
|
|
|
], |
|
|
|
|
), |
|
|
|
|
Padding( |
|
|
|
|
padding: EdgeInsets.only(top: 4, left: 25), |
|
|
|
|
child: Text( |
|
|
|
|
"武昌区中国铁建凯德1818蓝调步行街中北路109附33门牌号05", |
|
|
|
|
overflow: TextOverflow.ellipsis, |
|
|
|
|
maxLines: 2, |
|
|
|
|
style: TextStyle( |
|
|
|
@ -357,136 +506,10 @@ class _Settlement extends State<Settlement> {
|
|
|
|
|
color: Color(0xFF727272), |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
SizedBox( |
|
|
|
|
height: 12, |
|
|
|
|
), |
|
|
|
|
], |
|
|
|
|
),), |
|
|
|
|
SizedBox( |
|
|
|
|
width: 18, |
|
|
|
|
), |
|
|
|
|
Stack( |
|
|
|
|
alignment: Alignment.center, |
|
|
|
|
children: [ |
|
|
|
|
Column( |
|
|
|
|
children: [ |
|
|
|
|
Image.asset( |
|
|
|
|
"assets/image/map.png", |
|
|
|
|
height: 61.h, |
|
|
|
|
width:61.w, |
|
|
|
|
), |
|
|
|
|
], |
|
|
|
|
), |
|
|
|
|
Column(children: [ |
|
|
|
|
RoundButton( |
|
|
|
|
width: 41.w, |
|
|
|
|
height: 13, |
|
|
|
|
text: "距离您11m", |
|
|
|
|
textColor:Color(0xFF34A262), |
|
|
|
|
fontWeight: MyFontWeight.semi_bold, |
|
|
|
|
radius:7.5, |
|
|
|
|
backgroup:Colors.white, |
|
|
|
|
fontSize:7.sp, |
|
|
|
|
), |
|
|
|
|
Image.asset( |
|
|
|
|
"assets/image/landmark.png", |
|
|
|
|
height: 24.h, |
|
|
|
|
width:24.w, |
|
|
|
|
), |
|
|
|
|
],), |
|
|
|
|
], |
|
|
|
|
) |
|
|
|
|
], |
|
|
|
|
), |
|
|
|
|
Row( |
|
|
|
|
children: [ |
|
|
|
|
Expanded(child: Text( |
|
|
|
|
S.of(context).yuliudianhua, |
|
|
|
|
overflow: TextOverflow.ellipsis, |
|
|
|
|
style: TextStyle( |
|
|
|
|
fontSize: 14.sp, |
|
|
|
|
fontWeight: MyFontWeight.regular, |
|
|
|
|
color: Color(0xFF4C4C4C), |
|
|
|
|
), |
|
|
|
|
)), |
|
|
|
|
Text( |
|
|
|
|
storeInfo != null ? storeInfo.headMobile:"", |
|
|
|
|
style: TextStyle( |
|
|
|
|
fontSize: 14.sp, |
|
|
|
|
fontWeight: MyFontWeight.medium, |
|
|
|
|
color: Color(0xFF4C4C4C), |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
GestureDetector( |
|
|
|
|
onTap: (){ |
|
|
|
|
showAlertDialog(); |
|
|
|
|
}, |
|
|
|
|
child:Image.asset( |
|
|
|
|
"assets/image/pen.png", |
|
|
|
|
height:14.h, |
|
|
|
|
width:14.w, |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
], |
|
|
|
|
) |
|
|
|
|
], |
|
|
|
|
), |
|
|
|
|
) |
|
|
|
|
: Container( |
|
|
|
|
width: double.infinity, |
|
|
|
|
padding: EdgeInsets.only(left: 16, right: 16, top: 15), |
|
|
|
|
child: Column( |
|
|
|
|
children: [ |
|
|
|
|
Row( |
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceBetween, |
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.center, |
|
|
|
|
children: [ |
|
|
|
|
Image.asset( |
|
|
|
|
"assets/image/icon_permission_location.png", |
|
|
|
|
height:24.h, |
|
|
|
|
width:24.w, |
|
|
|
|
), Text( |
|
|
|
|
"张先生", |
|
|
|
|
overflow: TextOverflow.ellipsis, |
|
|
|
|
style: TextStyle( |
|
|
|
|
fontSize: 15.sp, |
|
|
|
|
fontWeight: MyFontWeight.medium, |
|
|
|
|
color: Color(0xFF4C4C4C), |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
SizedBox( |
|
|
|
|
width: 13, |
|
|
|
|
), |
|
|
|
|
Expanded(child: Text( |
|
|
|
|
"12309090909", |
|
|
|
|
overflow: TextOverflow.ellipsis, |
|
|
|
|
maxLines: 2, |
|
|
|
|
style: TextStyle( |
|
|
|
|
fontSize: 15.sp, |
|
|
|
|
fontWeight: MyFontWeight.medium, |
|
|
|
|
color: Color(0xFF4C4C4C), |
|
|
|
|
), |
|
|
|
|
),), |
|
|
|
|
Icon( |
|
|
|
|
Icons.keyboard_arrow_right, |
|
|
|
|
size:24, |
|
|
|
|
), |
|
|
|
|
], |
|
|
|
|
), |
|
|
|
|
Padding(padding:EdgeInsets.only(top: 4,left:25), |
|
|
|
|
child: Text( |
|
|
|
|
"武昌区中国铁建凯德1818蓝调步行街中北路109附33门牌号05", |
|
|
|
|
overflow: TextOverflow.ellipsis, |
|
|
|
|
maxLines: 2, |
|
|
|
|
style: TextStyle( |
|
|
|
|
fontSize: 12.sp, |
|
|
|
|
fontWeight: MyFontWeight.regular, |
|
|
|
|
color: Color(0xFF727272), |
|
|
|
|
], |
|
|
|
|
), |
|
|
|
|
),), |
|
|
|
|
], |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
], |
|
|
|
|
), |
|
|
|
|
], |
|
|
|
@ -494,7 +517,7 @@ class _Settlement extends State<Settlement> {
|
|
|
|
|
); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
Widget activityRemarks(){ |
|
|
|
|
Widget activityRemarks() { |
|
|
|
|
return Container( |
|
|
|
|
decoration: BoxDecoration( |
|
|
|
|
color: Colors.white, |
|
|
|
@ -509,29 +532,40 @@ class _Settlement extends State<Settlement> {
|
|
|
|
|
borderRadius: BorderRadius.circular(8), |
|
|
|
|
), |
|
|
|
|
height: 86.h, |
|
|
|
|
margin: EdgeInsets.only(left: 16, right: 16, top: 15), |
|
|
|
|
padding: EdgeInsets.only(left: 16, right: 16, top: 16), |
|
|
|
|
margin: EdgeInsets.only( |
|
|
|
|
left: 16, |
|
|
|
|
right: 16, |
|
|
|
|
top: 15, |
|
|
|
|
), |
|
|
|
|
padding: EdgeInsets.only( |
|
|
|
|
left: 16, |
|
|
|
|
right: 16, |
|
|
|
|
top: 16, |
|
|
|
|
), |
|
|
|
|
child: Column( |
|
|
|
|
children: [ |
|
|
|
|
Row( |
|
|
|
|
mainAxisAlignment: MainAxisAlignment.center, |
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.center, |
|
|
|
|
children: [ |
|
|
|
|
Expanded(flex: 1,child:Text( |
|
|
|
|
S.of(context).youhuiquan, |
|
|
|
|
style: TextStyle( |
|
|
|
|
fontWeight: MyFontWeight.regular, |
|
|
|
|
fontSize: 14.sp, |
|
|
|
|
color: Color(0xFF353535), |
|
|
|
|
Expanded( |
|
|
|
|
flex: 1, |
|
|
|
|
child: Text( |
|
|
|
|
S.of(context).youhuiquan, |
|
|
|
|
style: TextStyle( |
|
|
|
|
fontWeight: MyFontWeight.regular, |
|
|
|
|
fontSize: 14.sp, |
|
|
|
|
color: Color(0xFF353535), |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
)), |
|
|
|
|
), |
|
|
|
|
Text( |
|
|
|
|
"满30减10", |
|
|
|
|
textAlign: TextAlign.end, |
|
|
|
|
style: TextStyle( |
|
|
|
|
fontSize: 14.sp, |
|
|
|
|
color: Color(0xFF32A060), |
|
|
|
|
fontWeight: MyFontWeight.semi_bold |
|
|
|
|
fontWeight: MyFontWeight.semi_bold, |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
InkWell( |
|
|
|
@ -540,35 +574,38 @@ class _Settlement extends State<Settlement> {
|
|
|
|
|
couponCart(); |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
child: Icon( |
|
|
|
|
child: Icon( |
|
|
|
|
Icons.keyboard_arrow_right, |
|
|
|
|
size: 16, |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
|
|
|
|
|
], |
|
|
|
|
), |
|
|
|
|
SizedBox(height: 13, |
|
|
|
|
SizedBox( |
|
|
|
|
height: 13, |
|
|
|
|
), |
|
|
|
|
Row( |
|
|
|
|
mainAxisAlignment: MainAxisAlignment.center, |
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.center, |
|
|
|
|
children: [ |
|
|
|
|
Expanded(flex: 1,child:Text( |
|
|
|
|
S.of(context).beizhu, |
|
|
|
|
style: TextStyle( |
|
|
|
|
fontWeight: MyFontWeight.regular, |
|
|
|
|
fontSize: 14.sp, |
|
|
|
|
color: Color(0xFF353535), |
|
|
|
|
Expanded( |
|
|
|
|
flex: 1, |
|
|
|
|
child: Text( |
|
|
|
|
S.of(context).beizhu, |
|
|
|
|
style: TextStyle( |
|
|
|
|
fontWeight: MyFontWeight.regular, |
|
|
|
|
fontSize: 14.sp, |
|
|
|
|
color: Color(0xFF353535), |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
)), |
|
|
|
|
), |
|
|
|
|
Text( |
|
|
|
|
"口味、面包硬度等", |
|
|
|
|
textAlign: TextAlign.end, |
|
|
|
|
style: TextStyle( |
|
|
|
|
fontSize: 14.sp, |
|
|
|
|
color: Color(0xFF353535), |
|
|
|
|
fontWeight: MyFontWeight.semi_bold |
|
|
|
|
fontSize: 14.sp, |
|
|
|
|
color: Color(0xFF353535), |
|
|
|
|
fontWeight: MyFontWeight.semi_bold, |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
Icon( |
|
|
|
@ -582,7 +619,7 @@ class _Settlement extends State<Settlement> {
|
|
|
|
|
); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
Widget payMethod(){ |
|
|
|
|
Widget payMethod() { |
|
|
|
|
return Container( |
|
|
|
|
width: double.infinity, |
|
|
|
|
margin: EdgeInsets.only( |
|
|
|
@ -619,14 +656,14 @@ class _Settlement extends State<Settlement> {
|
|
|
|
|
style: TextStyle( |
|
|
|
|
fontSize: 16.sp, |
|
|
|
|
color: Colors.black, |
|
|
|
|
fontWeight:MyFontWeight.regular, |
|
|
|
|
fontWeight: MyFontWeight.regular, |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
GestureDetector( |
|
|
|
|
onTap: () { |
|
|
|
|
setState(() { |
|
|
|
|
checkIndex =1; |
|
|
|
|
checkIndex = 1; |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
child: Row( |
|
|
|
@ -637,19 +674,20 @@ class _Settlement extends State<Settlement> {
|
|
|
|
|
Text( |
|
|
|
|
S.of(context).pingtaiyue, |
|
|
|
|
style: TextStyle( |
|
|
|
|
fontSize: 14.sp, |
|
|
|
|
color: Color(0xff353535), |
|
|
|
|
fontWeight: MyFontWeight.semi_bold |
|
|
|
|
), |
|
|
|
|
fontSize: 14.sp, |
|
|
|
|
color: Color(0xff353535), |
|
|
|
|
fontWeight: MyFontWeight.semi_bold), |
|
|
|
|
), |
|
|
|
|
], |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
SizedBox(height: 10,), |
|
|
|
|
SizedBox( |
|
|
|
|
height: 10, |
|
|
|
|
), |
|
|
|
|
GestureDetector( |
|
|
|
|
onTap: () { |
|
|
|
|
setState(() { |
|
|
|
|
checkIndex =2; |
|
|
|
|
checkIndex = 2; |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
child: Row( |
|
|
|
@ -662,13 +700,15 @@ class _Settlement extends State<Settlement> {
|
|
|
|
|
style: TextStyle( |
|
|
|
|
fontSize: 14.sp, |
|
|
|
|
color: Color(0xff353535), |
|
|
|
|
fontWeight: MyFontWeight.semi_bold, |
|
|
|
|
fontWeight: MyFontWeight.semi_bold, |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
], |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
SizedBox(height: 10,), |
|
|
|
|
SizedBox( |
|
|
|
|
height: 10, |
|
|
|
|
), |
|
|
|
|
GestureDetector( |
|
|
|
|
onTap: () { |
|
|
|
|
setState(() { |
|
|
|
@ -689,7 +729,7 @@ class _Settlement extends State<Settlement> {
|
|
|
|
|
style: TextStyle( |
|
|
|
|
fontSize: 14.sp, |
|
|
|
|
color: Color(0xff353535), |
|
|
|
|
fontWeight: MyFontWeight.semi_bold, |
|
|
|
|
fontWeight: MyFontWeight.semi_bold, |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
@ -764,15 +804,19 @@ class _Settlement extends State<Settlement> {
|
|
|
|
|
fontWeight: MyFontWeight.medium, |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
SizedBox(width: 4,), |
|
|
|
|
Expanded(child: Text( |
|
|
|
|
"(1)", |
|
|
|
|
style: TextStyle( |
|
|
|
|
color: Color(0xFF000000), |
|
|
|
|
fontSize: 14.sp, |
|
|
|
|
fontWeight: MyFontWeight.medium, |
|
|
|
|
SizedBox( |
|
|
|
|
width: 4, |
|
|
|
|
), |
|
|
|
|
Expanded( |
|
|
|
|
child: Text( |
|
|
|
|
"(1)", |
|
|
|
|
style: TextStyle( |
|
|
|
|
color: Color(0xFF000000), |
|
|
|
|
fontSize: 14.sp, |
|
|
|
|
fontWeight: MyFontWeight.medium, |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
),), |
|
|
|
|
), |
|
|
|
|
InkWell( |
|
|
|
|
onTap: () { |
|
|
|
|
Navigator.of(context).pop(); |
|
|
|
@ -794,13 +838,12 @@ class _Settlement extends State<Settlement> {
|
|
|
|
|
right: 16, |
|
|
|
|
), |
|
|
|
|
child: ListView.builder( |
|
|
|
|
itemCount:5, |
|
|
|
|
itemCount: 5, |
|
|
|
|
physics: BouncingScrollPhysics(), |
|
|
|
|
itemBuilder: (context, position) { |
|
|
|
|
// return shoppGoodsItem(); |
|
|
|
|
return GestureDetector( |
|
|
|
|
onTap: () { |
|
|
|
|
}, |
|
|
|
|
onTap: () {}, |
|
|
|
|
child: couponItem(position), |
|
|
|
|
); |
|
|
|
|
}, |
|
|
|
@ -817,9 +860,9 @@ class _Settlement extends State<Settlement> {
|
|
|
|
|
|
|
|
|
|
///优惠券列表 |
|
|
|
|
Widget couponItem(int index) { |
|
|
|
|
return StatefulBuilder(builder: (context1, state){ |
|
|
|
|
return StatefulBuilder(builder: (context1, state) { |
|
|
|
|
return Container( |
|
|
|
|
height:170, |
|
|
|
|
height: 170, |
|
|
|
|
width: double.infinity, |
|
|
|
|
margin: EdgeInsets.fromLTRB(14.w, 6.h, 14.w, 6.h), |
|
|
|
|
decoration: BoxDecoration( |
|
|
|
@ -846,7 +889,7 @@ class _Settlement extends State<Settlement> {
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.center, |
|
|
|
|
children: [ |
|
|
|
|
Expanded( |
|
|
|
|
child:Column( |
|
|
|
|
child: Column( |
|
|
|
|
mainAxisAlignment: MainAxisAlignment.center, |
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.center, |
|
|
|
|
children: [ |
|
|
|
@ -901,8 +944,7 @@ class _Settlement extends State<Settlement> {
|
|
|
|
|
Container( |
|
|
|
|
padding: EdgeInsets.fromLTRB(4, 2, 4, 2), |
|
|
|
|
decoration: BoxDecoration( |
|
|
|
|
borderRadius: |
|
|
|
|
BorderRadius.circular(2), |
|
|
|
|
borderRadius: BorderRadius.circular(2), |
|
|
|
|
border: Border.all( |
|
|
|
|
width: 1, |
|
|
|
|
color: Color(0xFFFF7A1A), |
|
|
|
@ -956,13 +998,13 @@ class _Settlement extends State<Settlement> {
|
|
|
|
|
), |
|
|
|
|
Container( |
|
|
|
|
margin: EdgeInsets.only(right: 23.w), |
|
|
|
|
child:GestureDetector( |
|
|
|
|
onTap: (){ |
|
|
|
|
child: GestureDetector( |
|
|
|
|
onTap: () { |
|
|
|
|
state(() { |
|
|
|
|
isSelected = index; |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
child:Image.asset( |
|
|
|
|
child: Image.asset( |
|
|
|
|
isSelected != index |
|
|
|
|
? "assets/image/icon_radio_unselected.png" |
|
|
|
|
: "assets/image/icon_radio_selected.png", |
|
|
|
@ -1032,7 +1074,7 @@ class _Settlement extends State<Settlement> {
|
|
|
|
|
), |
|
|
|
|
Text( |
|
|
|
|
(coupon.useStartTime == null && |
|
|
|
|
coupon.useEndTime == null) |
|
|
|
|
coupon.useEndTime == null) |
|
|
|
|
? S.of(context).quantian |
|
|
|
|
: "${coupon.useStartTime.replaceAll("-", ".").split(" ")[0]} - ${coupon.useEndTime.replaceAll("-", ".").split(" ")[0]}", |
|
|
|
|
style: TextStyle( |
|
|
|
@ -1067,5 +1109,4 @@ class _Settlement extends State<Settlement> {
|
|
|
|
|
), |
|
|
|
|
); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|