diff --git a/lib/login/new_login_page.dart b/lib/login/new_login_page.dart index 35f29380..b2473a2f 100644 --- a/lib/login/new_login_page.dart +++ b/lib/login/new_login_page.dart @@ -337,7 +337,7 @@ class _NewLoginPage extends State { children: [ Container( width: double.infinity, - padding: EdgeInsets.only(left: 16.w,top:51+ MediaQuery.of(context).padding.top,right: 12.w), + padding: EdgeInsets.only(left: 16.w,top:60+ MediaQuery.of(context).padding.top,right: 12.w), child:Column( mainAxisAlignment: MainAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start, @@ -350,7 +350,7 @@ class _NewLoginPage extends State { color: Color(0xFF000000), ), ), - SizedBox(height:10.h,), + SizedBox(height:20.h,), Text( "欢迎来到一心回乡", style: TextStyle( @@ -359,7 +359,7 @@ class _NewLoginPage extends State { color: Color(0xFF000000), ), ), - SizedBox(height:40.h,), + SizedBox(height:50.h,), Text( S.of(context).shoujihao, style: TextStyle( diff --git a/lib/main_page.dart b/lib/main_page.dart index 439adf98..f037e522 100644 --- a/lib/main_page.dart +++ b/lib/main_page.dart @@ -341,8 +341,8 @@ class _MainPage extends State with WidgetsBindingObserver { PackageInfo packageInfo = await PackageInfo.fromPlatform(); BaseData baseData = await apiService.appVersion().catchError((onError) {}); if (baseData != null && baseData.isSuccess) { - baseData.data.appLastVersion = "1.0.4"; - baseData.data.appLastVersionUp = "1.0.1"; + // baseData.data.appLastVersion = "1.0.4"; + // baseData.data.appLastVersionUp = "1.0.1"; if(AppUtils.versionCompare(packageInfo.version,baseData.data?.appLastVersion) && AppUtils.versionCompare(value.getString("appLastVersion")??"1.0.0",baseData.data?.appLastVersion)){ showDialog( diff --git a/lib/mine/mine_view/mine_order.dart b/lib/mine/mine_view/mine_order.dart index 44a0a25f..81ac055d 100644 --- a/lib/mine/mine_view/mine_order.dart +++ b/lib/mine/mine_view/mine_order.dart @@ -16,7 +16,7 @@ class _MineOrderView extends State { @override Widget build(BuildContext context) { return Container( - margin: EdgeInsets.only(left:16.w, bottom:20.h, right:16.w, top:20.h), + margin: EdgeInsets.only(left:16.w, bottom:20.h, right:16.w,), padding: EdgeInsets.fromLTRB(20.w, 12.h, 20.w, 12.h), decoration: BoxDecoration( color: Colors.white, diff --git a/lib/order/order_detail_page.dart b/lib/order/order_detail_page.dart index 6f9e2f46..80f071ca 100644 --- a/lib/order/order_detail_page.dart +++ b/lib/order/order_detail_page.dart @@ -11,6 +11,7 @@ import 'package:huixiang/retrofit/data/base_data.dart'; import 'package:huixiang/retrofit/data/order_info.dart'; import 'package:huixiang/retrofit/min_api.dart'; import 'package:huixiang/retrofit/retrofit_api.dart'; +import 'package:huixiang/utils/font_weight.dart'; import 'package:huixiang/view_widget/icon_text.dart'; import 'package:huixiang/view_widget/my_appbar.dart'; import 'package:shared_preferences/shared_preferences.dart'; diff --git a/lib/retrofit/min_api.dart b/lib/retrofit/min_api.dart index 0ef779fa..6c6db000 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 = "http://192.168.10.78:8765/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 9ebeb49b..74a712a7 100644 --- a/lib/retrofit/retrofit_api.dart +++ b/lib/retrofit/retrofit_api.dart @@ -70,7 +70,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 = "http://192.168.10.78:8766/app/";///本地 const serviceBaseUrl = "https://pos.platform.lotus-wallet.com/app/";///线上 @RestApi(baseUrl: localBaseUrl) @@ -178,7 +178,7 @@ abstract class ApiService { /// 用户登录 @POST("/auth/platform/memberLogin") - Future> memberLogin(@Body() Map param); + Future memberLogin(@Body() Map param); ///发送验证码 @GET("/auth/sendVerify/{mobile}") diff --git a/lib/retrofit/retrofit_api.g.dart b/lib/retrofit/retrofit_api.g.dart index 2f3149dd..9e250f48 100644 --- a/lib/retrofit/retrofit_api.g.dart +++ b/lib/retrofit/retrofit_api.g.dart @@ -9,7 +9,7 @@ part of 'retrofit_api.dart'; class _ApiService implements ApiService { _ApiService(this._dio, {this.baseUrl}) { ArgumentError.checkNotNull(_dio, '_dio'); - baseUrl ??= kReleaseMode?serviceBaseUrl:localBaseUrl; + baseUrl ??= kReleaseMode ? serviceBaseUrl : localBaseUrl; } final Dio _dio; @@ -304,7 +304,8 @@ class _ApiService implements ApiService { const _extra = {}; final queryParameters = {}; final _data = {}; - final _result = await _dio.request>('/wallet/rechargeAct', + final _result = await _dio.request>( + '/wallet/rechargeAct', queryParameters: queryParameters, options: RequestOptions( method: 'GET', @@ -314,8 +315,9 @@ class _ApiService implements ApiService { data: _data); final value = BaseData>.fromJson( _result.data, - (json) => (json as List) - .map((i) => RechargeList.fromJson(i as Map)) + (json) => (json as List) + .map( + (i) => RechargeList.fromJson(i as Map)) .toList()); return value; } @@ -888,7 +890,7 @@ class _ApiService implements ApiService { data: _data); final value = BaseData.fromJson( _result.data, - (json) => json==null?null:OrderInfo.fromJson(json), + (json) => json == null ? null : OrderInfo.fromJson(json), ); return value; } @@ -1880,7 +1882,8 @@ class _ApiService implements ApiService { const _extra = {}; final queryParameters = {}; final _data = {}; - final _result = await _dio.request>('/member/detail/$id', + final _result = await _dio.request>( + '/member/detail/$id', queryParameters: queryParameters, options: RequestOptions( method: 'GET', @@ -1890,19 +1893,17 @@ class _ApiService implements ApiService { data: _data); final value = BaseData.fromJson( _result.data, - (json) => MemberInfor.fromJson(json), + (json) => MemberInfor.fromJson(json), ); return value; } - @override Future> appPopup() async { const _extra = {}; final queryParameters = {}; final _data = {}; - final _result = await _dio.request>( - '/home/appPopup', + final _result = await _dio.request>('/home/appPopup', queryParameters: queryParameters, options: RequestOptions( method: 'GET', @@ -1912,7 +1913,7 @@ class _ApiService implements ApiService { data: _data); final value = BaseData.fromJson( _result.data, - (json) => ActivityPos.fromJson(json), + (json) => ActivityPos.fromJson(json), ); return value; } @@ -1922,7 +1923,8 @@ class _ApiService implements ApiService { const _extra = {}; final queryParameters = {}; final _data = {}; - final _result = await _dio.request>('/member/deleteMine', + final _result = await _dio.request>( + '/member/deleteMine', queryParameters: queryParameters, options: RequestOptions( method: 'GET', @@ -1932,7 +1934,7 @@ class _ApiService implements ApiService { data: _data); final value = BaseData.fromJson( _result.data, - (json) => json as dynamic, + (json) => json as dynamic, ); return value; } @@ -1944,7 +1946,8 @@ class _ApiService implements ApiService { final queryParameters = {}; final _data = {}; _data.addAll(param ?? {}); - final _result = await _dio.request>('/information/complaint', + final _result = await _dio.request>( + '/information/complaint', queryParameters: queryParameters, options: RequestOptions( method: 'POST', @@ -1954,7 +1957,7 @@ class _ApiService implements ApiService { data: _data); final value = BaseData.fromJson( _result.data, - (json) => json as dynamic, + (json) => json as dynamic, ); return value; } @@ -1964,8 +1967,7 @@ class _ApiService implements ApiService { const _extra = {}; final queryParameters = {}; final _data = {}; - final _result = await _dio.request>( - '/home/version', + final _result = await _dio.request>('/home/version', queryParameters: queryParameters, options: RequestOptions( method: 'GET', @@ -1975,9 +1977,8 @@ class _ApiService implements ApiService { data: _data); final value = BaseData.fromJson( _result.data, - (json) => AppUpdate.fromJson(json), + (json) => AppUpdate.fromJson(json), ); return value; } - } diff --git a/lib/store/store_view/shop_goods.dart b/lib/store/store_view/shop_goods.dart index d94b9652..7c029067 100644 --- a/lib/store/store_view/shop_goods.dart +++ b/lib/store/store_view/shop_goods.dart @@ -8,7 +8,7 @@ import 'package:huixiang/view_widget/custom_image.dart'; import 'package:huixiang/view_widget/round_button.dart'; class ShopGoods extends StatefulWidget { - final Function(String id,int count) queryMiNiDetail; + final Function(String id, int count) queryMiNiDetail; final Function(ShoppingCartSkuItemListBean shoppingCartSkuItemListBean) add; final Function(ShoppingCartSkuItemListBean shoppingCartSkuItemListBean) reduce; @@ -43,7 +43,7 @@ class _ShopGoods extends State { bottom: 10.h, top: 10.h, ), - child:Row( + child: Row( crossAxisAlignment: CrossAxisAlignment.start, mainAxisAlignment: MainAxisAlignment.start, mainAxisSize: MainAxisSize.max, @@ -53,13 +53,12 @@ class _ShopGoods extends State { widget.productListBean != null ? widget.productListBean.imgPath : (widget.shoppingCartSkuItemListBean != null - ? widget.shoppingCartSkuItemListBean.skuImg - : ""), + ? widget.shoppingCartSkuItemListBean.skuImg + : ""), width: 70, height: 70, radius: BorderRadius.circular(4), fit: BoxFit.cover, - radius: BorderRadius.circular(4), errorSrc: "assets/image/default_1.webp", fadeSrc: "assets/image/default_1.webp", ), @@ -139,7 +138,9 @@ class _ShopGoods extends State { fontWeight: MyFontWeight.medium, ), ), - SizedBox(width: 2.w,), + SizedBox( + width: 2.w, + ), Container( width: 44.w, height: 18.h, @@ -160,7 +161,8 @@ class _ShopGoods extends State { ], ), Spacer(), - if (!widget.isShopCart && (widget.productListBean?.attrStyle??0) == 1) + if (!widget.isShopCart && + (widget.productListBean?.attrStyle ?? 0) == 1) Stack( children: [ Container( @@ -179,8 +181,8 @@ class _ShopGoods extends State { widget.productListBean != null ? widget.productListBean.id : widget.shoppingCartSkuItemListBean - .productId,0 - ); + .productId, + 0); }, ), ), @@ -202,7 +204,8 @@ class _ShopGoods extends State { ), ], ), - if (widget.isShopCart || (widget.productListBean?.attrStyle??0) == 0) + if (widget.isShopCart || + (widget.productListBean?.attrStyle ?? 0) == 0) InkWell( onTap: () { widget.reduce(widget.shoppingCartSkuItemListBean); @@ -213,7 +216,8 @@ class _ShopGoods extends State { height: 22, ), ), - if (widget.isShopCart || (widget.productListBean?.attrStyle??0) == 0) + if (widget.isShopCart || + (widget.productListBean?.attrStyle ?? 0) == 0) Container( width: 30, alignment: Alignment.center, @@ -226,7 +230,8 @@ class _ShopGoods extends State { ), ), ), - if (widget.isShopCart || (widget.productListBean?.attrStyle??0) == 0) + if (widget.isShopCart || + (widget.productListBean?.attrStyle ?? 0) == 0) GestureDetector( onTap: () { widget.add(widget.shoppingCartSkuItemListBean); @@ -239,7 +244,9 @@ class _ShopGoods extends State { ), ], ), - SizedBox(height: 4.h,), + SizedBox( + height: 4.h, + ), Text( "¥191.00", style: TextStyle(