浏览代码

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

tags/0.0.15+8^0
PH2 3 年前
父节点
当前提交
119b38fd1f
共有 1 个文件被更改,包括 9 次插入1 次删除
  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 查看文件

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


正在加载...
取消
保存