|
...
|
...
|
@@ -63,6 +63,7 @@ class InvicationPageState extends State<InvicationPage> |
|
|
|
User user;
|
|
|
|
DateTime dateTime;
|
|
|
|
String dateTimeStr = "";
|
|
|
|
String weekInfoAndLunarCalendar = '';
|
|
|
|
ScrollController controller = ScrollController();
|
|
|
|
double couponHeight = 140.0;
|
|
|
|
CouponProvider couponProvider;
|
|
...
|
...
|
@@ -73,7 +74,6 @@ class InvicationPageState extends State<InvicationPage> |
|
|
|
String wechat = '';
|
|
|
|
String qiniuUrl = '';
|
|
|
|
List<String> couponsCan = []; //优惠券弹框数据
|
|
|
|
|
|
|
|
|
|
|
|
final GlobalKey globalKey = GlobalKey();
|
|
|
|
String reserverPhone; //联系人保存成功后的值
|
|
...
|
...
|
@@ -648,7 +648,9 @@ class InvicationPageState extends State<InvicationPage> |
|
|
|
}
|
|
|
|
dateTime = DateTime.fromMillisecondsSinceEpoch(int.parse(ddate) * 1000);
|
|
|
|
dateTimeStr =
|
|
|
|
"${dateTime.year}年${Utils.addZeroNumber(dateTime.month)}月${Utils.addZeroNumber(dateTime.day)}日 星期${Utils.formatWeekDayNum(dateTime.weekday)} ${ddateStr}";
|
|
|
|
"${dateTime.year}年${Utils.addZeroNumber(dateTime.month)}月${Utils.addZeroNumber(dateTime.day)}日 ${detailEntity.ddateSolt}";
|
|
|
|
// weekInfoAndLunarCalendar = "星期${Utils.formatWeekDayNum(dateTime.weekday)}";
|
|
|
|
weekInfoAndLunarCalendar = returnWeekAndLunarCalendar(dateTime, context);
|
|
|
|
detailModel.selectNum = detailEntity.actual_pum;
|
|
|
|
detailModel.selectIndex = detailEntity.actual_pum != null
|
|
|
|
? personNumList.indexOf(detailEntity.actual_pum)
|
|
...
|
...
|
@@ -656,6 +658,13 @@ class InvicationPageState extends State<InvicationPage> |
|
|
|
setState(() {});
|
|
|
|
}
|
|
|
|
|
|
|
|
String returnWeekAndLunarCalendar(DateTime day, BuildContext context) {
|
|
|
|
String date = "星期${Utils.formatWeekDayNum(day.weekday)} ";
|
|
|
|
date += Utils.lunarCalendarHolidays(day);
|
|
|
|
|
|
|
|
return date;
|
|
|
|
}
|
|
|
|
|
|
|
|
_getTablesPhoto() async {
|
|
|
|
Map<String, String> params = {
|
|
|
|
"sellerid": Provider.of<UserModel>(context, listen: false).user.sellerid,
|
|
...
|
...
|
@@ -952,6 +961,191 @@ class InvicationPageState extends State<InvicationPage> |
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
///录入更多
|
|
|
|
_enterMoreWidget() {
|
|
|
|
return Container();
|
|
|
|
}
|
|
|
|
|
|
|
|
///桌位信息
|
|
|
|
_tableInfoWidget() {
|
|
|
|
return Column(
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
children: [
|
|
|
|
Padding(
|
|
|
|
padding: EdgeInsets.only(left: ScreenUtil().setWidth(48)),
|
|
|
|
child: Text(
|
|
|
|
'安排桌位:(共${tableInfo.length}桌)',
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_515151,
|
|
|
|
fontSize: ScreenUtil().setSp(24)),
|
|
|
|
)),
|
|
|
|
VEmptyView(34),
|
|
|
|
Container(
|
|
|
|
height: ScreenUtil().setWidth(200 * 2),
|
|
|
|
child: ListView.builder(
|
|
|
|
padding: EdgeInsets.only(left: ScreenUtil().setWidth(48)),
|
|
|
|
itemCount: tableInfo.length,
|
|
|
|
shrinkWrap: true,
|
|
|
|
scrollDirection: Axis.horizontal,
|
|
|
|
itemBuilder: (BuildContext contxt, int index) {
|
|
|
|
List<String> imagesOfTable =
|
|
|
|
_baseIndoProvider.photoList[tableInfo[index]['tid']];
|
|
|
|
return Container(
|
|
|
|
margin: EdgeInsets.only(right: ScreenUtil().setWidth(40)),
|
|
|
|
child: Column(
|
|
|
|
children: [
|
|
|
|
imagesOfTable != null && imagesOfTable.length > 0
|
|
|
|
? ClipRRect(
|
|
|
|
borderRadius: BorderRadius.only(
|
|
|
|
topRight:
|
|
|
|
Radius.circular(ScreenUtil().setWidth(12)),
|
|
|
|
topLeft:
|
|
|
|
Radius.circular(ScreenUtil().setWidth(12)),
|
|
|
|
),
|
|
|
|
child: CachedNetworkImage(
|
|
|
|
imageUrl: imagesOfTable[0],
|
|
|
|
fit: BoxFit.cover,
|
|
|
|
width: ScreenUtil().setWidth(141 * 2),
|
|
|
|
height: ScreenUtil().setWidth(79 * 2),
|
|
|
|
))
|
|
|
|
: Container(
|
|
|
|
width: ScreenUtil().setWidth(141 * 2),
|
|
|
|
height: ScreenUtil().setWidth(79 * 2),
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
gradient: LinearGradient(colors: [
|
|
|
|
Color.fromRGBO(185, 206, 203, 1),
|
|
|
|
Color.fromRGBO(103, 150, 183, 1),
|
|
|
|
]), // 渐变色
|
|
|
|
borderRadius: BorderRadius.only(
|
|
|
|
topRight: Radius.circular(
|
|
|
|
ScreenUtil().setWidth(12)),
|
|
|
|
topLeft: Radius.circular(
|
|
|
|
ScreenUtil().setWidth(12)),
|
|
|
|
)),
|
|
|
|
child: Column(
|
|
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
|
|
children: [
|
|
|
|
Image.asset(
|
|
|
|
Utils.getImgPath('add_area'),
|
|
|
|
width: ScreenUtil().setWidth(44),
|
|
|
|
),
|
|
|
|
VEmptyView(6),
|
|
|
|
Text(
|
|
|
|
'添加照片',
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_ffffff,
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
fontSize: ScreenUtil().setSp(19)),
|
|
|
|
)
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
Container(
|
|
|
|
width: ScreenUtil().setWidth(141 * 2),
|
|
|
|
height: ScreenUtil().setWidth(19 * 2),
|
|
|
|
alignment: Alignment.center,
|
|
|
|
padding: EdgeInsets.symmetric(
|
|
|
|
horizontal: ScreenUtil().setHeight(24)),
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
boxShadow: [
|
|
|
|
// BoxShadow(
|
|
|
|
BoxShadow(
|
|
|
|
color: Color.fromRGBO(0, 0, 0, 0.25), //投影颜色
|
|
|
|
offset: Offset(
|
|
|
|
0, ScreenUtil().setWidth(8)), //x,y轴
|
|
|
|
blurRadius: ScreenUtil().setWidth(8), //投影距离
|
|
|
|
spreadRadius: ScreenUtil().setWidth(-2))
|
|
|
|
],
|
|
|
|
color: MyColours.color_515151,
|
|
|
|
borderRadius: BorderRadius.only(
|
|
|
|
bottomLeft:
|
|
|
|
Radius.circular(ScreenUtil().setWidth(12)),
|
|
|
|
bottomRight:
|
|
|
|
Radius.circular(ScreenUtil().setWidth(12)),
|
|
|
|
)),
|
|
|
|
child: Text(
|
|
|
|
tableInfo[index]['name'],
|
|
|
|
textAlign: TextAlign.center,
|
|
|
|
style: TextStyle(
|
|
|
|
overflow: TextOverflow.ellipsis,
|
|
|
|
// letterSpacing: ScreenUtil()
|
|
|
|
// .setWidth(2.13 * 2),
|
|
|
|
color: MyColours.color_ffffff,
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
fontSize: ScreenUtil().setSp(24)),
|
|
|
|
),
|
|
|
|
)
|
|
|
|
],
|
|
|
|
),
|
|
|
|
);
|
|
|
|
}),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
///预订时间信息
|
|
|
|
_reverseTimeWidget() {
|
|
|
|
return Stack(
|
|
|
|
alignment: Alignment.centerRight,
|
|
|
|
children: [
|
|
|
|
Container(
|
|
|
|
width: double.infinity,
|
|
|
|
child: Column(
|
|
|
|
children: [
|
|
|
|
Container(
|
|
|
|
// height: ScreenUtil().setWidth(58),
|
|
|
|
child: Text(
|
|
|
|
'${dateTimeStr}',
|
|
|
|
style: TextStyle(
|
|
|
|
// letterSpacing: ScreenUtil().setWidth(1.8 * 2),
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
color: MyColours.color_515151,
|
|
|
|
fontSize: ScreenUtil().setSp(40)),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
VEmptyView(8),
|
|
|
|
Container(
|
|
|
|
// height: ScreenUtil().setWidth(58),
|
|
|
|
child: Text(
|
|
|
|
'${weekInfoAndLunarCalendar}',
|
|
|
|
style: TextStyle(
|
|
|
|
// letterSpacing: ScreenUtil().setWidth(1.8 * 2),
|
|
|
|
color: MyColours.color_999999,
|
|
|
|
fontSize: ScreenUtil().setSp(28)),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
)),
|
|
|
|
Positioned(
|
|
|
|
right: ScreenUtil().setWidth(24),
|
|
|
|
child: InkWell(
|
|
|
|
onTap: () {
|
|
|
|
print('点击变更预订');
|
|
|
|
UserModel userModel =
|
|
|
|
Provider.of<UserModel>(context, listen: false);
|
|
|
|
if (userModel.user.role_name != '管理员' &&
|
|
|
|
userModel.user.role_name != '店长' &&
|
|
|
|
detailEntity.uid != "null" &&
|
|
|
|
detailEntity.uid != userModel.user.openid) {
|
|
|
|
} else {
|
|
|
|
NavigatorUtil.goNoteBookChangeFPage(
|
|
|
|
context, detailEntity, widget.rid,
|
|
|
|
back: true);
|
|
|
|
}
|
|
|
|
},
|
|
|
|
child: Text(
|
|
|
|
'变更预订',
|
|
|
|
style: TextStyle(
|
|
|
|
decoration: TextDecoration.underline,
|
|
|
|
color: MyColours.color_438E93,
|
|
|
|
fontSize: ScreenUtil().setSp(20)),
|
|
|
|
),
|
|
|
|
))
|
|
|
|
],
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
///经理信息
|
|
|
|
Widget _managerWidget() {
|
|
|
|
return Stack(
|
|
...
|
...
|
@@ -2518,6 +2712,11 @@ class InvicationPageState extends State<InvicationPage> |
|
|
|
couponProvider = Provider.of<CouponProvider>(context, listen: true);
|
|
|
|
return SafeArea(
|
|
|
|
child: Scaffold(
|
|
|
|
appBar: SystemAppBar('预订安排', titleColor: MyColours.color_438E93,
|
|
|
|
onTap: () {
|
|
|
|
needBack = true;
|
|
|
|
_showConfirmWidget(needBack: true);
|
|
|
|
}),
|
|
|
|
backgroundColor: Colors.white,
|
|
|
|
// resizeToAvoidBottomInset: false,
|
|
|
|
body: InkWell(
|
|
...
|
...
|
@@ -2529,42 +2728,43 @@ class InvicationPageState extends State<InvicationPage> |
|
|
|
color: MyColours.color_ffffff,
|
|
|
|
child: Column(
|
|
|
|
children: [
|
|
|
|
Container(
|
|
|
|
width: double.infinity,
|
|
|
|
// color: backgroundColor,
|
|
|
|
padding: EdgeInsets.symmetric(
|
|
|
|
vertical: ScreenUtil().setHeight(30)),
|
|
|
|
child: Stack(
|
|
|
|
alignment: Alignment.center,
|
|
|
|
children: <Widget>[
|
|
|
|
Positioned(
|
|
|
|
left: 0,
|
|
|
|
child: InkWell(
|
|
|
|
onTap: () {
|
|
|
|
needBack = true;
|
|
|
|
_showConfirmWidget(needBack: true);
|
|
|
|
},
|
|
|
|
// behavior: HitTestBehavior.opaque,
|
|
|
|
child: Padding(
|
|
|
|
padding: EdgeInsets.symmetric(
|
|
|
|
horizontal: ScreenUtil().setWidth(40),
|
|
|
|
vertical: ScreenUtil().setHeight(15)),
|
|
|
|
child: Image.asset(
|
|
|
|
"assets/icon_back.png",
|
|
|
|
width: ScreenUtil().setWidth(20),
|
|
|
|
height: ScreenUtil().setHeight(31),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
Center(
|
|
|
|
child: Image.asset(
|
|
|
|
"assets/yd_logo.png",
|
|
|
|
width: ScreenUtil().setWidth(103 * 2),
|
|
|
|
// height: ScreenUtil().setHeight(21 * 2),
|
|
|
|
))
|
|
|
|
],
|
|
|
|
)),
|
|
|
|
// Container(
|
|
|
|
// width: double.infinity,
|
|
|
|
// // color: backgroundColor,
|
|
|
|
// padding: EdgeInsets.symmetric(
|
|
|
|
// vertical: ScreenUtil().setHeight(30)),
|
|
|
|
// child: Stack(
|
|
|
|
// alignment: Alignment.center,
|
|
|
|
// children: <Widget>[
|
|
|
|
// Positioned(
|
|
|
|
// left: 0,
|
|
|
|
// child: InkWell(
|
|
|
|
// onTap: () {
|
|
|
|
// needBack = true;
|
|
|
|
// _showConfirmWidget(needBack: true);
|
|
|
|
// },
|
|
|
|
// // behavior: HitTestBehavior.opaque,
|
|
|
|
// child: Padding(
|
|
|
|
// padding: EdgeInsets.symmetric(
|
|
|
|
// horizontal: ScreenUtil().setWidth(40),
|
|
|
|
// vertical: ScreenUtil().setHeight(15)),
|
|
|
|
// child: Image.asset(
|
|
|
|
// "assets/icon_back.png",
|
|
|
|
// width: ScreenUtil().setWidth(20),
|
|
|
|
// height: ScreenUtil().setHeight(31),
|
|
|
|
// ),
|
|
|
|
// ),
|
|
|
|
// ),
|
|
|
|
// ),
|
|
|
|
// Center(
|
|
|
|
// child: Image.asset(
|
|
|
|
// "assets/yd_logo.png",
|
|
|
|
// width: ScreenUtil().setWidth(103 * 2),
|
|
|
|
// // height: ScreenUtil().setHeight(21 * 2),
|
|
|
|
// ))
|
|
|
|
// ],
|
|
|
|
// )),
|
|
|
|
|
|
|
|
Expanded(child: Consumer<BaseIndoProvider>(
|
|
|
|
builder: (context, model, _) {
|
|
|
|
if (model.pageState != PageState.Success) {
|
|
...
|
...
|
@@ -2584,8 +2784,6 @@ class InvicationPageState extends State<InvicationPage> |
|
|
|
);
|
|
|
|
} else {
|
|
|
|
return Container(
|
|
|
|
padding: EdgeInsets.symmetric(
|
|
|
|
horizontal: ScreenUtil().setWidth(40)),
|
|
|
|
child: Column(
|
|
|
|
children: [
|
|
|
|
Expanded(
|
|
...
|
...
|
@@ -2597,7 +2795,15 @@ class InvicationPageState extends State<InvicationPage> |
|
|
|
reverse:
|
|
|
|
_phoneNode.hasFocus ? true : false,
|
|
|
|
child: Column(
|
|
|
|
crossAxisAlignment:
|
|
|
|
CrossAxisAlignment.start,
|
|
|
|
children: [
|
|
|
|
VEmptyView(38),
|
|
|
|
_reverseTimeWidget(),
|
|
|
|
VEmptyView(24),
|
|
|
|
_tableInfoWidget(),
|
|
|
|
VEmptyView(34),
|
|
|
|
_enterMoreWidget(),
|
|
|
|
VEmptyView(40),
|
|
|
|
_managerWidget(),
|
|
|
|
VEmptyView(50),
|
|
...
|
...
|
@@ -2611,7 +2817,10 @@ class InvicationPageState extends State<InvicationPage> |
|
|
|
ScreenUtil().setWidth(20))
|
|
|
|
],
|
|
|
|
))),
|
|
|
|
_btnWidget(),
|
|
|
|
Padding(
|
|
|
|
padding: EdgeInsets.symmetric(
|
|
|
|
horizontal: ScreenUtil().setWidth(48)),
|
|
|
|
child: _btnWidget()),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
);
|
|
...
|
...
|
@@ -2619,782 +2828,6 @@ class InvicationPageState extends State<InvicationPage> |
|
|
|
})),
|
|
|
|
],
|
|
|
|
)),
|
|
|
|
|
|
|
|
// body: Stack(
|
|
|
|
// children: [
|
|
|
|
// Column(children: [
|
|
|
|
// Expanded(
|
|
|
|
// child: ListView(
|
|
|
|
// controller: controller,
|
|
|
|
// physics: BouncingScrollPhysics(),
|
|
|
|
// children: <Widget>[
|
|
|
|
// Center(
|
|
|
|
// child: Column(
|
|
|
|
// children: <Widget>[
|
|
|
|
// VEmptyView(20),
|
|
|
|
// Image.asset(
|
|
|
|
// "assets/yd_logo.png",
|
|
|
|
// width: ScreenUtil().setWidth(233 * 2),
|
|
|
|
// height: ScreenUtil().setHeight(51 * 2),
|
|
|
|
// ),
|
|
|
|
// VEmptyView(26),
|
|
|
|
// Container(
|
|
|
|
// margin: EdgeInsets.symmetric(
|
|
|
|
// horizontal: ScreenUtil().setWidth(40)),
|
|
|
|
// // padding: EdgeInsets.all(
|
|
|
|
// // ScreenUtil().setWidth(60)),
|
|
|
|
// // decoration: BoxDecoration(
|
|
|
|
// // gradient: LinearGradient(
|
|
|
|
// // begin: Alignment.topCenter,
|
|
|
|
// // end: Alignment.bottomCenter,
|
|
|
|
// // colors: [
|
|
|
|
// // MyColours.color_F7F1E8,
|
|
|
|
// // MyColours.color_E3D6C7,
|
|
|
|
// // ],
|
|
|
|
// // ),
|
|
|
|
// // borderRadius: BorderRadius.circular(
|
|
|
|
// // ScreenUtil().setWidth(10))),
|
|
|
|
// child: Column(
|
|
|
|
// crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
|
// children: [
|
|
|
|
// Container(
|
|
|
|
// // color: Colors.red,
|
|
|
|
// width: ScreenUtil().setWidth(335 * 2),
|
|
|
|
// height: ScreenUtil().setWidth(200 * 2),
|
|
|
|
// // decoration: BoxDecoration(
|
|
|
|
// // image: DecorationImage(
|
|
|
|
// // alignment:
|
|
|
|
// // Alignment.topCenter,
|
|
|
|
// // image: AssetImage(
|
|
|
|
// // "assets/yd_baiinfo_bg.png"),
|
|
|
|
// // fit: BoxFit.cover),
|
|
|
|
// // ),
|
|
|
|
// child: Row(
|
|
|
|
// crossAxisAlignment:
|
|
|
|
// CrossAxisAlignment.start,
|
|
|
|
// children: [
|
|
|
|
// Padding(
|
|
|
|
// padding: EdgeInsets.only(
|
|
|
|
// left: ScreenUtil()
|
|
|
|
// .setWidth(70)),
|
|
|
|
// child: Stack(
|
|
|
|
// alignment:
|
|
|
|
// Alignment.bottomCenter,
|
|
|
|
// children: [
|
|
|
|
// Image.network(
|
|
|
|
// qiniuUrl == ''
|
|
|
|
// ? 'http://nosqn.colorcun.com/yd_person.png'
|
|
|
|
// : qiniuUrl,
|
|
|
|
// // 'http://nosqn.colorcun.com/yd_person.png',
|
|
|
|
// width: ScreenUtil()
|
|
|
|
// .setWidth(143 * 2),
|
|
|
|
// height: ScreenUtil()
|
|
|
|
// .setWidth(190 * 2)),
|
|
|
|
// couponProvider.coupons
|
|
|
|
// .length ==
|
|
|
|
// 0
|
|
|
|
// ? Align(
|
|
|
|
// alignment: Alignment
|
|
|
|
// .bottomCenter,
|
|
|
|
// child: RoundButton(
|
|
|
|
// width: ScreenUtil()
|
|
|
|
// .setWidth(
|
|
|
|
// 86 * 2),
|
|
|
|
// height:
|
|
|
|
// ScreenUtil()
|
|
|
|
// .setWidth(
|
|
|
|
// 30 *
|
|
|
|
// 2),
|
|
|
|
// radius:
|
|
|
|
// ScreenUtil()
|
|
|
|
// .setWidth(
|
|
|
|
// 30),
|
|
|
|
// space:
|
|
|
|
// ScreenUtil()
|
|
|
|
// .setWidth(
|
|
|
|
// 20),
|
|
|
|
// text: '添加优惠',
|
|
|
|
// textColor: MyColours
|
|
|
|
// .color_ffffff,
|
|
|
|
// isBold: false,
|
|
|
|
// fontSize: 28,
|
|
|
|
// gradientStart:
|
|
|
|
// MyColours
|
|
|
|
// .color_199095,
|
|
|
|
// gradientEnd: MyColours
|
|
|
|
// .color_199095,
|
|
|
|
// onPressed: () {
|
|
|
|
// NavigatorUtil
|
|
|
|
// .goCouponPage(
|
|
|
|
// context,
|
|
|
|
// needRefrsh:
|
|
|
|
// true);
|
|
|
|
// },
|
|
|
|
// ),
|
|
|
|
// )
|
|
|
|
// : Container()
|
|
|
|
// ],
|
|
|
|
// )),
|
|
|
|
// HEmptyView(10),
|
|
|
|
// Spacer(),
|
|
|
|
// Container(
|
|
|
|
// padding: EdgeInsets.only(
|
|
|
|
// top: ScreenUtil()
|
|
|
|
// .setWidth(37 * 2)),
|
|
|
|
// // height: ScreenUtil()
|
|
|
|
// // .setWidth(200 * 2),
|
|
|
|
// child: Column(
|
|
|
|
// mainAxisAlignment:
|
|
|
|
// MainAxisAlignment.start,
|
|
|
|
// crossAxisAlignment:
|
|
|
|
// CrossAxisAlignment.end,
|
|
|
|
// children: [
|
|
|
|
// // VEmptyView(60),
|
|
|
|
// GestureDetector(
|
|
|
|
// behavior: HitTestBehavior
|
|
|
|
// .opaque,
|
|
|
|
// onTap: () {
|
|
|
|
// _goBaseInfoPage();
|
|
|
|
// },
|
|
|
|
// child: Container(
|
|
|
|
// width: ScreenUtil()
|
|
|
|
// .setWidth(120 * 2),
|
|
|
|
// height: ScreenUtil()
|
|
|
|
// .setWidth(42 * 2),
|
|
|
|
// child: Text(
|
|
|
|
// name,
|
|
|
|
// overflow: TextOverflow
|
|
|
|
// .ellipsis,
|
|
|
|
// textAlign:
|
|
|
|
// TextAlign.right,
|
|
|
|
// style: TextStyle(
|
|
|
|
// color: MyColours
|
|
|
|
// .color_333333,
|
|
|
|
// fontSize:
|
|
|
|
// ScreenUtil()
|
|
|
|
// .setSp(
|
|
|
|
// 60)),
|
|
|
|
// ),
|
|
|
|
// ),
|
|
|
|
// ),
|
|
|
|
// // VEmptyView(6),
|
|
|
|
// InkWell(
|
|
|
|
// onTap: () {
|
|
|
|
// _goBaseInfoPage();
|
|
|
|
// },
|
|
|
|
// child: Container(
|
|
|
|
// width: ScreenUtil()
|
|
|
|
// .setWidth(
|
|
|
|
// 120 * 2),
|
|
|
|
// height: ScreenUtil()
|
|
|
|
// .setWidth(22 * 2),
|
|
|
|
// child: Text(
|
|
|
|
// phone,
|
|
|
|
// overflow:
|
|
|
|
// TextOverflow
|
|
|
|
// .ellipsis,
|
|
|
|
// textAlign:
|
|
|
|
// TextAlign.right,
|
|
|
|
// style: TextStyle(
|
|
|
|
// color: phone ==
|
|
|
|
// '填写电话'
|
|
|
|
// ? MyColours
|
|
|
|
// .color_999999
|
|
|
|
// : MyColours
|
|
|
|
// .color_333333,
|
|
|
|
// fontSize:
|
|
|
|
// ScreenUtil()
|
|
|
|
// .setSp(
|
|
|
|
// 32)),
|
|
|
|
// ),
|
|
|
|
// )),
|
|
|
|
// // VEmptyView(6),
|
|
|
|
// InkWell(
|
|
|
|
// onTap: () {
|
|
|
|
// _goBaseInfoPage();
|
|
|
|
// },
|
|
|
|
// child: Container(
|
|
|
|
// width: ScreenUtil()
|
|
|
|
// .setWidth(
|
|
|
|
// 120 * 2),
|
|
|
|
// height: ScreenUtil()
|
|
|
|
// .setWidth(24 * 2),
|
|
|
|
// child: Text(
|
|
|
|
// position,
|
|
|
|
// overflow:
|
|
|
|
// TextOverflow
|
|
|
|
// .ellipsis,
|
|
|
|
// textAlign:
|
|
|
|
// TextAlign.right,
|
|
|
|
// style: TextStyle(
|
|
|
|
// color: MyColours
|
|
|
|
// .color_333333,
|
|
|
|
// fontSize:
|
|
|
|
// ScreenUtil()
|
|
|
|
// .setSp(
|
|
|
|
// 34)),
|
|
|
|
// ),
|
|
|
|
// )),
|
|
|
|
|
|
|
|
// RoundButton(
|
|
|
|
// // width: ScreenUtil().setWidth(95),
|
|
|
|
// height: ScreenUtil()
|
|
|
|
// .setWidth(60 * 2),
|
|
|
|
// image: Utils.getImgPath(
|
|
|
|
// 'yd_bianji'),
|
|
|
|
// imgWidth: 24,
|
|
|
|
// radius: 0,
|
|
|
|
// space: ScreenUtil()
|
|
|
|
// .setWidth(20),
|
|
|
|
// text: '编辑',
|
|
|
|
// textColor: MyColours
|
|
|
|
// .color_199095,
|
|
|
|
// isBold: false,
|
|
|
|
// fontSize: 28,
|
|
|
|
// gradientStart:
|
|
|
|
// Colors.transparent,
|
|
|
|
// gradientEnd:
|
|
|
|
// Colors.transparent,
|
|
|
|
// onPressed: () {
|
|
|
|
// _goBaseInfoPage();
|
|
|
|
// },
|
|
|
|
// )
|
|
|
|
// ],
|
|
|
|
// )),
|
|
|
|
// HEmptyView(60),
|
|
|
|
// ],
|
|
|
|
// )),
|
|
|
|
// // Positioned(
|
|
|
|
// // bottom: 0,
|
|
|
|
// // child: Container(
|
|
|
|
// // color: MyColours.color_EEDBC4,
|
|
|
|
// // width: double.infinity,
|
|
|
|
// // height:
|
|
|
|
// // ScreenUtil().setWidth(40),
|
|
|
|
// // ))
|
|
|
|
// // ],
|
|
|
|
// // ),
|
|
|
|
// // Container(
|
|
|
|
// // color: MyColours.color_EEDBC4,
|
|
|
|
// // width: double.infinity,
|
|
|
|
// // height: ScreenUtil().setWidth(40),
|
|
|
|
// // ),
|
|
|
|
// VEmptyView(76),
|
|
|
|
// // Image.asset(
|
|
|
|
// // "assets/yd_up.png",
|
|
|
|
// // width: ScreenUtil().setWidth(195 * 2),
|
|
|
|
// // height:
|
|
|
|
// // ScreenUtil().setHeight(33 * 2),
|
|
|
|
// // ),
|
|
|
|
// // VEmptyView(50),
|
|
|
|
|
|
|
|
// RepaintBoundary(
|
|
|
|
// key: globalKey,
|
|
|
|
// child: Container(
|
|
|
|
// padding: EdgeInsets.fromLTRB(
|
|
|
|
// ScreenUtil().setWidth(10),
|
|
|
|
// ScreenUtil().setWidth(10),
|
|
|
|
// ScreenUtil().setWidth(10),
|
|
|
|
// ScreenUtil().setWidth(40)),
|
|
|
|
// // color: Colors.red,
|
|
|
|
// child: Column(
|
|
|
|
// children: [
|
|
|
|
// Container(
|
|
|
|
// height: ScreenUtil().setWidth(58),
|
|
|
|
// child: Text(
|
|
|
|
// user.sellername,
|
|
|
|
// style: TextStyle(
|
|
|
|
// // letterSpacing: ScreenUtil()
|
|
|
|
// // .setWidth(2.13 * 2),
|
|
|
|
// color:
|
|
|
|
// MyColours.color_333333,
|
|
|
|
// // fontWeight: FontWeight.bold,
|
|
|
|
// fontSize:
|
|
|
|
// ScreenUtil().setSp(42)),
|
|
|
|
// ),
|
|
|
|
// ),
|
|
|
|
// VEmptyView(14),
|
|
|
|
// Container(
|
|
|
|
// height: ScreenUtil().setWidth(58),
|
|
|
|
// child: Text(
|
|
|
|
// '${dateTimeStr}',
|
|
|
|
// style: TextStyle(
|
|
|
|
// letterSpacing: ScreenUtil()
|
|
|
|
// .setWidth(1.8 * 2),
|
|
|
|
// color:
|
|
|
|
// MyColours.color_333333,
|
|
|
|
// fontSize:
|
|
|
|
// ScreenUtil().setSp(42)),
|
|
|
|
// ),
|
|
|
|
// ),
|
|
|
|
// VEmptyView(26),
|
|
|
|
// Container(
|
|
|
|
// height: ScreenUtil().setWidth(44),
|
|
|
|
// child: Text(
|
|
|
|
// '已为您安排在包间',
|
|
|
|
// style: TextStyle(
|
|
|
|
// color:
|
|
|
|
// MyColours.color_666666,
|
|
|
|
// fontSize:
|
|
|
|
// ScreenUtil().setSp(32)),
|
|
|
|
// ),
|
|
|
|
// ),
|
|
|
|
// VEmptyView(28),
|
|
|
|
// GestureDetector(
|
|
|
|
// onTapDown: (TapDownDetails
|
|
|
|
// details) =>
|
|
|
|
// onTapDown(context, details),
|
|
|
|
// child: Container(
|
|
|
|
// child: Stack(
|
|
|
|
// alignment:
|
|
|
|
// Alignment.bottomCenter,
|
|
|
|
// overflow: Overflow.visible,
|
|
|
|
// children: [
|
|
|
|
// Container(
|
|
|
|
// margin: EdgeInsets.only(
|
|
|
|
// bottom: ScreenUtil()
|
|
|
|
// .setWidth(24)),
|
|
|
|
// constraints: BoxConstraints(
|
|
|
|
// maxWidth: ScreenUtil()
|
|
|
|
// .setWidth(
|
|
|
|
// 195 * 2)),
|
|
|
|
// padding:
|
|
|
|
// EdgeInsets.fromLTRB(
|
|
|
|
// ScreenUtil()
|
|
|
|
// .setWidth(60),
|
|
|
|
// ScreenUtil()
|
|
|
|
// .setWidth(30),
|
|
|
|
// ScreenUtil()
|
|
|
|
// .setWidth(60),
|
|
|
|
// ScreenUtil()
|
|
|
|
// .setWidth(
|
|
|
|
// 24 * 2)),
|
|
|
|
// decoration: BoxDecoration(
|
|
|
|
// borderRadius: BorderRadius.all(
|
|
|
|
// Radius.circular(
|
|
|
|
// ScreenUtil()
|
|
|
|
// .setWidth(
|
|
|
|
// 13 *
|
|
|
|
// 2))),
|
|
|
|
// border: Border.all(
|
|
|
|
// color: MyColours
|
|
|
|
// .color_199095,
|
|
|
|
// width:
|
|
|
|
// ScreenUtil()
|
|
|
|
// .setWidth(
|
|
|
|
// 4))),
|
|
|
|
// child: Text(
|
|
|
|
// widget.tableInfo
|
|
|
|
// .replaceAll(
|
|
|
|
// "\n", ""),
|
|
|
|
// style: TextStyle(
|
|
|
|
// // letterSpacing: ScreenUtil()
|
|
|
|
// // .setWidth(2.13 * 2),
|
|
|
|
// color: MyColours
|
|
|
|
// .color_333333,
|
|
|
|
// fontWeight:
|
|
|
|
// FontWeight.bold,
|
|
|
|
// fontSize:
|
|
|
|
// ScreenUtil()
|
|
|
|
// .setSp(52)),
|
|
|
|
// ),
|
|
|
|
// ),
|
|
|
|
// Positioned(
|
|
|
|
// key: key,
|
|
|
|
// bottom: 0,
|
|
|
|
// child: RoundButton(
|
|
|
|
// onPressed: () {
|
|
|
|
// _seePhoto();
|
|
|
|
// },
|
|
|
|
// text: '浏览照片',
|
|
|
|
// width: ScreenUtil()
|
|
|
|
// .setWidth(68 * 2),
|
|
|
|
// height: ScreenUtil()
|
|
|
|
// .setWidth(24 * 2),
|
|
|
|
// fontSize: 26,
|
|
|
|
// textColor: _baseIndoProvider
|
|
|
|
// .photoList
|
|
|
|
// .length >
|
|
|
|
// 0
|
|
|
|
// ? MyColours
|
|
|
|
// .color_ffffff
|
|
|
|
// : MyColours
|
|
|
|
// .color_999999,
|
|
|
|
// isBold: false,
|
|
|
|
// gradientStart: _baseIndoProvider
|
|
|
|
// .photoList
|
|
|
|
// .length >
|
|
|
|
// 0
|
|
|
|
// ? MyColours
|
|
|
|
// .color_199095
|
|
|
|
// : MyColours
|
|
|
|
// .color_E0E0E0,
|
|
|
|
// gradientEnd: _baseIndoProvider
|
|
|
|
// .photoList
|
|
|
|
// .length >
|
|
|
|
// 0
|
|
|
|
// ? MyColours
|
|
|
|
// .color_199095
|
|
|
|
// : MyColours
|
|
|
|
// .color_E0E0E0,
|
|
|
|
// ))
|
|
|
|
// ],
|
|
|
|
// ))),
|
|
|
|
// ],
|
|
|
|
// ),
|
|
|
|
// ),
|
|
|
|
// ),
|
|
|
|
|
|
|
|
// VEmptyView(30),
|
|
|
|
// Container(
|
|
|
|
// // height: ScreenUtil().setWidth(40),
|
|
|
|
// child: Text(
|
|
|
|
// '${user.sellerAddr}',
|
|
|
|
// maxLines: 3,
|
|
|
|
// overflow: TextOverflow.ellipsis,
|
|
|
|
// textAlign: TextAlign.center,
|
|
|
|
// style: TextStyle(
|
|
|
|
// color: MyColours.color_333333,
|
|
|
|
// fontSize: ScreenUtil().setSp(28)),
|
|
|
|
// ),
|
|
|
|
// ),
|
|
|
|
// // VEmptyView(20),
|
|
|
|
// // RoundButton(
|
|
|
|
// // text: '一键导航',
|
|
|
|
// // width: ScreenUtil().setWidth(68 * 2),
|
|
|
|
// // height: ScreenUtil().setWidth(24 * 2),
|
|
|
|
// // fontSize: 24,
|
|
|
|
// // textColor: MyColours.color_794F28,
|
|
|
|
// // isBold: false,
|
|
|
|
// // gradientStart:
|
|
|
|
// // Color.fromRGBO(121, 79, 40, 0.1),
|
|
|
|
// // gradientEnd:
|
|
|
|
// // Color.fromRGBO(121, 79, 40, 0.1),
|
|
|
|
// // ),
|
|
|
|
// // VEmptyView(50),
|
|
|
|
// // Image.asset(
|
|
|
|
// // "assets/yd_down.png",
|
|
|
|
// // width: ScreenUtil().setWidth(195 * 2),
|
|
|
|
// // height:
|
|
|
|
// // ScreenUtil().setHeight(33 * 2),
|
|
|
|
// // ),
|
|
|
|
// // VEmptyView(60),
|
|
|
|
// ],
|
|
|
|
// ),
|
|
|
|
// )
|
|
|
|
// ],
|
|
|
|
// ),
|
|
|
|
// ),
|
|
|
|
// VEmptyView(couponHeight),
|
|
|
|
// ])),
|
|
|
|
// Padding(
|
|
|
|
// padding: EdgeInsets.fromLTRB(
|
|
|
|
// ScreenUtil().setWidth(70),
|
|
|
|
// ScreenUtil().setWidth(20),
|
|
|
|
// ScreenUtil().setWidth(70),
|
|
|
|
// ScreenUtil().setWidth(40)),
|
|
|
|
// child: Column(children: [
|
|
|
|
// RoundButton(
|
|
|
|
// text: '微信通知',
|
|
|
|
// width: double.infinity,
|
|
|
|
// height: ScreenUtil().setWidth(84),
|
|
|
|
// gradientStart: MyColours.color_199095,
|
|
|
|
// gradientEnd: MyColours.color_199095,
|
|
|
|
// textColor: MyColours.color_ffffff,
|
|
|
|
// fontSize: 34,
|
|
|
|
// radius: ScreenUtil().setWidth(10),
|
|
|
|
// isBold: false,
|
|
|
|
// onPressed: () async {
|
|
|
|
// // Uint8List image = await _getImage();
|
|
|
|
// print(widget.rid);
|
|
|
|
// print(Provider.of<UserModel>(context, listen: false)
|
|
|
|
// .user
|
|
|
|
// .openid);
|
|
|
|
// // if (ObjectUtil.isEmpty(
|
|
|
|
// // _baseIndoProvider.baseInfoSunModel)) {
|
|
|
|
// // Utils.showToast('请输入个人资料');
|
|
|
|
// // return;
|
|
|
|
// // }
|
|
|
|
// // if (ObjectUtil.isEmpty(
|
|
|
|
// // _baseIndoProvider.baseInfoSunModel.name)) {
|
|
|
|
// // Utils.showToast('请填写您的姓名');
|
|
|
|
// // return;
|
|
|
|
// // }
|
|
|
|
// if (ObjectUtil.isEmpty(
|
|
|
|
// _baseIndoProvider.baseInfoSunModel) ||
|
|
|
|
// ObjectUtil.isEmpty(
|
|
|
|
// _baseIndoProvider.baseInfoSunModel.phone)) {
|
|
|
|
// Utils.showToast('请填写您的联系电话');
|
|
|
|
// return;
|
|
|
|
// }
|
|
|
|
// // if (ObjectUtil.isEmpty(
|
|
|
|
// // _baseIndoProvider.baseInfoSunModel.position)) {
|
|
|
|
// // Utils.showToast('请填写您在餐厅中的职位');
|
|
|
|
// // return;
|
|
|
|
// // }
|
|
|
|
// // if (ObjectUtil.isEmpty(
|
|
|
|
// // _baseIndoProvider.baseInfoSunModel.phone)) {
|
|
|
|
// // Utils.showToast('请上传您的头像');
|
|
|
|
// // return;
|
|
|
|
// // }
|
|
|
|
// // if (ObjectUtil.isEmpty(
|
|
|
|
// // _baseIndoProvider.baseInfoSunModel.qrcode)) {
|
|
|
|
// // Utils.showToast('请上传您的微信二维码');
|
|
|
|
// // return;
|
|
|
|
// // }
|
|
|
|
// if (!couponProvider.hasModify &&
|
|
|
|
// couponProvider.coupons.length > 0) {
|
|
|
|
// Map<String, String> params = {
|
|
|
|
// "rid": widget.rid,
|
|
|
|
// "aid": Utils.listToStringEnglish(
|
|
|
|
// couponProvider.coupons)
|
|
|
|
// };
|
|
|
|
// bool isSuc = await couponProvider
|
|
|
|
// .setActivityAsReserve(context, params);
|
|
|
|
// if (isSuc) {
|
|
|
|
// couponProvider.hasModify = true;
|
|
|
|
|
|
|
|
// bool isSuccess =
|
|
|
|
// await Utils.goShareInvicationToWeChat(
|
|
|
|
// widget.rid,
|
|
|
|
// Provider.of<UserModel>(context,
|
|
|
|
// listen: false)
|
|
|
|
// .user
|
|
|
|
// .openid);
|
|
|
|
// print(isSuccess);
|
|
|
|
// if (isSuccess) {
|
|
|
|
// _addForward();
|
|
|
|
// }
|
|
|
|
// // couponProvider.couponsShow = [];
|
|
|
|
// // couponProvider.couponsShow
|
|
|
|
// // .addAll(couponProvider.coupons);
|
|
|
|
// // couponProvider.coupons = [];
|
|
|
|
// // couponProvider.notifyListeners();
|
|
|
|
// }
|
|
|
|
// } else {
|
|
|
|
// bool isSuccess =
|
|
|
|
// await Utils.goShareInvicationToWeChat(
|
|
|
|
// widget.rid,
|
|
|
|
// Provider.of<UserModel>(context,
|
|
|
|
// listen: false)
|
|
|
|
// .user
|
|
|
|
// .openid);
|
|
|
|
// if (isSuccess) {
|
|
|
|
// _addForward();
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
// },
|
|
|
|
// ),
|
|
|
|
// VEmptyView(20),
|
|
|
|
// Stack(children: [
|
|
|
|
// Container(
|
|
|
|
// margin: EdgeInsets.only(
|
|
|
|
// top: ScreenUtil().setWidth(10),
|
|
|
|
// right: ScreenUtil().setWidth(6)),
|
|
|
|
// child: RoundButton(
|
|
|
|
// text: '发短信',
|
|
|
|
// width: double.infinity,
|
|
|
|
// height: ScreenUtil().setWidth(84),
|
|
|
|
// gradientStart: MyColours.color_ffffff,
|
|
|
|
// gradientEnd: MyColours.color_ffffff,
|
|
|
|
// textColor: MyColours.color_199095,
|
|
|
|
// borderColor: MyColours.color_199095,
|
|
|
|
// fontSize: 34,
|
|
|
|
// radius: ScreenUtil().setWidth(10),
|
|
|
|
// isBold: false,
|
|
|
|
// onPressed: () async {
|
|
|
|
// if (reserverPhone == null ||
|
|
|
|
// reserverPhone.isEmpty) {
|
|
|
|
// //跳转到录入联系人页面
|
|
|
|
// String temp =
|
|
|
|
// await NavigatorUtil.goEditReserverPage(
|
|
|
|
// context,
|
|
|
|
// widget.rid,
|
|
|
|
// widget.name,
|
|
|
|
// widget.sex,
|
|
|
|
// needBtn: true);
|
|
|
|
// if (temp != null) {
|
|
|
|
// reserverPhone = temp;
|
|
|
|
// }
|
|
|
|
// } else if (!Utils.phoneRegExp(
|
|
|
|
// reserverPhone)) {
|
|
|
|
// Utils.showToast('手机号错误,请修改正确');
|
|
|
|
// //跳转到录入联系人页面
|
|
|
|
// String temp =
|
|
|
|
// await NavigatorUtil.goEditReserverPage(
|
|
|
|
// context,
|
|
|
|
// widget.rid,
|
|
|
|
// widget.name,
|
|
|
|
// widget.sex,
|
|
|
|
// needBtn: true);
|
|
|
|
// if (temp != null) {
|
|
|
|
// reserverPhone = temp;
|
|
|
|
// }
|
|
|
|
// } else {
|
|
|
|
// if (!couponProvider.sendSMS) {
|
|
|
|
// /*
|
|
|
|
// String dateSoltStr = '';
|
|
|
|
// if (widget.dateSolt == '1') {
|
|
|
|
// dateSoltStr = '早餐';
|
|
|
|
// } else if (widget.dateSolt == '2') {
|
|
|
|
// dateSoltStr = '午餐';
|
|
|
|
// } else if (widget.dateSolt == '3') {
|
|
|
|
// dateSoltStr = '晚餐';
|
|
|
|
// }
|
|
|
|
// DateTime dateTimeTemp =
|
|
|
|
// DateTime.fromMillisecondsSinceEpoch(
|
|
|
|
// int.parse(widget.ddate) * 1000);
|
|
|
|
// String dateTimeStrTemp =
|
|
|
|
// "${Utils.addZeroNumber(dateTimeTemp.month)}月${Utils.addZeroNumber(dateTimeTemp.day)}日";
|
|
|
|
// Map<String, String> params = {
|
|
|
|
// "id": widget.rid,
|
|
|
|
// "uid": Provider.of<UserModel>(context,
|
|
|
|
// listen: false)
|
|
|
|
// .user
|
|
|
|
// .openid,
|
|
|
|
// "phone": widget.phone,
|
|
|
|
|
|
|
|
// // "Strtext": user.sellername +
|
|
|
|
// // dateTimeStrTemp +
|
|
|
|
// // dateSoltStr +
|
|
|
|
// // ',' +
|
|
|
|
// // '餐厅经理' +
|
|
|
|
// // _baseIndoProvider.baseInfoSunModel.name +
|
|
|
|
// // '已为您安排在' +
|
|
|
|
// // widget.tableInfo.replaceAll("\n", "")
|
|
|
|
// };
|
|
|
|
// if (ObjectUtil.isNotEmpty(_baseIndoProvider
|
|
|
|
// .baseInfoSunModel) &&
|
|
|
|
// ObjectUtil.isNotEmpty(_baseIndoProvider
|
|
|
|
// .baseInfoSunModel.name)) {
|
|
|
|
// params['Strtext'] = user.sellername +
|
|
|
|
// _baseIndoProvider
|
|
|
|
// .baseInfoSunModel.name;
|
|
|
|
// } else {
|
|
|
|
// params['Strtext'] = user.sellername;
|
|
|
|
// }
|
|
|
|
// */
|
|
|
|
// UserModel userModel =
|
|
|
|
// Provider.of<UserModel>(context,
|
|
|
|
// listen: false);
|
|
|
|
// Map<String, String> params = {
|
|
|
|
// "rid": widget.rid,
|
|
|
|
// "sid": userModel.user.sellerid
|
|
|
|
// };
|
|
|
|
// bool success = await couponProvider
|
|
|
|
// .sendSMSWxSendSms(context, params);
|
|
|
|
// print(success);
|
|
|
|
// // if (success) {
|
|
|
|
// // Utils.showToast('短信已经发送成功!');
|
|
|
|
// // } else {
|
|
|
|
// // Utils.showToast('发送次数太频繁!');
|
|
|
|
// // }
|
|
|
|
// } else {
|
|
|
|
// Utils.showToast('短信已经发送成功!');
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
|
|
|
|
// // _sendSms();
|
|
|
|
|
|
|
|
// // NavigatorUtil.goSmsPage(context, widget.rid);
|
|
|
|
// },
|
|
|
|
// )),
|
|
|
|
// Positioned(
|
|
|
|
// top: 0,
|
|
|
|
// right: 0,
|
|
|
|
// child: Container(
|
|
|
|
// // padding: EdgeInsets.symmetric(horizontal: ScreenUtil().setWidth(16),vertical: ScreenUtil().setWidth(4)),
|
|
|
|
// padding: EdgeInsets.only(
|
|
|
|
// bottom: ScreenUtil().setWidth(6)),
|
|
|
|
// alignment: Alignment.center,
|
|
|
|
// width: ScreenUtil().setWidth(62 * 2),
|
|
|
|
// height: ScreenUtil().setWidth(42),
|
|
|
|
// decoration: BoxDecoration(
|
|
|
|
// // color: Colors.red,
|
|
|
|
// image: DecorationImage(
|
|
|
|
// image: ExactAssetImage(
|
|
|
|
// Utils.getImgPath('sms_bg'),
|
|
|
|
// ),
|
|
|
|
// fit: BoxFit.cover,
|
|
|
|
// ),
|
|
|
|
// ),
|
|
|
|
// child: Text(
|
|
|
|
// '免费短信',
|
|
|
|
// style: TextStyle(
|
|
|
|
// color: MyColours.color_fefefe,
|
|
|
|
// fontSize: ScreenUtil().setSp(24)),
|
|
|
|
// )),
|
|
|
|
// )
|
|
|
|
// ])
|
|
|
|
// ])),
|
|
|
|
// ]),
|
|
|
|
// Positioned(
|
|
|
|
// // left: ScreenUtil().setWidth(180),
|
|
|
|
// bottom: ScreenUtil().setWidth(124 * 2),
|
|
|
|
// right: ScreenUtil().setWidth(52 * 2),
|
|
|
|
// child: couponProvider.hasModify ||
|
|
|
|
// couponProvider.coupons.length > 0 ||
|
|
|
|
// couponProvider.couponListSelect.length > 0
|
|
|
|
// ? GestureDetector(
|
|
|
|
// onTap: () async {
|
|
|
|
// NavigatorUtil.goCouponSelectPage(context,
|
|
|
|
// from: 'other',
|
|
|
|
// hasModify: couponProvider.hasModify);
|
|
|
|
// },
|
|
|
|
// behavior: HitTestBehavior.opaque,
|
|
|
|
// child: Column(
|
|
|
|
// crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
|
// children: [
|
|
|
|
// Container(
|
|
|
|
// padding: EdgeInsets.symmetric(
|
|
|
|
// horizontal: ScreenUtil().setWidth(40),
|
|
|
|
// vertical: ScreenUtil().setWidth(16)),
|
|
|
|
// height: ScreenUtil().setWidth(35 * 2),
|
|
|
|
// decoration: BoxDecoration(
|
|
|
|
// color: Color.fromRGBO(0, 0, 0, 0.5),
|
|
|
|
// borderRadius: BorderRadius.circular(
|
|
|
|
// ScreenUtil().setWidth(20))),
|
|
|
|
// child: Row(
|
|
|
|
// children: [
|
|
|
|
// Text(
|
|
|
|
// '并赠送给顾客${couponProvider.coupons.length}张优惠券',
|
|
|
|
// textAlign: TextAlign.center,
|
|
|
|
// style: TextStyle(
|
|
|
|
// color: MyColours.color_f5f5f5,
|
|
|
|
// fontWeight: FontWeight.bold,
|
|
|
|
// fontSize: ScreenUtil().setSp(28),
|
|
|
|
// ),
|
|
|
|
// ),
|
|
|
|
// HEmptyView(40),
|
|
|
|
// RoundButton(
|
|
|
|
// width: ScreenUtil().setWidth(124),
|
|
|
|
// height: ScreenUtil().setWidth(46),
|
|
|
|
// text: '点击查看',
|
|
|
|
// textColor: MyColours.color_FDA31D,
|
|
|
|
// fontSize: 24,
|
|
|
|
// isBold: true,
|
|
|
|
// radius: ScreenUtil().setWidth(10),
|
|
|
|
// gradientStart: MyColours.color_f5f5f5,
|
|
|
|
// gradientEnd: MyColours.color_f5f5f5,
|
|
|
|
// onPressed: () async {
|
|
|
|
// NavigatorUtil.goCouponSelectPage(
|
|
|
|
// context,
|
|
|
|
// from: 'other',
|
|
|
|
// hasModify:
|
|
|
|
// couponProvider.hasModify);
|
|
|
|
// },
|
|
|
|
// )
|
|
|
|
// ],
|
|
|
|
// )),
|
|
|
|
// Image.asset(Utils.getImgPath('jian'),
|
|
|
|
// width: ScreenUtil().setWidth(28),
|
|
|
|
// height: ScreenUtil().setWidth(20))
|
|
|
|
// ],
|
|
|
|
// ))
|
|
|
|
// : Container(),
|
|
|
|
// )
|
|
|
|
// ],
|
|
|
|
// )
|
|
|
|
)));
|
|
|
|
}
|
|
|
|
} |
...
|
...
|
|