|
|
|
@ -675,6 +675,8 @@ class HomePageState extends State<HomePage> with AutomaticKeepAliveClientMixin {
|
|
|
|
|
}); |
|
|
|
|
} else if (await Permission.camera.isGranted) { |
|
|
|
|
// http://pos.app.gznl.top/placeorder/?tableId=1315903669597634560&tenantCode=1166&shopId=1300372027722432512 |
|
|
|
|
// 新版桌子码跳转 |
|
|
|
|
// http://miniscan.lotus-wallet.com/placeorder?tenant_code=1194&table_id=1669609340031467520&store_id=1637659387134738432 |
|
|
|
|
var result = await Navigator.of(context).pushNamed('/router/qr_scan'); |
|
|
|
|
if(result.toString().contains("type\":\"coupon")){ |
|
|
|
|
///活动优惠券赠送弹窗 |
|
|
|
@ -687,9 +689,9 @@ class HomePageState extends State<HomePage> with AutomaticKeepAliveClientMixin {
|
|
|
|
|
} |
|
|
|
|
// String result = await scanner.scan(); |
|
|
|
|
Uri uri = Uri.parse(result); |
|
|
|
|
String tableId = uri.queryParameters["tableId"]; |
|
|
|
|
String tenantCode = uri.queryParameters["tenantCode"]; |
|
|
|
|
String shopId = uri.queryParameters["shopId"]; |
|
|
|
|
String tableId = uri.queryParameters["tableId"] ?? uri.queryParameters["table_id"]; |
|
|
|
|
String tenantCode = uri.queryParameters["tenantCode"] ?? uri.queryParameters["tenant_code"]; |
|
|
|
|
String shopId = uri.queryParameters["shopId"] ?? uri.queryParameters["store_id"]; |
|
|
|
|
if (tableId != null && |
|
|
|
|
tableId != "" && |
|
|
|
|
tenantCode != null && |
|
|
|
|