|
|
|
@ -4,6 +4,7 @@ import 'package:huixiang/retrofit/data/store_info.dart';
|
|
|
|
|
import 'package:huixiang/utils/flutter_utils.dart'; |
|
|
|
|
import 'package:huixiang/utils/font_weight.dart'; |
|
|
|
|
import 'package:flutter_screenutil/flutter_screenutil.dart'; |
|
|
|
|
import 'package:huixiang/view_widget/custom_image.dart'; |
|
|
|
|
import 'package:huixiang/view_widget/round_button.dart'; |
|
|
|
|
|
|
|
|
|
class StoreInfoView extends StatefulWidget { |
|
|
|
@ -67,7 +68,9 @@ class _StoreInfoView extends State<StoreInfoView> {
|
|
|
|
|
Row( |
|
|
|
|
children: [ |
|
|
|
|
Text( |
|
|
|
|
S.of(context).ren("1"), |
|
|
|
|
S.of(context).ren(widget.storeInfo != null |
|
|
|
|
? widget.storeInfo.perCapitaConsumption |
|
|
|
|
: "",), |
|
|
|
|
overflow: TextOverflow.ellipsis, |
|
|
|
|
style: TextStyle( |
|
|
|
|
fontSize: 12.sp, |
|
|
|
@ -78,10 +81,12 @@ class _StoreInfoView extends State<StoreInfoView> {
|
|
|
|
|
SizedBox( |
|
|
|
|
width: 20.w, |
|
|
|
|
), |
|
|
|
|
]..addAll(itemServer("11,22")), |
|
|
|
|
]..addAll(itemServer(widget.storeInfo != null |
|
|
|
|
? widget.storeInfo.businessService |
|
|
|
|
: "")), |
|
|
|
|
), |
|
|
|
|
Text( |
|
|
|
|
"地址:武昌区楚河汉界第一街区万达总部国际C座对面", |
|
|
|
|
widget.storeInfo != null ? widget.storeInfo.address : "", |
|
|
|
|
maxLines: 2, |
|
|
|
|
textAlign: TextAlign.justify, |
|
|
|
|
style: TextStyle( |
|
|
|
@ -95,11 +100,14 @@ class _StoreInfoView extends State<StoreInfoView> {
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start, |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
Image.asset( |
|
|
|
|
"assets/image/icon_vip_name.png", |
|
|
|
|
width: 70.w, |
|
|
|
|
height: 70.w, |
|
|
|
|
) |
|
|
|
|
MImage( |
|
|
|
|
widget.storeInfo != null ? widget.storeInfo.logo : "", |
|
|
|
|
width: 70, |
|
|
|
|
height:70, |
|
|
|
|
fit: BoxFit.cover, |
|
|
|
|
errorSrc: "assets/image/default_1.png", |
|
|
|
|
fadeSrc: "assets/image/default_1.png", |
|
|
|
|
), |
|
|
|
|
], |
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceAround, |
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start, |
|
|
|
@ -112,7 +120,13 @@ class _StoreInfoView extends State<StoreInfoView> {
|
|
|
|
|
children: [ |
|
|
|
|
Expanded( |
|
|
|
|
child: Text( |
|
|
|
|
S.of(context).yingyeshijian("10:00-22:00"), |
|
|
|
|
S.of(context).yingyeshijian(widget.storeInfo == null |
|
|
|
|
? "" : (widget.storeInfo.openStartTime == null && |
|
|
|
|
widget.storeInfo.openEndTime == null) |
|
|
|
|
? S.of(context).quantian |
|
|
|
|
: "${widget.storeInfo.openStartTime.substring(0, widget.storeInfo.openStartTime.lastIndexOf(":"))} " |
|
|
|
|
"- ${widget.storeInfo.openEndTime.substring(0, widget.storeInfo.openEndTime.lastIndexOf(":"))}" |
|
|
|
|
), |
|
|
|
|
style: TextStyle( |
|
|
|
|
color: Color(0xFF353535), |
|
|
|
|
fontWeight: MyFontWeight.regular, |
|
|
|
|