Browse Source

地图列表改了字段存放列表数据,更改字段名即可;

商品列表优化;
zyh
w-R 3 years ago
parent
commit
fcf8412900
  1. 3
      lib/address/address_map_page.dart
  2. 4
      lib/store/store_view/store_order_list.dart
  3. 2
      pubspec.yaml

3
lib/address/address_map_page.dart

@ -144,7 +144,8 @@ class _AddressMapPage extends State<AddressMapPage> {
print("keyWord: ${keyWord}"); print("keyWord: ${keyWord}");
var addressPoi = await apiService.searchPoi( var addressPoi = await apiService.searchPoi(
"${latLng.latitude}", "${latLng.longitude}", keyWord, 20, 1); "${latLng.latitude}", "${latLng.longitude}", keyWord, 20, 1);
List<dynamic> poi = addressPoi['pois']; //,;:['pois'],['entrances']
List<dynamic> poi = addressPoi['entrances'];
poiList = poi poiList = poi
.map((e) => Address.fromJson({ .map((e) => Address.fromJson({
"address": e["address"] is List ? "" : e["address"], "address": e["address"] is List ? "" : e["address"],

4
lib/store/store_view/store_order_list.dart

@ -198,9 +198,7 @@ class _StoreOrderListPage extends State<StoreOrderListPage> {
// isSelected = index; // isSelected = index;
// productListBeans.clear(); // productListBeans.clear();
// productListBeans.addAll(appletProducts[index].productList); // productListBeans.addAll(appletProducts[index].productList);
controller.animateTo(appletProducts[index].goodsIndex, controller.jumpTo(appletProducts[index].goodsIndex);
duration: Duration(milliseconds: 300),
curve: Curves.ease);
}); });
}, },
child: Stack( child: Stack(

2
pubspec.yaml

@ -3,7 +3,7 @@ description: 一心回乡.
publish_to: 'none' # Remove this line if you wish to publish to pub.dev publish_to: 'none' # Remove this line if you wish to publish to pub.dev
version: 2.0.31+19 version: 2.0.32+20
environment: environment:
sdk: ">=2.7.0 <3.0.0" sdk: ">=2.7.0 <3.0.0"

Loading…
Cancel
Save