diff --git a/lib/dialog/global_dialog/intellect_search_goods_dialog/intellect_search_goods_dialog.dart b/lib/dialog/global_dialog/intellect_search_goods_dialog/intellect_search_goods_dialog.dart index 8470a00..1434118 100644 --- a/lib/dialog/global_dialog/intellect_search_goods_dialog/intellect_search_goods_dialog.dart +++ b/lib/dialog/global_dialog/intellect_search_goods_dialog/intellect_search_goods_dialog.dart @@ -373,6 +373,19 @@ class _IntellectSearchGoodsDialogState } widget?.model?.couponUrl=widget?.model?.couponUrl.replaceAll("\\", ""); print("链接" + widget?.model?.couponUrl ?? ""); + Logger.log('智能弹窗有商品情况跳转数据 = ${widget?.model?.toJson()}'); + ///关闭弹窗 + if (Navigator.canPop(context)) { + Navigator.pop(context); + } + /// 改成统一跳转 + await TurnChainUtil.jumpNative( + context, + provider: widget?.model?.provider ?? 'taobao', + openAppUrl: widget?.model?.couponUrl, + appUrl: widget?.model?.couponUrl, + webUrl: widget?.model?.couponUrl, + ); // if (widget?.model?.provider == GlobalConfig.PROVIDER_TB || widget?.model?.provider == GlobalConfig.PROVIDER_TM) { // TradeResult result; // if (Platform.isAndroid) { @@ -393,20 +406,6 @@ class _IntellectSearchGoodsDialogState // Logger.log('走了其它打开方式'); // // await FlutterAlibc.openByUrl(url: widget?.model?.couponUrl, openType: AlibcOpenType.AlibcOpenTypeNative); // } - Logger.log('智能弹窗有商品情况跳转数据 = ${widget?.model?.toJson()}'); - /// 改成统一跳转 - await TurnChainUtil.jumpNative( - context, - provider: widget?.model?.provider ?? 'taobao', - openAppUrl: widget?.model?.couponUrl, - appUrl: widget?.model?.couponUrl, - webUrl: widget?.model?.couponUrl, - ); - - ///关闭弹窗 - if (Navigator.canPop(context)) { - Navigator.pop(context); - } } }