Browse Source

Merge remote-tracking branch 'origin/new_revision_app' into new_revision_app

zyh
fmk 3 years ago
parent
commit
b540ff905a
  1. 1
      lib/home/welfare_exchange.dart
  2. 2
      lib/home/welfare_page.dart
  3. 2
      lib/retrofit/min_api.dart
  4. 2
      lib/retrofit/retrofit_api.dart
  5. 2
      lib/setting/setting_page.dart
  6. 1
      lib/store/shop__details_page.dart
  7. 2
      lib/view_widget/custom_image.dart
  8. 4
      lib/view_widget/new_coupon_widget.dart

1
lib/home/welfare_exchange.dart

@ -227,6 +227,7 @@ class _WelfareExchange extends State<WelfareExchange> {
length: gooodsCategorys == null ? 0 : gooodsCategorys.length, length: gooodsCategorys == null ? 0 : gooodsCategorys.length,
child: Container( child: Container(
color: Colors.white, color: Colors.white,
alignment: Alignment.centerLeft,
child: TabBar( child: TabBar(
isScrollable: true, isScrollable: true,
// //

2
lib/home/welfare_page.dart

@ -367,7 +367,7 @@ class _WelfarePage extends State<WelfarePage> {
color: cop.status == 3 ? Color(0xFFB3B3B3) :Color(0xFF4D4D4D), color: cop.status == 3 ? Color(0xFFB3B3B3) :Color(0xFF4D4D4D),
), ),
):Text( ):Text(
"有效期至 ${cop?.publishEndTime ?? ""}", "有效期至 ${cop?.useEndTime ?? ""}",
maxLines:1, maxLines:1,
overflow: TextOverflow.ellipsis, overflow: TextOverflow.ellipsis,
style: TextStyle( style: TextStyle(

2
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 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/";///线 const serviceBaseUrl = "https://pos.api.lotus-wallet.com/app/";///线

2
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 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/";///线 const serviceBaseUrl = "https://pos.platform.lotus-wallet.com/app/";///线
@RestApi(baseUrl: localBaseUrl) @RestApi(baseUrl: localBaseUrl)

2
lib/setting/setting_page.dart

@ -4,6 +4,7 @@ import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:huixiang/generated/l10n.dart'; import 'package:huixiang/generated/l10n.dart';
import 'package:huixiang/main.dart'; import 'package:huixiang/main.dart';
import 'package:huixiang/utils/ImgCachePath.dart';
import 'package:huixiang/utils/event_type.dart'; import 'package:huixiang/utils/event_type.dart';
import 'package:huixiang/utils/flutter_utils.dart'; import 'package:huixiang/utils/flutter_utils.dart';
import 'package:huixiang/utils/font_weight.dart'; import 'package:huixiang/utils/font_weight.dart';
@ -234,6 +235,7 @@ class _SettingPage extends State<SettingPage> {
}); });
sharedPreferences.setStringList("miniAppid", []); sharedPreferences.setStringList("miniAppid", []);
} }
AppUtils.deleteDirectory(Directory(ImgCachePath.instance.path));
cacheTotal = "0B"; cacheTotal = "0B";
setState(() {}); setState(() {});

1
lib/store/shop__details_page.dart

@ -849,6 +849,7 @@ class _ShopDetailsPage extends State<ShopDetailsPage> {
miNiDetail?.imgs != null ? miNiDetail.imgs[position]:"", miNiDetail?.imgs != null ? miNiDetail.imgs[position]:"",
fit: BoxFit.fill, fit: BoxFit.fill,
radius: BorderRadius.zero, radius: BorderRadius.zero,
noCompress: true,
errorSrc: "assets/image/default_2_1.webp", errorSrc: "assets/image/default_2_1.webp",
fadeSrc: "assets/image/default_2_1.webp", fadeSrc: "assets/image/default_2_1.webp",
); );

2
lib/view_widget/custom_image.dart

@ -75,7 +75,7 @@ class MImage extends StatelessWidget {
cachedNetworkImage = Image( cachedNetworkImage = Image(
image: ResizeImage(NetworkToFileImage( image: ResizeImage(NetworkToFileImage(
url: imageUrl, url: imageUrl,
file: fileFromDocsDir("resize"+src.replaceAll("https:", "") file: fileFromDocsDir("resize"+(noCompress?"noCompress":"")+src.replaceAll("https:", "")
.replaceAll("http:", "") .replaceAll("http:", "")
.replaceAll("pos.upload.gznl.top", "") .replaceAll("pos.upload.gznl.top", "")
.replaceAll("/", "")), .replaceAll("/", "")),

4
lib/view_widget/new_coupon_widget.dart

@ -124,7 +124,7 @@ class NewCouponWidget extends StatelessWidget {
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
children: [ children: [
Text( Text(
"${coupon?.publishStartTime ??""} ~", "${coupon?.useStartTime ??""} ~",
maxLines: 1, maxLines: 1,
overflow: TextOverflow.ellipsis, overflow: TextOverflow.ellipsis,
style: TextStyle( style: TextStyle(
@ -135,7 +135,7 @@ class NewCouponWidget extends StatelessWidget {
), ),
SizedBox(height: 5,), SizedBox(height: 5,),
Text( Text(
"${coupon?.publishEndTime ?? ""}", "${coupon?.useEndTime ?? ""}",
maxLines:1, maxLines:1,
overflow: TextOverflow.ellipsis, overflow: TextOverflow.ellipsis,
style: TextStyle( style: TextStyle(

Loading…
Cancel
Save