Browse Source

iOS 点单页点击范围更改

new_revision_app
fmk 2 years ago
parent
commit
74114784c9
  1. 6
      ios/Runner.xcodeproj/project.pbxproj
  2. 50
      lib/store/store_view/store_info.dart

6
ios/Runner.xcodeproj/project.pbxproj

@ -667,7 +667,7 @@
"$(PROJECT_DIR)/baidu",
"$(PROJECT_DIR)/Runner/baidu",
);
MARKETING_VERSION = 3.2.17;
MARKETING_VERSION = 3.2.18;
ONLY_ACTIVE_ARCH = YES;
OTHER_LDFLAGS = (
"$(inherited)",
@ -869,7 +869,7 @@
"$(PROJECT_DIR)/baidu",
"$(PROJECT_DIR)/Runner/baidu",
);
MARKETING_VERSION = 3.2.17;
MARKETING_VERSION = 3.2.18;
ONLY_ACTIVE_ARCH = YES;
OTHER_LDFLAGS = (
"$(inherited)",
@ -962,7 +962,7 @@
"$(PROJECT_DIR)/baidu",
"$(PROJECT_DIR)/Runner/baidu",
);
MARKETING_VERSION = 3.2.17;
MARKETING_VERSION = 3.2.18;
ONLY_ACTIVE_ARCH = YES;
OTHER_LDFLAGS = (
"$(inherited)",

50
lib/store/store_view/store_info.dart

@ -164,21 +164,6 @@ class _StoreInfoView extends State<StoreInfoView> {
mainAxisAlignment: MainAxisAlignment.spaceBetween,
crossAxisAlignment: CrossAxisAlignment.center,
children: [
Expanded(
child: Text(
"${S.of(context).dizhi}:${widget.storeInfo != null ? widget.storeInfo.address : ""}",
maxLines: 2,
textAlign: TextAlign.justify,
style: TextStyle(
color: Color(0xFF353535),
fontWeight: MyFontWeight.regular,
fontSize: 12.sp,
),
),
),
SizedBox(
width: 16.w,
),
GestureDetector(
behavior: HitTestBehavior.opaque,
onTap: () {
@ -192,22 +177,49 @@ class _StoreInfoView extends State<StoreInfoView> {
);
},
child:Container(
color: Colors.transparent,
padding:EdgeInsets.only(right: 8.w) ,
child: Image.asset(
"assets/image/icon_union_location.webp",
width: 24.w,
height: 24.h,
width: 20,
height: 20,
),
),
),
Expanded(
child: GestureDetector(
behavior: HitTestBehavior.opaque,
onTap: () {
Navigator.of(context).pushNamed(
'/router/location_map',
arguments: {
"lat": widget.storeInfo.latitude,
"lng": widget.storeInfo.longitude,
"storeName": widget.storeInfo.storeName,
},
);
},
child: Text(
"${S.of(context).dizhi}:${widget.storeInfo != null ? widget.storeInfo.address : ""}",
maxLines: 2,
textAlign: TextAlign.justify,
style: TextStyle(
color: Color(0xFF353535),
fontWeight: MyFontWeight.regular,
fontSize: 12.sp,
),
),
),
),
if((widget?.storeInfo?.tel ?? "") != "")
GestureDetector(
behavior: HitTestBehavior.opaque,
behavior: HitTestBehavior.translucent,
onTap: () {
showCallMobile();
},
child: Container(
padding:EdgeInsets.only(left: 8.w) ,
padding:EdgeInsets.only(left: 16.w,right: 8.w) ,
child: Image.asset(
"assets/image/icon_union_call.webp",
width: 24,

Loading…
Cancel
Save