Browse Source

门店列表适配更改

dev
huixiang_app 1 year ago
parent
commit
b351eded42
  1. 8
      lib/union/union_list.dart
  2. 16
      lib/union/union_page.dart

8
lib/union/union_list.dart

@ -275,6 +275,7 @@ class _UnionList extends State<UnionList> with AutomaticKeepAliveClientMixin {
), ),
), ),
SizedBox(width: 22.w), SizedBox(width: 22.w),
if (store.distance != null)
Image.asset( Image.asset(
"assets/image/icon_union_location_black.webp", "assets/image/icon_union_location_black.webp",
fit: BoxFit.fill, fit: BoxFit.fill,
@ -282,6 +283,7 @@ class _UnionList extends State<UnionList> with AutomaticKeepAliveClientMixin {
width: 12, width: 12,
), ),
SizedBox(width: 4.w), SizedBox(width: 4.w),
if (store.distance != null)
Text( Text(
(store.distance ?? 0) > 1000 (store.distance ?? 0) > 1000
? S.of(context).gongli( ? S.of(context).gongli(
@ -305,7 +307,7 @@ class _UnionList extends State<UnionList> with AutomaticKeepAliveClientMixin {
SizedBox(height: store.businessService == "" ? 40.h : 23.h), SizedBox(height: store.businessService == "" ? 40.h : 23.h),
if (storeList[position].productShow != null) if (storeList[position].productShow != null)
Container( Container(
height: 100.h, height: 120.h,
child: ListView.builder( child: ListView.builder(
padding: EdgeInsets.zero, padding: EdgeInsets.zero,
itemCount: itemCount:
@ -367,8 +369,8 @@ class _UnionList extends State<UnionList> with AutomaticKeepAliveClientMixin {
children: [ children: [
MImage( MImage(
productShow?.imgs[0] ?? "", productShow?.imgs[0] ?? "",
width: 74, width: 74.h,
height: 74, height: 74.h,
fit: BoxFit.cover, fit: BoxFit.cover,
radius: BorderRadius.circular(4), radius: BorderRadius.circular(4),
errorSrc: "assets/image/default_1.webp", errorSrc: "assets/image/default_1.webp",

16
lib/union/union_page.dart

@ -314,7 +314,8 @@ class UnionPageState extends State<UnionPage>
Widget buildSearchItem() { Widget buildSearchItem() {
return Container( return Container(
height: 36.h, height: 36.h,
margin: EdgeInsets.fromLTRB(6.w, 0, 14.w, 0), margin: EdgeInsets.fromLTRB(14.w, 0, 14.w, 0),
padding: EdgeInsets.fromLTRB(0, 6.h, 0, 6.h),
decoration: BoxDecoration( decoration: BoxDecoration(
color: Color(0xFFF5FAF7), color: Color(0xFFF5FAF7),
borderRadius: BorderRadius.circular(4), borderRadius: BorderRadius.circular(4),
@ -337,20 +338,17 @@ class UnionPageState extends State<UnionPage>
cursorHeight: 25.h, cursorHeight: 25.h,
decoration: InputDecoration( decoration: InputDecoration(
contentPadding: EdgeInsets.symmetric( contentPadding: EdgeInsets.symmetric(
vertical: 14.h, vertical: 12.h,
), ),
hintText: "搜索联盟会员店", hintText: "搜索联盟会员店",
hintStyle: TextStyle( hintStyle: TextStyle(
fontSize: 12.sp, fontSize: 12.sp,
color: Color(0xFFB3B3B3), color: Color(0xFFB3B3B3),
), ),
prefixIcon: GestureDetector( prefixIcon:Image.asset(
onTap: loadFinish, "assets/image/icon_search.webp",
child: Image.asset( width: 16,
"assets/image/icon_search.webp", height: 16,
width: 16,
height: 16,
),
), ),
border: InputBorder.none, border: InputBorder.none,
), ),

Loading…
Cancel
Save