Browse Source

部分更新

null_safety
w-R 3 years ago
parent
commit
31c2343adc
  1. 6
      lib/main.dart
  2. 4
      lib/order/order_history_page.dart
  3. 12
      lib/retrofit/retrofit_api.dart

6
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);

4
lib/order/order_history_page.dart

@ -473,8 +473,8 @@ class _OrderHistoryList extends State<OrderHistoryList>
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",

12
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<BaseData> shippingTrace(@Path("shipperCode") String shipperCode,@Path("logisticCode") String logisticCode);
Future<BaseData> shippingTrace(@Path("shipperCode") String shipperCode,
@Path("logisticCode") String logisticCode);
}

Loading…
Cancel
Save