|
...
|
...
|
@@ -1756,41 +1756,41 @@ class DialogUtil { |
|
|
|
HEmptyView(32),
|
|
|
|
InkWell(
|
|
|
|
onTap: () {
|
|
|
|
List<String> list = [];
|
|
|
|
for (FilterBtnModel item
|
|
|
|
in managerList) {
|
|
|
|
list.add(item.title);
|
|
|
|
}
|
|
|
|
DialogUtil.showSelectCusmanDialog(
|
|
|
|
context, list, (value) async {
|
|
|
|
if (value != null) {
|
|
|
|
currentIndex = value.first;
|
|
|
|
manager = list[value.first];
|
|
|
|
state(() {});
|
|
|
|
// detailModel
|
|
|
|
// .notifyListeners();
|
|
|
|
// setState(() {
|
|
|
|
// selectPnum = value.first;
|
|
|
|
// pnum = pnumlist[value.first];
|
|
|
|
// });
|
|
|
|
// bool sucess =
|
|
|
|
// await detailModel.upReserveInfo(
|
|
|
|
// context, widget.rid,
|
|
|
|
// actualPum:
|
|
|
|
// detailModel.selectNum);
|
|
|
|
|
|
|
|
// if (sucess) {
|
|
|
|
// EventBus().emit(
|
|
|
|
// "refresh_tablemanager"); //刷新桌位
|
|
|
|
// await _getReserveDetail(
|
|
|
|
// showCicle: false);
|
|
|
|
// }
|
|
|
|
}
|
|
|
|
},
|
|
|
|
selecteds: currentIndex == null
|
|
|
|
? []
|
|
|
|
: [currentIndex])
|
|
|
|
.then((value) {});
|
|
|
|
// List<String> list = [];
|
|
|
|
// for (FilterBtnModel item
|
|
|
|
// in managerList) {
|
|
|
|
// list.add(item.title);
|
|
|
|
// }
|
|
|
|
// DialogUtil.showSelectCusmanDialog(
|
|
|
|
// context, list, (value) async {
|
|
|
|
// if (value != null) {
|
|
|
|
// currentIndex = value.first;
|
|
|
|
// manager = list[value.first];
|
|
|
|
// state(() {});
|
|
|
|
// // detailModel
|
|
|
|
// // .notifyListeners();
|
|
|
|
// // setState(() {
|
|
|
|
// // selectPnum = value.first;
|
|
|
|
// // pnum = pnumlist[value.first];
|
|
|
|
// // });
|
|
|
|
// // bool sucess =
|
|
|
|
// // await detailModel.upReserveInfo(
|
|
|
|
// // context, widget.rid,
|
|
|
|
// // actualPum:
|
|
|
|
// // detailModel.selectNum);
|
|
|
|
|
|
|
|
// // if (sucess) {
|
|
|
|
// // EventBus().emit(
|
|
|
|
// // "refresh_tablemanager"); //刷新桌位
|
|
|
|
// // await _getReserveDetail(
|
|
|
|
// // showCicle: false);
|
|
|
|
// // }
|
|
|
|
// }
|
|
|
|
// },
|
|
|
|
// selecteds: currentIndex == null
|
|
|
|
// ? []
|
|
|
|
// : [currentIndex])
|
|
|
|
// .then((value) {});
|
|
|
|
},
|
|
|
|
child: Container(
|
|
|
|
padding: EdgeInsets.symmetric(
|
|
...
|
...
|
@@ -1803,7 +1803,7 @@ class DialogUtil { |
|
|
|
borderRadius: BorderRadius.circular(
|
|
|
|
ScreenUtil().setWidth(20)),
|
|
|
|
border: Border.all(
|
|
|
|
color: MyColours.color_438E93,
|
|
|
|
color: MyColours.color_999999,
|
|
|
|
width:
|
|
|
|
ScreenUtil().setWidth(2))),
|
|
|
|
child: Row(
|
|
...
|
...
|
@@ -1819,12 +1819,12 @@ class DialogUtil { |
|
|
|
fontSize:
|
|
|
|
ScreenUtil().setSp(28),
|
|
|
|
color:
|
|
|
|
MyColours.color_438E93),
|
|
|
|
MyColours.color_999999),
|
|
|
|
)),
|
|
|
|
HEmptyView(14),
|
|
|
|
Image.asset(
|
|
|
|
Utils.getImgPath(
|
|
|
|
'c_arrow_down'),
|
|
|
|
'arrow_down_sim'),
|
|
|
|
width:
|
|
|
|
ScreenUtil().setWidth(40)),
|
|
|
|
],
|
|
...
|
...
|
@@ -8550,6 +8550,152 @@ class DialogUtil { |
|
|
|
}
|
|
|
|
|
|
|
|
///店铺临近过期弹窗
|
|
|
|
static cupertinoAlertSellerHasEdateDialogSim(BuildContext context,
|
|
|
|
{String title = "",
|
|
|
|
String content = "内容",
|
|
|
|
String lTitle = "关闭",
|
|
|
|
String rTitle = "立即续费",
|
|
|
|
Color rColor = MyColours.color_438E93,
|
|
|
|
bool isBold = false,
|
|
|
|
bool isBoldContent = false,
|
|
|
|
Color contentColor = MyColours.color_99000000,
|
|
|
|
VoidCallback lCallback,
|
|
|
|
VoidCallback rCallback}) async {
|
|
|
|
// bool isRed = content != '' ? false : true;
|
|
|
|
final action = await showDialog(
|
|
|
|
context: context,
|
|
|
|
barrierDismissible: false,
|
|
|
|
builder: (BuildContext context) {
|
|
|
|
return StatefulBuilder(builder: (context, state) {
|
|
|
|
return Scaffold(
|
|
|
|
backgroundColor: Colors.transparent,
|
|
|
|
body: Center(
|
|
|
|
child: Container(
|
|
|
|
padding: EdgeInsets.symmetric(
|
|
|
|
horizontal: ScreenUtil().setWidth(50)),
|
|
|
|
// height: ScreenUtil().setWidth(421 * 2),
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
borderRadius:
|
|
|
|
BorderRadius.circular(ScreenUtil().setWidth(16))),
|
|
|
|
child: SingleChildScrollView(
|
|
|
|
child: Card(
|
|
|
|
shape: RoundedRectangleBorder(
|
|
|
|
borderRadius: BorderRadius.all(
|
|
|
|
Radius.circular(ScreenUtil().setWidth(10)))), //设置圆角
|
|
|
|
child: Container(
|
|
|
|
// padding: EdgeInsets.symmetric(horizontal: w(20)),
|
|
|
|
child: Column(
|
|
|
|
mainAxisSize: MainAxisSize.min,
|
|
|
|
children: [
|
|
|
|
VEmptyView(64),
|
|
|
|
Container(
|
|
|
|
alignment: Alignment.center,
|
|
|
|
child: Text(title,
|
|
|
|
style: TextStyle(
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
fontSize: ScreenUtil().setSp(32),
|
|
|
|
color: MyColours.color_E5000000)),
|
|
|
|
),
|
|
|
|
VEmptyView(16),
|
|
|
|
Text(
|
|
|
|
'您的店铺已过期',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: ScreenUtil().setSp(32),
|
|
|
|
color: MyColours.color_E34D59),
|
|
|
|
),
|
|
|
|
VEmptyView(24),
|
|
|
|
Text(
|
|
|
|
'请及时续费或联系您的服务商',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: ScreenUtil().setSp(32),
|
|
|
|
color: MyColours.color_515151),
|
|
|
|
),
|
|
|
|
// VEmptyView(24),
|
|
|
|
// Text(
|
|
|
|
// '以免影响您的正常使用',
|
|
|
|
// style: TextStyle(
|
|
|
|
// fontSize: ScreenUtil().setSp(32),
|
|
|
|
// color: MyColours.color_515151),
|
|
|
|
// ),
|
|
|
|
// VEmptyView(24),
|
|
|
|
// Text(
|
|
|
|
// '以免影响您的正常使用',
|
|
|
|
// style: TextStyle(
|
|
|
|
// fontSize: ScreenUtil().setSp(32),
|
|
|
|
// color: MyColours.color_515151),
|
|
|
|
// ),
|
|
|
|
VEmptyView(66),
|
|
|
|
MyDivider(double.infinity, ScreenUtil().setWidth(2),
|
|
|
|
color: MyColours.color_f3f3f3),
|
|
|
|
// RoundButton(
|
|
|
|
// text: lTitle,
|
|
|
|
// width: (ScreenUtil().screenWidth -
|
|
|
|
// ScreenUtil().setWidth(62) * 2),
|
|
|
|
// height: ScreenUtil().setWidth(112),
|
|
|
|
// // radius: ScreenUtil().setWidth(10),
|
|
|
|
// gradientStart: Colors.transparent,
|
|
|
|
// gradientEnd: Colors.transparent,
|
|
|
|
// textColor: MyColours.color_E6000000,
|
|
|
|
// isBold: false,
|
|
|
|
// fontSize: 32,
|
|
|
|
// onPressed: () {
|
|
|
|
// Navigator.pop(context);
|
|
|
|
// lCallback();
|
|
|
|
// }),
|
|
|
|
Row(
|
|
|
|
// mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
|
|
children: [
|
|
|
|
RoundButton(
|
|
|
|
text: lTitle,
|
|
|
|
width: (ScreenUtil().screenWidth -
|
|
|
|
ScreenUtil().setWidth(62) * 2) /
|
|
|
|
2,
|
|
|
|
height: ScreenUtil().setWidth(112),
|
|
|
|
// radius: ScreenUtil().setWidth(10),
|
|
|
|
gradientStart: Colors.transparent,
|
|
|
|
gradientEnd: Colors.transparent,
|
|
|
|
textColor: MyColours.color_E6000000,
|
|
|
|
isBold: false,
|
|
|
|
fontSize: 32,
|
|
|
|
onPressed: () {
|
|
|
|
Navigator.pop(context);
|
|
|
|
lCallback();
|
|
|
|
}),
|
|
|
|
MyDivider(ScreenUtil().setWidth(2),
|
|
|
|
ScreenUtil().setWidth(112),
|
|
|
|
color: MyColours.color_f3f3f3),
|
|
|
|
RoundButton(
|
|
|
|
text: rTitle,
|
|
|
|
width: (ScreenUtil().screenWidth -
|
|
|
|
ScreenUtil().setWidth(62) * 2) /
|
|
|
|
2,
|
|
|
|
height: ScreenUtil().setWidth(112),
|
|
|
|
// radius: ScreenUtil().setWidth(10),
|
|
|
|
gradientStart: Colors.transparent,
|
|
|
|
gradientEnd: Colors.transparent,
|
|
|
|
textColor: MyColours.color_438E93,
|
|
|
|
fontSize: 32,
|
|
|
|
onPressed: () {
|
|
|
|
rCallback();
|
|
|
|
Navigator.pop(
|
|
|
|
context,
|
|
|
|
);
|
|
|
|
}),
|
|
|
|
],
|
|
|
|
)
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
)),
|
|
|
|
),
|
|
|
|
));
|
|
|
|
});
|
|
|
|
},
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
///店铺临近过期弹窗
|
|
|
|
static cupertinoAlertSellerHasEdateDialog(BuildContext context,
|
|
|
|
{String title = "",
|
|
|
|
String content = "内容",
|
...
|
...
|
|