|
|
@@ -30,7 +30,7 @@ class _OrderPageState extends State<OrderPage> {
|
|
|
List<SmartOrderBeanDataData> orders = [];
|
|
|
RefreshController controller = RefreshController(initialRefresh: true);
|
|
|
int page = 1;
|
|
|
- List<int> myShopUIDs = [];
|
|
|
+ List<int> myShopUIDs = [];
|
|
|
|
|
|
@override
|
|
|
void initState() {
|
|
|
@@ -247,9 +247,7 @@ class _OrderPageState extends State<OrderPage> {
|
|
|
conditions.add("state == $orderStateUnpaid");
|
|
|
conditions.add('buyer_uid==0');
|
|
|
conditions.add('buyer_name LIKE ${MyCookie().getName()}');
|
|
|
- if(myShopUIDs.length>0){
|
|
|
- conditions.add('shop_uid IN $myShopUIDs');
|
|
|
- }
|
|
|
+ conditions.add('shop_uid IN $myShopUIDs');
|
|
|
}
|
|
|
var filters;
|
|
|
if (selectedIndex == 2) {
|
|
|
@@ -322,6 +320,9 @@ class _OrderPageState extends State<OrderPage> {
|
|
|
entity.data.data.forEach((element) {
|
|
|
myShopUIDs.add(element.shopUid);
|
|
|
});
|
|
|
+ if(myShopUIDs.length==0){
|
|
|
+ return;
|
|
|
+ }
|
|
|
checkingOrder();
|
|
|
}
|
|
|
}, (error) {});
|