From 1d2e4ce054573276b4552dbafc9f2f7366fa3837 Mon Sep 17 00:00:00 2001 From: PH2 <1293456824@qq.com> Date: Fri, 16 Apr 2021 17:33:33 +0800 Subject: [PATCH] =?UTF-8?q?1=E3=80=81=E6=99=BA=E8=83=BD=E5=BC=B9=E7=AA=97?= =?UTF-8?q?=E8=B7=B3=E8=BD=ACwebView=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../intellect_search_goods_dialog.dart | 27 +++++++++---------- 1 file changed, 13 insertions(+), 14 deletions(-) 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); - } } }