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(