|
|
@ -1,3 +1,5 @@ |
|
|
|
|
|
|
|
import 'dart:convert'; |
|
|
|
|
|
|
|
|
|
|
|
import 'package:ai_decimal_accuracy/ai_decimal_accuracy.dart'; |
|
|
|
import 'package:ai_decimal_accuracy/ai_decimal_accuracy.dart'; |
|
|
|
import 'package:dio/dio.dart'; |
|
|
|
import 'package:dio/dio.dart'; |
|
|
|
import 'package:flutter/cupertino.dart'; |
|
|
|
import 'package:flutter/cupertino.dart'; |
|
|
@ -115,6 +117,9 @@ class _StoreOrderPage extends State<StoreOrderPage> |
|
|
|
storeId: storeId, |
|
|
|
storeId: storeId, |
|
|
|
showLoading: false, |
|
|
|
showLoading: false, |
|
|
|
); |
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
queryMemberInfo(); |
|
|
|
|
|
|
|
|
|
|
|
queryShopCar().then((value) { |
|
|
|
queryShopCar().then((value) { |
|
|
|
this.shopCarGoods = value; |
|
|
|
this.shopCarGoods = value; |
|
|
|
setState(() {}); |
|
|
|
setState(() {}); |
|
|
@ -127,6 +132,18 @@ class _StoreOrderPage extends State<StoreOrderPage> |
|
|
|
}); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
queryMemberInfo() async { |
|
|
|
|
|
|
|
BaseData baseData = await minService.memberInfo() |
|
|
|
|
|
|
|
.catchError((error){debugPrint(error);}); |
|
|
|
|
|
|
|
if (baseData != null && baseData.isSuccess) { |
|
|
|
|
|
|
|
SharedPreferences.getInstance().then( |
|
|
|
|
|
|
|
(value) => { |
|
|
|
|
|
|
|
value.setString('minMember', jsonEncode(baseData.data)), |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
///获取父订单(火锅订单加菜前调用) |
|
|
|
///获取父订单(火锅订单加菜前调用) |
|
|
|
getParentInfo() async { |
|
|
|
getParentInfo() async { |
|
|
|
BaseData baseData = await minService.getParentInfo("$tableId") |
|
|
|
BaseData baseData = await minService.getParentInfo("$tableId") |
|
|
@ -161,8 +178,7 @@ class _StoreOrderPage extends State<StoreOrderPage> |
|
|
|
|
|
|
|
|
|
|
|
/// 查询店铺信息 |
|
|
|
/// 查询店铺信息 |
|
|
|
queryStoreInfo() async { |
|
|
|
queryStoreInfo() async { |
|
|
|
BaseData baseData = |
|
|
|
BaseData baseData = await apiService.queryStoreInfo(storeId).catchError((error) { |
|
|
|
await apiService.queryStoreInfo(storeId).catchError((error) { |
|
|
|
|
|
|
|
debugPrint(error); |
|
|
|
debugPrint(error); |
|
|
|
}); |
|
|
|
}); |
|
|
|
if (baseData != null && baseData.isSuccess) { |
|
|
|
if (baseData != null && baseData.isSuccess) { |
|
|
@ -192,182 +208,184 @@ class _StoreOrderPage extends State<StoreOrderPage> |
|
|
|
return true; |
|
|
|
return true; |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
child: Stack( |
|
|
|
child: Container( |
|
|
|
children: [ |
|
|
|
color: Colors.white, |
|
|
|
Positioned( |
|
|
|
child: Stack( |
|
|
|
left: 0, |
|
|
|
children: [ |
|
|
|
right: 0, |
|
|
|
Positioned( |
|
|
|
top: 0, |
|
|
|
left: 0, |
|
|
|
bottom: 54.h, |
|
|
|
right: 0, |
|
|
|
child: NestedScrollView( |
|
|
|
top: 0, |
|
|
|
controller: controller, |
|
|
|
bottom: 54.h, |
|
|
|
dragStartBehavior: DragStartBehavior.start, |
|
|
|
child: NestedScrollView( |
|
|
|
physics: BouncingScrollPhysics(), |
|
|
|
controller: controller, |
|
|
|
headerSliverBuilder: (BuildContext context, bool innerScrolled) { |
|
|
|
dragStartBehavior: DragStartBehavior.start, |
|
|
|
return [ |
|
|
|
physics: BouncingScrollPhysics(), |
|
|
|
SliverOverlapAbsorber( |
|
|
|
headerSliverBuilder: (BuildContext context, bool innerScrolled) { |
|
|
|
handle: NestedScrollView.sliverOverlapAbsorberHandleFor( |
|
|
|
return [ |
|
|
|
context), |
|
|
|
SliverOverlapAbsorber( |
|
|
|
sliver: SliverAppBar( |
|
|
|
handle: NestedScrollView.sliverOverlapAbsorberHandleFor( |
|
|
|
expandedHeight: |
|
|
|
context), |
|
|
|
(storeInfo != null && storeInfo.couponVOList != null) |
|
|
|
sliver: SliverAppBar( |
|
|
|
? 470.h |
|
|
|
expandedHeight: |
|
|
|
: 365.h, |
|
|
|
(storeInfo != null && storeInfo.couponVOList != null) |
|
|
|
floating: false, |
|
|
|
? 470.h |
|
|
|
snap: false, |
|
|
|
: 365.h, |
|
|
|
pinned: true, |
|
|
|
floating: false, |
|
|
|
stretch: false, |
|
|
|
snap: false, |
|
|
|
brightness: Brightness.light, |
|
|
|
pinned: true, |
|
|
|
leading: GestureDetector( |
|
|
|
stretch: false, |
|
|
|
onTap: () { |
|
|
|
brightness: Brightness.light, |
|
|
|
Navigator.of(context).pop(); |
|
|
|
leading: GestureDetector( |
|
|
|
}, |
|
|
|
onTap: () { |
|
|
|
child: Container( |
|
|
|
Navigator.of(context).pop(); |
|
|
|
alignment: Alignment.centerRight, |
|
|
|
}, |
|
|
|
margin: EdgeInsets.only(left: 10), |
|
|
|
child: Container( |
|
|
|
padding: EdgeInsets.all(6), |
|
|
|
alignment: Alignment.centerRight, |
|
|
|
child: Icon( |
|
|
|
margin: EdgeInsets.only(left: 10), |
|
|
|
Icons.arrow_back_ios, |
|
|
|
padding: EdgeInsets.all(6), |
|
|
|
color: Colors.black, |
|
|
|
child: Icon( |
|
|
|
size: 24, |
|
|
|
Icons.arrow_back_ios, |
|
|
|
|
|
|
|
color: Colors.black, |
|
|
|
|
|
|
|
size: 24, |
|
|
|
|
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
flexibleSpace: FlexibleSpaceBar( |
|
|
|
flexibleSpace: FlexibleSpaceBar( |
|
|
|
title: Title( |
|
|
|
title: Title( |
|
|
|
controller, |
|
|
|
controller, |
|
|
|
storeInfo != null ? storeInfo.storeName : '', |
|
|
|
storeInfo != null ? storeInfo.storeName : '', |
|
|
|
), |
|
|
|
), |
|
|
|
collapseMode: CollapseMode.pin, |
|
|
|
collapseMode: CollapseMode.pin, |
|
|
|
stretchModes: [ |
|
|
|
stretchModes: [ |
|
|
|
StretchMode.zoomBackground, |
|
|
|
StretchMode.zoomBackground, |
|
|
|
StretchMode.fadeTitle, |
|
|
|
StretchMode.fadeTitle, |
|
|
|
StretchMode.blurBackground, |
|
|
|
StretchMode.blurBackground, |
|
|
|
], |
|
|
|
], |
|
|
|
background: Container( |
|
|
|
background: Container( |
|
|
|
color: Colors.white, |
|
|
|
color: Colors.white, |
|
|
|
child: Stack( |
|
|
|
child: Stack( |
|
|
|
children: [ |
|
|
|
children: [ |
|
|
|
Positioned( |
|
|
|
Positioned( |
|
|
|
|
|
|
|
child: Column( |
|
|
|
|
|
|
|
children: [ |
|
|
|
|
|
|
|
buildSwiper(), |
|
|
|
|
|
|
|
Expanded( |
|
|
|
|
|
|
|
child: Container( |
|
|
|
|
|
|
|
color: Colors.transparent, |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
flex: 1, |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
], |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
top: 0, |
|
|
|
|
|
|
|
bottom: 0, |
|
|
|
|
|
|
|
left: 0, |
|
|
|
|
|
|
|
right: 0, |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
Positioned( |
|
|
|
|
|
|
|
child: Container( |
|
|
|
|
|
|
|
child: Column( |
|
|
|
child: Column( |
|
|
|
children: [ |
|
|
|
children: [ |
|
|
|
///门店信息 |
|
|
|
buildSwiper(), |
|
|
|
StoreInfoView(storeInfo), |
|
|
|
Expanded( |
|
|
|
|
|
|
|
child: Container( |
|
|
|
///门店对应优惠券 |
|
|
|
color: Colors.transparent, |
|
|
|
if (storeInfo != null && |
|
|
|
|
|
|
|
storeInfo.couponVOList != null) |
|
|
|
|
|
|
|
UnionCoupon( |
|
|
|
|
|
|
|
storeInfo, |
|
|
|
|
|
|
|
_receiveCoupon, |
|
|
|
|
|
|
|
coupon: true, |
|
|
|
|
|
|
|
), |
|
|
|
), |
|
|
|
|
|
|
|
flex: 1, |
|
|
|
if (storeInfo == null || |
|
|
|
), |
|
|
|
storeInfo.couponVOList == null) |
|
|
|
|
|
|
|
SizedBox( |
|
|
|
|
|
|
|
height: 8, |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
///门店对应VIP信息 |
|
|
|
|
|
|
|
Vip(storeInfo, () {}, false), |
|
|
|
|
|
|
|
], |
|
|
|
], |
|
|
|
), |
|
|
|
), |
|
|
|
|
|
|
|
top: 0, |
|
|
|
|
|
|
|
bottom: 0, |
|
|
|
|
|
|
|
left: 0, |
|
|
|
|
|
|
|
right: 0, |
|
|
|
), |
|
|
|
), |
|
|
|
top: 110.h, |
|
|
|
Positioned( |
|
|
|
bottom: 0, |
|
|
|
child: Container( |
|
|
|
left: 0, |
|
|
|
child: Column( |
|
|
|
right: 0, |
|
|
|
children: [ |
|
|
|
), |
|
|
|
///门店信息 |
|
|
|
], |
|
|
|
StoreInfoView(storeInfo), |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
///门店对应优惠券 |
|
|
|
|
|
|
|
if (storeInfo != null && |
|
|
|
|
|
|
|
storeInfo.couponVOList != null) |
|
|
|
|
|
|
|
UnionCoupon( |
|
|
|
|
|
|
|
storeInfo, |
|
|
|
|
|
|
|
_receiveCoupon, |
|
|
|
|
|
|
|
coupon: true, |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (storeInfo == null || |
|
|
|
|
|
|
|
storeInfo.couponVOList == null) |
|
|
|
|
|
|
|
SizedBox( |
|
|
|
|
|
|
|
height: 8, |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
///门店对应VIP信息 |
|
|
|
|
|
|
|
Vip(storeInfo, () {}, false), |
|
|
|
|
|
|
|
], |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
top: 110.h, |
|
|
|
|
|
|
|
bottom: 0, |
|
|
|
|
|
|
|
left: 0, |
|
|
|
|
|
|
|
right: 0, |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
], |
|
|
|
|
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
backgroundColor: Color(0x33FAFAFA), |
|
|
|
backgroundColor: Color(0x33FAFAFA), |
|
|
|
centerTitle: false, |
|
|
|
centerTitle: false, |
|
|
|
elevation: 0, |
|
|
|
elevation: 0, |
|
|
|
bottom: PreferredSize( |
|
|
|
bottom: PreferredSize( |
|
|
|
preferredSize: Size( |
|
|
|
preferredSize: Size( |
|
|
|
MediaQuery.of(context).size.width, |
|
|
|
MediaQuery.of(context).size.width, |
|
|
|
38, |
|
|
|
38, |
|
|
|
), |
|
|
|
), |
|
|
|
child: Container( |
|
|
|
child: Container( |
|
|
|
padding: EdgeInsets.symmetric(horizontal: 10.w), |
|
|
|
padding: EdgeInsets.symmetric(horizontal: 10.w), |
|
|
|
width: MediaQuery.of(context).size.width, |
|
|
|
width: MediaQuery.of(context).size.width, |
|
|
|
child: TabBar( |
|
|
|
child: TabBar( |
|
|
|
controller: tabcontroller, |
|
|
|
controller: tabcontroller, |
|
|
|
automaticIndicatorColorAdjustment: true, |
|
|
|
automaticIndicatorColorAdjustment: true, |
|
|
|
isScrollable: true, |
|
|
|
isScrollable: true, |
|
|
|
indicatorWeight: 1, |
|
|
|
indicatorWeight: 1, |
|
|
|
indicatorColor: Color(0xFFFAFAFA), |
|
|
|
indicatorColor: Color(0xFFFAFAFA), |
|
|
|
labelPadding: EdgeInsets.only( |
|
|
|
labelPadding: EdgeInsets.only( |
|
|
|
left: 8.w, |
|
|
|
left: 8.w, |
|
|
|
right: 8.w, |
|
|
|
right: 8.w, |
|
|
|
), |
|
|
|
), |
|
|
|
indicatorSize: TabBarIndicatorSize.label, |
|
|
|
indicatorSize: TabBarIndicatorSize.label, |
|
|
|
unselectedLabelStyle: TextStyle( |
|
|
|
unselectedLabelStyle: TextStyle( |
|
|
|
fontSize: 15.sp, |
|
|
|
fontSize: 15.sp, |
|
|
|
fontWeight: FontWeight.w400, |
|
|
|
fontWeight: FontWeight.w400, |
|
|
|
), |
|
|
|
), |
|
|
|
labelStyle: TextStyle( |
|
|
|
labelStyle: TextStyle( |
|
|
|
color: Colors.black, |
|
|
|
color: Colors.black, |
|
|
|
fontSize: 18.sp, |
|
|
|
fontSize: 18.sp, |
|
|
|
fontWeight: FontWeight.bold, |
|
|
|
fontWeight: FontWeight.bold, |
|
|
|
), |
|
|
|
|
|
|
|
labelColor: Colors.black, |
|
|
|
|
|
|
|
tabs: [ |
|
|
|
|
|
|
|
MyTab(text: S.of(context).diancan), |
|
|
|
|
|
|
|
MyTab(text: S.of(context).xindianhuodong), |
|
|
|
|
|
|
|
], |
|
|
|
), |
|
|
|
), |
|
|
|
labelColor: Colors.black, |
|
|
|
|
|
|
|
tabs: [ |
|
|
|
|
|
|
|
MyTab(text: S.of(context).diancan), |
|
|
|
|
|
|
|
MyTab(text: S.of(context).xindianhuodong), |
|
|
|
|
|
|
|
], |
|
|
|
|
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
]; |
|
|
|
]; |
|
|
|
}, |
|
|
|
}, |
|
|
|
body: TabBarView( |
|
|
|
body: TabBarView( |
|
|
|
physics: NeverScrollableScrollPhysics(), |
|
|
|
physics: NeverScrollableScrollPhysics(), |
|
|
|
children: [ |
|
|
|
children: [ |
|
|
|
///点餐 |
|
|
|
///点餐 |
|
|
|
StoreOrderListPage( |
|
|
|
StoreOrderListPage( |
|
|
|
widget.arguments, |
|
|
|
widget.arguments, |
|
|
|
activitys, |
|
|
|
activitys, |
|
|
|
storeInfo, |
|
|
|
storeInfo, |
|
|
|
shopCarGoods, |
|
|
|
shopCarGoods, |
|
|
|
controller, |
|
|
|
controller, |
|
|
|
minToken, |
|
|
|
minToken, |
|
|
|
tenant, |
|
|
|
tenant, |
|
|
|
_queryMiNiDetail, |
|
|
|
_queryMiNiDetail, |
|
|
|
), |
|
|
|
), |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
///星店活动, |
|
|
|
///星店活动, |
|
|
|
StoreActivity( |
|
|
|
StoreActivity( |
|
|
|
widget.arguments, |
|
|
|
widget.arguments, |
|
|
|
activitys, |
|
|
|
activitys, |
|
|
|
), |
|
|
|
), |
|
|
|
], |
|
|
|
], |
|
|
|
controller: tabcontroller, |
|
|
|
controller: tabcontroller, |
|
|
|
), |
|
|
|
), |
|
|
|
), /*SmartRefresher( |
|
|
|
), /*SmartRefresher( |
|
|
|
controller: refreshController = |
|
|
|
controller: refreshController = |
|
|
|
RefreshController(initialRefresh: false), |
|
|
|
RefreshController(initialRefresh: false), |
|
|
|
enablePullDown: true, |
|
|
|
enablePullDown: true, |
|
|
@ -379,89 +397,90 @@ class _StoreOrderPage extends State<StoreOrderPage> |
|
|
|
}, |
|
|
|
}, |
|
|
|
child: |
|
|
|
child: |
|
|
|
),*/ |
|
|
|
),*/ |
|
|
|
), |
|
|
|
), |
|
|
|
Positioned( |
|
|
|
Positioned( |
|
|
|
bottom: 0, |
|
|
|
bottom: 0, |
|
|
|
left: 0, |
|
|
|
left: 0, |
|
|
|
right: 0, |
|
|
|
right: 0, |
|
|
|
child: Stack( |
|
|
|
child: Stack( |
|
|
|
alignment: Alignment.bottomLeft, |
|
|
|
alignment: Alignment.bottomLeft, |
|
|
|
children: [ |
|
|
|
children: [ |
|
|
|
Container( |
|
|
|
Container( |
|
|
|
height: 54.h, |
|
|
|
height: 54.h, |
|
|
|
color: Color(0xFFFAFAFA), |
|
|
|
color: Color(0xFFFAFAFA), |
|
|
|
child: Row( |
|
|
|
child: Row( |
|
|
|
children: [ |
|
|
|
children: [ |
|
|
|
Spacer(), |
|
|
|
Spacer(), |
|
|
|
Text( |
|
|
|
Text( |
|
|
|
S.of(context).heji, |
|
|
|
S.of(context).heji, |
|
|
|
style: TextStyle( |
|
|
|
style: TextStyle( |
|
|
|
fontSize: 12.sp, |
|
|
|
fontSize: 12.sp, |
|
|
|
fontWeight: MyFontWeight.regular, |
|
|
|
fontWeight: MyFontWeight.regular, |
|
|
|
color: Colors.black, |
|
|
|
color: Colors.black, |
|
|
|
|
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
Text( |
|
|
|
Text( |
|
|
|
"¥${shopCarGoods != null ? shopCarGoods.cartSum : "0.0"}", |
|
|
|
"¥${shopCarGoods != null ? shopCarGoods.cartSum : "0.0"}", |
|
|
|
style: TextStyle( |
|
|
|
style: TextStyle( |
|
|
|
fontSize: 20.sp, |
|
|
|
fontSize: 20.sp, |
|
|
|
fontWeight: MyFontWeight.medium, |
|
|
|
fontWeight: MyFontWeight.medium, |
|
|
|
color: Color(0xFF32A060), |
|
|
|
color: Color(0xFF32A060), |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
Spacer(), |
|
|
|
Spacer(), |
|
|
|
GestureDetector( |
|
|
|
GestureDetector( |
|
|
|
onTap: () { |
|
|
|
|
|
|
|
toDownOrder(); |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
child: RoundButton( |
|
|
|
|
|
|
|
width: 103.w, |
|
|
|
|
|
|
|
height: 54.h, |
|
|
|
|
|
|
|
text: S.current.jiesuan, |
|
|
|
|
|
|
|
textColor: Colors.white, |
|
|
|
|
|
|
|
fontWeight: MyFontWeight.regular, |
|
|
|
|
|
|
|
backgroup: Color(0xFF32A060), |
|
|
|
|
|
|
|
radius: 0, |
|
|
|
|
|
|
|
fontSize: 16.sp, |
|
|
|
|
|
|
|
padding: EdgeInsets.symmetric(vertical: 5.h), |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
], |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
Stack( |
|
|
|
|
|
|
|
children: [ |
|
|
|
|
|
|
|
InkWell( |
|
|
|
onTap: () { |
|
|
|
onTap: () { |
|
|
|
toDownOrder(); |
|
|
|
showShoppingCart(); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
child: Image.asset( |
|
|
|
|
|
|
|
"assets/image/shopp.png", |
|
|
|
|
|
|
|
width: 88, |
|
|
|
|
|
|
|
height: 88, |
|
|
|
|
|
|
|
fit: BoxFit.fitWidth, |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
Positioned( |
|
|
|
|
|
|
|
right: 15, |
|
|
|
|
|
|
|
top: 14, |
|
|
|
child: RoundButton( |
|
|
|
child: RoundButton( |
|
|
|
width: 103.w, |
|
|
|
width: 17, |
|
|
|
height: 54.h, |
|
|
|
height: 17, |
|
|
|
text: S.current.jiesuan, |
|
|
|
text: "${count()}", |
|
|
|
textColor: Colors.white, |
|
|
|
textColor: Colors.white, |
|
|
|
fontWeight: MyFontWeight.regular, |
|
|
|
fontWeight: MyFontWeight.regular, |
|
|
|
backgroup: Color(0xFF32A060), |
|
|
|
backgroup: Color(0xFF32A060), |
|
|
|
radius: 0, |
|
|
|
fontSize: 12.sp, |
|
|
|
fontSize: 16.sp, |
|
|
|
radius: 100, |
|
|
|
padding: EdgeInsets.symmetric(vertical: 5.h), |
|
|
|
|
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
], |
|
|
|
], |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
], |
|
|
|
Stack( |
|
|
|
), |
|
|
|
children: [ |
|
|
|
|
|
|
|
InkWell( |
|
|
|
|
|
|
|
onTap: () { |
|
|
|
|
|
|
|
showShoppingCart(); |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
child: Image.asset( |
|
|
|
|
|
|
|
"assets/image/shopp.png", |
|
|
|
|
|
|
|
width: 88, |
|
|
|
|
|
|
|
height: 88, |
|
|
|
|
|
|
|
fit: BoxFit.fitWidth, |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
Positioned( |
|
|
|
|
|
|
|
right: 15, |
|
|
|
|
|
|
|
top: 14, |
|
|
|
|
|
|
|
child: RoundButton( |
|
|
|
|
|
|
|
width: 17, |
|
|
|
|
|
|
|
height: 17, |
|
|
|
|
|
|
|
text: "${count()}", |
|
|
|
|
|
|
|
textColor: Colors.white, |
|
|
|
|
|
|
|
fontWeight: MyFontWeight.regular, |
|
|
|
|
|
|
|
backgroup: Color(0xFF32A060), |
|
|
|
|
|
|
|
fontSize: 12.sp, |
|
|
|
|
|
|
|
radius: 100, |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
], |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
], |
|
|
|
|
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
], |
|
|
|
], |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
); |
|
|
|
); |
|
|
|
} |
|
|
|
} |
|
|
@ -536,6 +555,7 @@ class _StoreOrderPage extends State<StoreOrderPage> |
|
|
|
"parentCode": parentCode, |
|
|
|
"parentCode": parentCode, |
|
|
|
"parentId": parentId, |
|
|
|
"parentId": parentId, |
|
|
|
"shoppingCart": shopCarGoods, |
|
|
|
"shoppingCart": shopCarGoods, |
|
|
|
|
|
|
|
"numberOfPeople": numberOfPeople, |
|
|
|
}, |
|
|
|
}, |
|
|
|
); |
|
|
|
); |
|
|
|
getParentInfo(); |
|
|
|
getParentInfo(); |
|
|
|