|
@@ -727,41 +727,41 @@ class _HomePageState extends State<HomePage>
|
|
|
setState(() {});
|
|
setState(() {});
|
|
|
endRe(_reController);
|
|
endRe(_reController);
|
|
|
return;
|
|
return;
|
|
|
- int count = 5;
|
|
|
|
|
- MyDio().query({
|
|
|
|
|
- "key": "ad",
|
|
|
|
|
- "filters": {
|
|
|
|
|
- "conditions": ['on_show == true']
|
|
|
|
|
- },
|
|
|
|
|
- "dims": adDims,
|
|
|
|
|
- "order_by": ["id,desc", "no,desc"],
|
|
|
|
|
- "paging": [page, count]
|
|
|
|
|
- }, (response, hasError) {
|
|
|
|
|
- if (!hasError) {
|
|
|
|
|
- AdBeanEntity entity =
|
|
|
|
|
- AdBeanEntity().fromJson(json.decode(response.data.toString()));
|
|
|
|
|
- container.addAll(entity.data.data);
|
|
|
|
|
- container.shuffle();
|
|
|
|
|
- }
|
|
|
|
|
- if (page == 1) {
|
|
|
|
|
- data.clear();
|
|
|
|
|
- puShop.clear();
|
|
|
|
|
- }
|
|
|
|
|
- if (pageIndex == 1) {
|
|
|
|
|
- data.addAll(container);
|
|
|
|
|
- } else {
|
|
|
|
|
- puShop.addAll(container);
|
|
|
|
|
- }
|
|
|
|
|
- setState(() {});
|
|
|
|
|
- endRe(_reController);
|
|
|
|
|
- }, (error) {
|
|
|
|
|
- if (page == 1) {
|
|
|
|
|
- data.clear();
|
|
|
|
|
- }
|
|
|
|
|
- data.addAll(container);
|
|
|
|
|
- setState(() {});
|
|
|
|
|
- endRe(_reController);
|
|
|
|
|
- });
|
|
|
|
|
|
|
+ // int count = 5;
|
|
|
|
|
+ // MyDio().query({
|
|
|
|
|
+ // "key": "ad",
|
|
|
|
|
+ // "filters": {
|
|
|
|
|
+ // "conditions": ['on_show == true']
|
|
|
|
|
+ // },
|
|
|
|
|
+ // "dims": adDims,
|
|
|
|
|
+ // "order_by": ["id,desc", "no,desc"],
|
|
|
|
|
+ // "paging": [page, count]
|
|
|
|
|
+ // }, (response, hasError) {
|
|
|
|
|
+ // if (!hasError) {
|
|
|
|
|
+ // AdBeanEntity entity =
|
|
|
|
|
+ // AdBeanEntity().fromJson(json.decode(response.data.toString()));
|
|
|
|
|
+ // container.addAll(entity.data.data);
|
|
|
|
|
+ // container.shuffle();
|
|
|
|
|
+ // }
|
|
|
|
|
+ // if (page == 1) {
|
|
|
|
|
+ // data.clear();
|
|
|
|
|
+ // puShop.clear();
|
|
|
|
|
+ // }
|
|
|
|
|
+ // if (pageIndex == 1) {
|
|
|
|
|
+ // data.addAll(container);
|
|
|
|
|
+ // } else {
|
|
|
|
|
+ // puShop.addAll(container);
|
|
|
|
|
+ // }
|
|
|
|
|
+ // setState(() {});
|
|
|
|
|
+ // endRe(_reController);
|
|
|
|
|
+ // }, (error) {
|
|
|
|
|
+ // if (page == 1) {
|
|
|
|
|
+ // data.clear();
|
|
|
|
|
+ // }
|
|
|
|
|
+ // data.addAll(container);
|
|
|
|
|
+ // setState(() {});
|
|
|
|
|
+ // endRe(_reController);
|
|
|
|
|
+ // });
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
void checkPublicStores() {
|
|
void checkPublicStores() {
|