diff --git a/lib/home/welfare_exchange.dart b/lib/home/welfare_exchange.dart index 1bf22a04..80202a46 100644 --- a/lib/home/welfare_exchange.dart +++ b/lib/home/welfare_exchange.dart @@ -227,6 +227,7 @@ class _WelfareExchange extends State { length: gooodsCategorys == null ? 0 : gooodsCategorys.length, child: Container( color: Colors.white, + alignment: Alignment.centerLeft, child: TabBar( isScrollable: true, //可滚动 diff --git a/lib/home/welfare_page.dart b/lib/home/welfare_page.dart index 60584644..af3c967f 100644 --- a/lib/home/welfare_page.dart +++ b/lib/home/welfare_page.dart @@ -367,7 +367,7 @@ class _WelfarePage extends State { color: cop.status == 3 ? Color(0xFFB3B3B3) :Color(0xFF4D4D4D), ), ):Text( - "有效期至 ${cop?.publishEndTime ?? ""}", + "有效期至 ${cop?.useEndTime ?? ""}", maxLines:1, overflow: TextOverflow.ellipsis, style: TextStyle( diff --git a/lib/retrofit/min_api.dart b/lib/retrofit/min_api.dart index 72a86318..c619dc66 100644 --- a/lib/retrofit/min_api.dart +++ b/lib/retrofit/min_api.dart @@ -39,7 +39,7 @@ part 'min_api.g.dart'; // const base_url = "http://192.168.10.37:8765/app/"; -const localBaseUrl = "http://192.168.10.236:8765/app/";///本地 +const localBaseUrl = "https://pos.api.lotus-wallet.com/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 f2fd3a6b..e97d9cdc 100644 --- a/lib/retrofit/retrofit_api.dart +++ b/lib/retrofit/retrofit_api.dart @@ -71,7 +71,7 @@ part 'retrofit_api.g.dart'; // const base_url = "http://192.168.10.132:8766/app/";///詹云久 -const localBaseUrl = "http://192.168.10.236:8766/app/";///本地 +const localBaseUrl = "https://pos.platform.lotus-wallet.com/app/";///本地 const serviceBaseUrl = "https://pos.platform.lotus-wallet.com/app/";///线上 @RestApi(baseUrl: localBaseUrl) diff --git a/lib/setting/setting_page.dart b/lib/setting/setting_page.dart index 184a324b..0e5161ca 100644 --- a/lib/setting/setting_page.dart +++ b/lib/setting/setting_page.dart @@ -4,6 +4,7 @@ import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; import 'package:huixiang/generated/l10n.dart'; import 'package:huixiang/main.dart'; +import 'package:huixiang/utils/ImgCachePath.dart'; import 'package:huixiang/utils/event_type.dart'; import 'package:huixiang/utils/flutter_utils.dart'; import 'package:huixiang/utils/font_weight.dart'; @@ -234,6 +235,7 @@ class _SettingPage extends State { }); sharedPreferences.setStringList("miniAppid", []); } + AppUtils.deleteDirectory(Directory(ImgCachePath.instance.path)); cacheTotal = "0B"; setState(() {}); diff --git a/lib/store/shop__details_page.dart b/lib/store/shop__details_page.dart index 1470f505..ffbf4adf 100644 --- a/lib/store/shop__details_page.dart +++ b/lib/store/shop__details_page.dart @@ -849,6 +849,7 @@ class _ShopDetailsPage extends State { miNiDetail?.imgs != null ? miNiDetail.imgs[position]:"", fit: BoxFit.fill, radius: BorderRadius.zero, + noCompress: true, errorSrc: "assets/image/default_2_1.webp", fadeSrc: "assets/image/default_2_1.webp", ); diff --git a/lib/view_widget/custom_image.dart b/lib/view_widget/custom_image.dart index 8f626306..5d9797dc 100644 --- a/lib/view_widget/custom_image.dart +++ b/lib/view_widget/custom_image.dart @@ -75,7 +75,7 @@ class MImage extends StatelessWidget { cachedNetworkImage = Image( image: ResizeImage(NetworkToFileImage( url: imageUrl, - file: fileFromDocsDir("resize"+src.replaceAll("https:", "") + file: fileFromDocsDir("resize"+(noCompress?"noCompress":"")+src.replaceAll("https:", "") .replaceAll("http:", "") .replaceAll("pos.upload.gznl.top", "") .replaceAll("/", "")), diff --git a/lib/view_widget/new_coupon_widget.dart b/lib/view_widget/new_coupon_widget.dart index 6933f46a..17714a8c 100644 --- a/lib/view_widget/new_coupon_widget.dart +++ b/lib/view_widget/new_coupon_widget.dart @@ -124,7 +124,7 @@ class NewCouponWidget extends StatelessWidget { crossAxisAlignment: CrossAxisAlignment.start, children: [ Text( - "${coupon?.publishStartTime ??""} ~", + "${coupon?.useStartTime ??""} ~", maxLines: 1, overflow: TextOverflow.ellipsis, style: TextStyle( @@ -135,7 +135,7 @@ class NewCouponWidget extends StatelessWidget { ), SizedBox(height: 5,), Text( - "${coupon?.publishEndTime ?? ""}", + "${coupon?.useEndTime ?? ""}", maxLines:1, overflow: TextOverflow.ellipsis, style: TextStyle(