|
|
@@ -7,6 +7,10 @@ import 'package:zhiying_comm/util/base_bloc.dart'; |
|
|
|
import 'package:zhiying_comm/zhiying_comm.dart'; |
|
|
|
|
|
|
|
class OrderContentBloc extends BlocBase { |
|
|
|
|
|
|
|
final String skipIdentifier; |
|
|
|
OrderContentBloc({this.skipIdentifier}); |
|
|
|
|
|
|
|
List<OrderModel> _orders = List(); |
|
|
|
|
|
|
|
StreamController<List<OrderModel>> _ordersController = |
|
|
@@ -35,7 +39,8 @@ class OrderContentBloc extends BlocBase { |
|
|
|
Map<String, dynamic> params = _filter.toJson(); |
|
|
|
params.removeWhere((key, value) => value == null || value == ''); |
|
|
|
params['state'] = _state; |
|
|
|
NetUtil.request('/api/v1/order', method: NetMethod.POST, params: params, |
|
|
|
String reqUrl = skipIdentifier == 'pub.flutter.order_by_userlvup' ? '/api/v1/order_by_userlvup' : '/api/v1/order'; |
|
|
|
NetUtil.request(reqUrl, method: NetMethod.POST, params: params, |
|
|
|
onCache: (data) { |
|
|
|
//_parseData(data); |
|
|
|
}, onSuccess: (data) { |
|
|
|