From 8178d3869f9814999ced371886f869e437529cf5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Cyanghuaxuan=E2=80=9D?= <“646903573@qq.com”> Date: Thu, 7 Jan 2021 11:25:15 +0800 Subject: [PATCH] =?UTF-8?q?1.=E4=BF=AE=E5=A4=8D=E5=90=88=E5=B9=B6=E4=BA=A7?= =?UTF-8?q?=E7=94=9F=E7=9A=84=E9=94=99=E8=AF=AF=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../intellect_create.dart | 4 +- lib/pages/home_page/home_page.dart | 5 +- .../detail_img/goods_details_img.dart | 50 ++++++++++--------- .../goods_details_slide_banner_widget.dart | 23 ++++++++- 4 files changed, 53 insertions(+), 29 deletions(-) diff --git a/lib/dialog/global_dialog/intellect_search_goods_dialog/intellect_create.dart b/lib/dialog/global_dialog/intellect_search_goods_dialog/intellect_create.dart index 56d96aa..18c989a 100644 --- a/lib/dialog/global_dialog/intellect_search_goods_dialog/intellect_create.dart +++ b/lib/dialog/global_dialog/intellect_search_goods_dialog/intellect_create.dart @@ -23,7 +23,7 @@ class IntellectCreate { if (state == AppLifecycleState.resumed && !isRequest) { isRequest = true; try { - _requestSetData(context); + await _requestSetData(context); } catch (e, s) { isRequest = false; print(e); @@ -76,7 +76,7 @@ class IntellectCreate { static checkAndCreateFirst(BuildContext context) async { ///检查规则 - IntellectCreate.checkAndCreate(AppLifecycleState.resumed, context); + await IntellectCreate.checkAndCreate(AppLifecycleState.resumed, context); } ///请求数据打开弹窗 diff --git a/lib/pages/home_page/home_page.dart b/lib/pages/home_page/home_page.dart index 9cbbe13..f71020e 100644 --- a/lib/pages/home_page/home_page.dart +++ b/lib/pages/home_page/home_page.dart @@ -47,7 +47,7 @@ class _HomePageState extends State with WidgetsBindingObserver { Logger.error(error); } Constants.isShowIntellectDialog = false; - AppUpdateUtil.updateApp(context); + TaobaoAuth.initAuth(context); // 弹窗 @@ -212,7 +212,10 @@ class _HomePageState extends State with WidgetsBindingObserver { // 活动弹窗 await ActivityDialog.show(context); + await AppUpdateUtil.updateApp(context); + IntellectCreate.checkAndCreateFirst(context); + } // 场景还原,记录邀请码 diff --git a/lib/widgets/goods_details/detail_img/goods_details_img.dart b/lib/widgets/goods_details/detail_img/goods_details_img.dart index 9053a85..54e4ac1 100644 --- a/lib/widgets/goods_details/detail_img/goods_details_img.dart +++ b/lib/widgets/goods_details/detail_img/goods_details_img.dart @@ -107,7 +107,7 @@ class _GoodsDetailsImgWidgetContainerState extends State