Преглед на файлове

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);
}
}
}



Зареждане…
Отказ
Запис