From 4352be2d89619ff56124f162be537fb9d7c52cca Mon Sep 17 00:00:00 2001 From: fff Date: Thu, 9 Jan 2025 12:00:44 +0800 Subject: [PATCH] =?UTF-8?q?UI=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/constant.dart | 3 +-- lib/home/home_page.dart | 9 ++++----- lib/view_widget/custom_image.dart | 2 +- 3 files changed, 6 insertions(+), 8 deletions(-) diff --git a/lib/constant.dart b/lib/constant.dart index 40f9668d..f8b60273 100644 --- a/lib/constant.dart +++ b/lib/constant.dart @@ -20,8 +20,7 @@ const serviceMiniBaseUrl = "https://pos.api.yixinhuixiang.com/app/"; ///线下 /// app接口的请求地址 -// const localBaseUrl = "http://192.168.10.54:8766/app/"; ///本地 -const localBaseUrl = "https://pos.platform.yixinhuixiang.com/app/"; ///本地 +const localBaseUrl = "http://192.168.10.54:8766/app/"; ///本地 ///线上 const serviceBaseUrl = "https://pos.platform.yixinhuixiang.com/app/"; diff --git a/lib/home/home_page.dart b/lib/home/home_page.dart index 1c1e12c3..5f5d56ef 100644 --- a/lib/home/home_page.dart +++ b/lib/home/home_page.dart @@ -6,6 +6,8 @@ import 'package:flutter/material.dart'; import 'package:flutter_screenutil/flutter_screenutil.dart'; import 'package:flutter_smart_dialog/flutter_smart_dialog.dart'; import 'package:flutter_swiper_view/flutter_swiper_view.dart'; +import 'package:get/get.dart'; +import 'package:get/utils.dart'; import 'package:huixiang/data/activity_pos.dart'; import 'package:huixiang/data/article.dart'; import 'package:huixiang/data/banner.dart'; @@ -51,9 +53,7 @@ class HomePage extends StatefulWidget { final List? interviewCouponList; final List? firstLoginCouponList; - HomePage(Key key, this.changeTab, - {this.invite, this.interviewCouponList, this.firstLoginCouponList}) - : super(key: key); + HomePage(Key key, this.changeTab, {this.invite, this.interviewCouponList, this.firstLoginCouponList}) : super(key: key); @override State createState() { @@ -607,7 +607,6 @@ class HomePageState extends State with AutomaticKeepAliveClientMixin { Widget spread() { return Container( width: double.infinity, - // margin: EdgeInsets.symmetric(horizontal:14.w), height: 85.h, child: activityBannerData.isNotEmpty ? Swiper( @@ -633,7 +632,7 @@ class HomePageState extends State with AutomaticKeepAliveClientMixin { spreadBannerClick(activityBannerData[position]); }, child: Container( - margin: EdgeInsets.symmetric(horizontal: 14.w), + padding: EdgeInsets.symmetric(horizontal: 14.w), child: MImage( activityBannerData[position].imgUrl ?? "", fit: BoxFit.cover, diff --git a/lib/view_widget/custom_image.dart b/lib/view_widget/custom_image.dart index 830566cc..1df66612 100644 --- a/lib/view_widget/custom_image.dart +++ b/lib/view_widget/custom_image.dart @@ -74,7 +74,7 @@ class MImage extends StatelessWidget { } } - debugPrint("imageUrl: $imageUrl"); + // debugPrint("imageUrl: $imageUrl"); if (imageUrl.isEmpty) { return Image.asset(