Browse Source

ios更改

zyh
fmk 3 years ago
parent
commit
4ed7d56725
  1. 6
      lib/home/home_view/home_recommend_goods.dart
  2. 1
      lib/union/union_list.dart
  3. 15
      lib/union/union_page.dart

6
lib/home/home_view/home_recommend_goods.dart

@ -41,7 +41,7 @@ class _HomeRecommendGoods extends State<HomeRecommendGoods> {
mainAxisAlignment: MainAxisAlignment.start, mainAxisAlignment: MainAxisAlignment.start,
children: [ children: [
Container( Container(
height: 235.h, height: 240.h,
decoration: BoxDecoration( decoration: BoxDecoration(
borderRadius: BorderRadius.circular(6), borderRadius: BorderRadius.circular(6),
color: Colors.white, color: Colors.white,
@ -92,8 +92,8 @@ class _HomeRecommendGoods extends State<HomeRecommendGoods> {
commodityZone?.productImg ?? "", commodityZone?.productImg ?? "",
fit: BoxFit.contain, fit: BoxFit.contain,
radius: BorderRadius.circular(4.r), radius: BorderRadius.circular(4.r),
width: 158, width: 158.w,
height: 158, height: 158.h,
errorSrc: "assets/image/default_2_1.webp", errorSrc: "assets/image/default_2_1.webp",
fadeSrc: "assets/image/default_2_1.webp", fadeSrc: "assets/image/default_2_1.webp",
), ),

1
lib/union/union_list.dart

@ -238,6 +238,7 @@ class _UnionList extends State<UnionList> {
], ],
)), )),
if(store.distance != null)
Container( Container(
width: 59.w, width: 59.w,
height: 18.h, height: 18.h,

15
lib/union/union_page.dart

@ -243,9 +243,9 @@ class UnionPageState extends State<UnionPage>
} }
BaseData<List<Store>> baseData = await apiService.queryStore({ BaseData<List<Store>> baseData = await apiService.queryStore({
"city": city, "city": city,
"district": district, // "district": district,
"province": province, // "province": province,
"latitude": latitude, // "latitude": latitude,
"longitude": longitude, "longitude": longitude,
"searchKey": searchKey, "searchKey": searchKey,
"serviceType": (tabController.index == 0 && index == -1) || index == 0 "serviceType": (tabController.index == 0 && index == -1) || index == 0
@ -287,7 +287,12 @@ class UnionPageState extends State<UnionPage>
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
super.build(context); super.build(context);
return Scaffold( return GestureDetector(
behavior: HitTestBehavior.translucent,
onTap: (){
FocusScope.of(context).requestFocus(FocusNode());
},
child:Scaffold(
appBar: MyAppBar( appBar: MyAppBar(
title: "", title: "",
leading: false, leading: false,
@ -330,7 +335,7 @@ class UnionPageState extends State<UnionPage>
UnionList(refreshController3, storeList3,(){startLocation(true);}), UnionList(refreshController3, storeList3,(){startLocation(true);}),
], ],
), ),
); ));
// GestureDetector( // GestureDetector(
// onTap: () { // onTap: () {
// FocusScope.of(context).requestFocus(FocusNode()); // FocusScope.of(context).requestFocus(FocusNode());

Loading…
Cancel
Save