浏览代码

1、智能弹窗跳转webView修复

tags/0.0.14+1
PH2 3 年前
父节点
当前提交
1d2e4ce054
共有 1 个文件被更改,包括 13 次插入14 次删除
  1. +13
    -14
      lib/dialog/global_dialog/intellect_search_goods_dialog/intellect_search_goods_dialog.dart

+ 13
- 14
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);
}
}
}



正在加载...
取消
保存