Browse Source

1、智能弹窗添加拼多多授权提示

tags/0.0.15+8^0
PH2 3 years ago
parent
commit
119b38fd1f
1 changed files with 9 additions and 1 deletions
  1. +9
    -1
      lib/dialog/global_dialog/intellect_search_goods_dialog/intellect_search_goods_dialog.dart

+ 9
- 1
lib/dialog/global_dialog/intellect_search_goods_dialog/intellect_search_goods_dialog.dart View File

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


Loading…
Cancel
Save