From ccac5f3938b41c4b7c786d16b82ec0747dcf0128 Mon Sep 17 00:00:00 2001 From: wurong <953969641@qq.com> Date: Thu, 6 Apr 2023 18:05:55 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BD=AE=E6=92=AD=E6=97=B6=E9=95=BF=E6=9B=B4?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/community/community_view/course_banner.dart | 6 +++--- lib/home/home_view/home_banner.dart | 4 ++-- lib/home/huixiang_view/huixiang_banner.dart | 5 ++++- lib/retrofit/min_api.dart | 2 +- lib/retrofit/retrofit_api.dart | 2 +- lib/store/store_order.dart | 4 ++-- 6 files changed, 13 insertions(+), 10 deletions(-) diff --git a/lib/community/community_view/course_banner.dart b/lib/community/community_view/course_banner.dart index 2c8b96c4..f76ea5aa 100644 --- a/lib/community/community_view/course_banner.dart +++ b/lib/community/community_view/course_banner.dart @@ -38,8 +38,8 @@ class _CourseBanner extends State { viewportFraction: 0.88, scale: 0.93, autoplay: true, - duration: 1500, - autoplayDelay: 2500, + duration: 1000, + autoplayDelay: 2000, pagination: SwiperPagination( alignment: Alignment.bottomCenter, builder: DotSwiperPaginationBuilder( @@ -60,7 +60,7 @@ class _CourseBanner extends State { (widget.bannerData != null && position < widget.bannerData.length) ? widget.bannerData[position].imgUrl : "", - fit: BoxFit.cover, + fit: BoxFit.fill, radius: BorderRadius.circular(8), errorSrc: "assets/image/default_2_1.webp", fadeSrc: "assets/image/default_2_1.webp", diff --git a/lib/home/home_view/home_banner.dart b/lib/home/home_view/home_banner.dart index 92000369..9d10575a 100644 --- a/lib/home/home_view/home_banner.dart +++ b/lib/home/home_view/home_banner.dart @@ -37,8 +37,8 @@ class _HomeBanner extends State { ), ), autoplay: true, - duration: 1500, - autoplayDelay: 2500, + duration: 1000, + autoplayDelay: 2000, controller: widget.controller, physics: BouncingScrollPhysics(), itemBuilder: (context, position) { diff --git a/lib/home/huixiang_view/huixiang_banner.dart b/lib/home/huixiang_view/huixiang_banner.dart index a57b800c..8d31f8a8 100644 --- a/lib/home/huixiang_view/huixiang_banner.dart +++ b/lib/home/huixiang_view/huixiang_banner.dart @@ -28,6 +28,9 @@ class _HuiXiangBanner extends State { child: Swiper( viewportFraction: 0.88, scale: 0.93, + autoplay: true, + duration: 1000, + autoplayDelay: 2000, pagination: SwiperPagination( alignment: Alignment.bottomCenter, builder: DotSwiperPaginationBuilder( @@ -48,7 +51,7 @@ class _HuiXiangBanner extends State { (widget.bannerData != null && position < widget.bannerData.length) ? widget.bannerData[position].imgUrl : "", - fit: BoxFit.cover, + fit: BoxFit.fill, radius: BorderRadius.circular(8), errorSrc: "assets/image/default_2_1.webp", fadeSrc: "assets/image/default_2_1.webp", diff --git a/lib/retrofit/min_api.dart b/lib/retrofit/min_api.dart index dc0384e3..b34626f6 100644 --- a/lib/retrofit/min_api.dart +++ b/lib/retrofit/min_api.dart @@ -26,7 +26,7 @@ import 'data/shopping_home_config.dart'; part 'min_api.g.dart'; -const localBaseUrl = "http://192.168.10.78:8765/app/";///本地 +const localBaseUrl = "http://192.168.10.24:8765/app/";///本地 // const localBaseUrl = "https://2946-27-19-77-115.jp.ngrok.io/app/";///本地 const serviceBaseUrl = "https://pos.api.lotus-wallet.com/app/";///线上 diff --git a/lib/retrofit/retrofit_api.dart b/lib/retrofit/retrofit_api.dart index 7b1581b7..37b12479 100644 --- a/lib/retrofit/retrofit_api.dart +++ b/lib/retrofit/retrofit_api.dart @@ -64,7 +64,7 @@ import 'data/wx_pay.dart'; part 'retrofit_api.g.dart'; -const localBaseUrl = "http://192.168.10.78:8766/app/";///本地 +const localBaseUrl = "http://192.168.10.24:8766/app/";///本地 // const localBaseUrl = "https://2946-27-19-77-115.jp.ngrok.io/app/";///本地 const serviceBaseUrl = "https://pos.platform.lotus-wallet.com/app/";///线上 diff --git a/lib/store/store_order.dart b/lib/store/store_order.dart index 9ff7adf3..11a20298 100644 --- a/lib/store/store_order.dart +++ b/lib/store/store_order.dart @@ -677,8 +677,8 @@ class _StoreOrderPage extends State ), ), autoplay: true, - duration: 1500, - autoplayDelay: 2500, + duration: 1000, + autoplayDelay: 2000, itemBuilder: (context, position) { return Container( child: MImage(