From 119b38fd1fcf4840849f374e1ed6c4a30eb511b2 Mon Sep 17 00:00:00 2001 From: PH2 <1293456824@qq.com> Date: Wed, 28 Apr 2021 14:38:57 +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?=E6=B7=BB=E5=8A=A0=E6=8B=BC=E5=A4=9A=E5=A4=9A=E6=8E=88=E6=9D=83?= =?UTF-8?q?=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../intellect_search_goods_dialog.dart | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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 98fed66..aa23b60 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 @@ -7,6 +7,7 @@ import 'package:zhiying_comm/util/turn_chain/turn_chain_util.dart'; import 'package:zhiying_base_widget/dialog/global_dialog/intellect_search_goods_dialog/model/has_goods_dialog_style_model.dart'; import 'package:zhiying_base_widget/dialog/global_dialog/intellect_search_goods_dialog/model/intellect_dialog_data_model.dart'; import 'package:zhiying_comm/zhiying_comm.dart'; +import 'package:zhiying_comm/util/pdd_auth/pdd_auth.dart'; class IntellectSearchGoodsDialog extends StatefulWidget { final IntellectDialogDataModel model; @@ -387,7 +388,14 @@ class _IntellectSearchGoodsDialogState Navigator.pop(context); } if (!isAuth) return; - }else{ + } else if (tempProvider == GlobalConfig.PROVIDER_PDD) { /// 拼多多 + bool isNeedAuth = await PddAuth.auth(context, isShare: '0'); + ///关闭弹窗 + if (Navigator.canPop(context)) { + Navigator.pop(context); + } + if (isNeedAuth) return; + } else{ ///关闭弹窗 if (Navigator.canPop(context)) { Navigator.pop(context);