|
|
|
@ -52,8 +52,7 @@ class _QuickOrder extends State<QuickOrder> {
|
|
|
|
|
"latitude": latitude, |
|
|
|
|
"longitude": longitude, |
|
|
|
|
"searchKey": searchKey |
|
|
|
|
}).catchError((error) { |
|
|
|
|
}); |
|
|
|
|
}).catchError((error) {}); |
|
|
|
|
if (baseData != null && baseData.isSuccess) { |
|
|
|
|
storeList = baseData.data; |
|
|
|
|
} |
|
|
|
@ -143,8 +142,7 @@ class _QuickOrder extends State<QuickOrder> {
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
Location.getInstance().prepareLoc(); |
|
|
|
|
Location.getInstance().startLocation(context).then((value) { |
|
|
|
|
}); |
|
|
|
|
Location.getInstance().startLocation(context).then((value) {}); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
saveLatLng(BMFCoordinate latLng, province, city, district) async { |
|
|
|
@ -226,7 +224,7 @@ class _QuickOrder extends State<QuickOrder> {
|
|
|
|
|
child: MImage( |
|
|
|
|
store.facade, |
|
|
|
|
width: double.infinity, |
|
|
|
|
height: 95, |
|
|
|
|
height: 100, |
|
|
|
|
fit: BoxFit.cover, |
|
|
|
|
errorSrc: "assets/image/default_1.png", |
|
|
|
|
fadeSrc: "assets/image/default_1.png", |
|
|
|
@ -243,7 +241,7 @@ class _QuickOrder extends State<QuickOrder> {
|
|
|
|
|
child: SvgPicture.asset( |
|
|
|
|
"assets/svg/kuaijiexiadan_bg.svg", |
|
|
|
|
width: double.infinity, |
|
|
|
|
height: 95, |
|
|
|
|
height: 85, |
|
|
|
|
fit: BoxFit.fill, |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
@ -265,7 +263,9 @@ class _QuickOrder extends State<QuickOrder> {
|
|
|
|
|
errorSrc: "assets/image/default_1.png", |
|
|
|
|
fadeSrc: "assets/image/default_1.png", |
|
|
|
|
), |
|
|
|
|
Padding(padding: EdgeInsets.only(left: 10,right: 10),child:Text( |
|
|
|
|
Padding( |
|
|
|
|
padding: EdgeInsets.only(left: 10, right: 10), |
|
|
|
|
child: Text( |
|
|
|
|
store.storeName, |
|
|
|
|
textAlign: TextAlign.center, |
|
|
|
|
style: TextStyle( |
|
|
|
@ -273,7 +273,8 @@ class _QuickOrder extends State<QuickOrder> {
|
|
|
|
|
fontWeight: MyFontWeight.medium, |
|
|
|
|
color: Colors.black, |
|
|
|
|
), |
|
|
|
|
),), |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
// Text( |
|
|
|
|
// store?.remark ??"", |
|
|
|
|
// style: TextStyle( |
|
|
|
@ -396,7 +397,12 @@ class _QuickOrder extends State<QuickOrder> {
|
|
|
|
|
String tableId = uri.queryParameters["tableId"]; |
|
|
|
|
String tenantCode = uri.queryParameters["tenantCode"]; |
|
|
|
|
String shopId = uri.queryParameters["shopId"]; |
|
|
|
|
if (tableId != null && tableId != "" && tenantCode != null && tenantCode != "" && shopId != null && shopId != "") { |
|
|
|
|
if (tableId != null && |
|
|
|
|
tableId != "" && |
|
|
|
|
tenantCode != null && |
|
|
|
|
tenantCode != "" && |
|
|
|
|
shopId != null && |
|
|
|
|
shopId != "") { |
|
|
|
|
Navigator.of(context).pushNamed( |
|
|
|
|
'/router/store_order', |
|
|
|
|
arguments: { |
|
|
|
|