From efdb7eca92e7f5d7c05d14c42c44bf92c6293eea Mon Sep 17 00:00:00 2001 From: w-R <953969641@qq.com> Date: Mon, 13 Jun 2022 23:06:05 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9B=BE=E7=89=87=E5=8E=8B=E7=BC=A9=E4=BC=98?= =?UTF-8?q?=E5=8C=96;?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/retrofit/min_api.dart | 2 +- lib/retrofit/retrofit_api.dart | 2 +- lib/store/shop__details_page.dart | 3 ++- lib/view_widget/custom_image.dart | 2 +- pubspec.yaml | 2 +- 5 files changed, 6 insertions(+), 5 deletions(-) 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/store/shop__details_page.dart b/lib/store/shop__details_page.dart index 758b62b8..6c86b6c4 100644 --- a/lib/store/shop__details_page.dart +++ b/lib/store/shop__details_page.dart @@ -849,7 +849,8 @@ class _ShopDetailsPage extends State { miNiDetail?.imgs != null ? miNiDetail.imgs[position]:"", fit: BoxFit.cover, radius: BorderRadius.zero, - noCompress: true, + height: 375, + width: 375, 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 5d9797dc..7d0909ad 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"+(noCompress?"noCompress":"")+src.replaceAll("https:", "") + file: fileFromDocsDir("resize"+(noCompress?"noCompress":"$_w$_h")+src.replaceAll("https:", "") .replaceAll("http:", "") .replaceAll("pos.upload.gznl.top", "") .replaceAll("/", "")), diff --git a/pubspec.yaml b/pubspec.yaml index b7b3e4f0..075d3bec 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -3,7 +3,7 @@ description: 一心回乡. publish_to: 'none' # Remove this line if you wish to publish to pub.dev -version: 2.0.16+10 +version: 2.0.20+10 environment: sdk: ">=2.7.0 <3.0.0"