diff --git a/lib/main.dart b/lib/main.dart index d12c3e88..ed0da982 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -67,7 +67,6 @@ import 'mine/manage_address_page.dart'; import 'mine/roll_center_page.dart'; void main() async { - if (Platform.isAndroid) { SystemChrome.setSystemUIOverlayStyle( SystemUiOverlayStyle(statusBarColor: Colors.transparent)); @@ -116,14 +115,13 @@ initSdk() async { "523308712059457", "d3a1b6377100871799d8973fbe84794a", "回乡"); SharesdkPlugin.regist(shareSDKRegister); - if(Platform.isIOS){ + if (Platform.isIOS) { LocationFlutterPlugin.setApiKey("ylW2QPlsbERkho7jOgU4GQSeawmdUIoR"); BMFMapSDK.setApiKeyAndCoordType( 'ylW2QPlsbERkho7jOgU4GQSeawmdUIoR', BMF_COORD_TYPE.COMMON); - } else if(Platform.isAndroid) { + } else if (Platform.isAndroid) { BMFMapSDK.setCoordType(BMF_COORD_TYPE.COMMON); } - } EventBus eventBus = EventBus(sync: true); diff --git a/lib/order/order_history_page.dart b/lib/order/order_history_page.dart index 9a30b44d..ebd940ce 100644 --- a/lib/order/order_history_page.dart +++ b/lib/order/order_history_page.dart @@ -473,8 +473,8 @@ class _OrderHistoryList extends State children: [ MImage( e.skuImg, - width: 75.w, - height: 75.w, + width: 75, + height: 75, fit: BoxFit.cover, errorSrc: "assets/image/default_1.png", fadeSrc: "assets/image/default_1.png", diff --git a/lib/retrofit/retrofit_api.dart b/lib/retrofit/retrofit_api.dart index 27956173..7968a414 100644 --- a/lib/retrofit/retrofit_api.dart +++ b/lib/retrofit/retrofit_api.dart @@ -14,8 +14,12 @@ import 'package:shared_preferences/shared_preferences.dart'; part 'retrofit_api.g.dart'; -const base_url = "https://pos.platform.lotus-wallet.com/app/"; ///正式 -const baseUrl = "https://pos.platform.lotus-wallet.com/app/"; ///正式 +const base_url = "https://pos.platform.lotus-wallet.com/app/"; + +///正式 +const baseUrl = "https://pos.platform.lotus-wallet.com/app/"; + +///正式 // const base_url = "http://192.168.10.236:8766/app/"; // const baseUrl = "http://192.168.10.236:8766/app/"; @@ -322,6 +326,6 @@ abstract class ApiService { ///查询物流轨迹 @GET("/order/getShippingTrace/{shipperCode}/{logisticCode}") - Future shippingTrace(@Path("shipperCode") String shipperCode,@Path("logisticCode") String logisticCode); - + Future shippingTrace(@Path("shipperCode") String shipperCode, + @Path("logisticCode") String logisticCode); }