daxu0403 7 лет назад
Родитель
Сommit
ba9413f125
1 измененных файлов с 3 добавлено и 0 удалено
  1. 3 0
      lib/pages/order_taking_page.dart

+ 3 - 0
lib/pages/order_taking_page.dart

@@ -41,6 +41,7 @@ class _OrderTakingPageState extends State < OrderTakingPage > with AutomaticKeep
               if (isNotError(context, resp) && this.mounted) {
                 setState(() {
                   orderList = OrderListObj.fromJson(resp.data).data.items;
+                 
                   hasNextPage = OrderListObj.fromJson(resp.data).data.hasNextPage;
                 });
                 lineIdStr = value;
@@ -98,6 +99,8 @@ class _OrderTakingPageState extends State < OrderTakingPage > with AutomaticKeep
         setState(() {
           checkStatusList = [];
           lineList = StationLine.fromJson(resp.data).data;
+          LineObj tempLine =LineObj(code:'xxxx',id:-1,name:'未知线路');
+          lineList.add(tempLine);
           getKey('lineIdStr').then((value) {
             if (value != null) {
               for (int i = 0; i < lineList.length; i++) {