|
|
@@ -375,17 +375,23 @@ 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); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
String tempProvider = widget?.model?.provider ?? 'taobao'; |
|
|
|
|
|
|
|
/// 判断淘宝渠道是否授权 |
|
|
|
if(tempProvider == GlobalConfig.PROVIDER_TB || tempProvider == GlobalConfig.PROVIDER_TM ) { |
|
|
|
bool isAuth = await TaobaoAuth.auth(context); |
|
|
|
///关闭弹窗 |
|
|
|
if (Navigator.canPop(context)) { |
|
|
|
Navigator.pop(context); |
|
|
|
} |
|
|
|
if (!isAuth) return; |
|
|
|
}else{ |
|
|
|
///关闭弹窗 |
|
|
|
if (Navigator.canPop(context)) { |
|
|
|
Navigator.pop(context); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
/// 改成统一跳转 |
|
|
|