|
...
|
...
|
@@ -727,11 +727,11 @@ class DialogUtil { |
|
|
|
|
|
|
|
static showAuthorityDestination(
|
|
|
|
BuildContext context, String name, String title, String subTitle) async {
|
|
|
|
Timer _timer = Timer(const Duration(seconds: 1), () {
|
|
|
|
// if(!TickerMode.of(context)){
|
|
|
|
Navigator.of(context).pop(true);
|
|
|
|
// }
|
|
|
|
});
|
|
|
|
// Timer _timer = Timer(const Duration(seconds: 1), () {
|
|
|
|
// // if(!TickerMode.of(context)){
|
|
|
|
// Navigator.of(context).pop(true);
|
|
|
|
// // }
|
|
|
|
// });
|
|
|
|
final action = await showDialog(
|
|
|
|
context: context,
|
|
|
|
barrierDismissible: true,
|
|
...
|
...
|
@@ -741,48 +741,53 @@ class DialogUtil { |
|
|
|
// locationState = state;
|
|
|
|
return Material(
|
|
|
|
color: Colors.transparent,
|
|
|
|
child: Column(mainAxisSize: MainAxisSize.min, children: [
|
|
|
|
VEmptyView(40),
|
|
|
|
Container(
|
|
|
|
// width: double.infinity,
|
|
|
|
child: InkWell(
|
|
|
|
onTap: () {
|
|
|
|
Navigator.of(context).pop(true);
|
|
|
|
},
|
|
|
|
child: Column(mainAxisSize: MainAxisSize.min, children: [
|
|
|
|
VEmptyView(40),
|
|
|
|
Container(
|
|
|
|
// width: double.infinity,
|
|
|
|
|
|
|
|
margin: EdgeInsets.symmetric(horizontal: w(10)),
|
|
|
|
padding: EdgeInsets.symmetric(
|
|
|
|
horizontal: w(20), vertical: w(12)),
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
color: MyColours.color_ffffff,
|
|
|
|
borderRadius: BorderRadius.circular(
|
|
|
|
r(5),
|
|
|
|
)),
|
|
|
|
child: Row(children: <Widget>[
|
|
|
|
Image.asset(
|
|
|
|
Utils.getImgPath(
|
|
|
|
'$name',
|
|
|
|
),
|
|
|
|
width: w(30)),
|
|
|
|
HEmptyView(68),
|
|
|
|
Expanded(
|
|
|
|
child: Column(
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
children: [
|
|
|
|
Text('$title',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: font(16),
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
color: MyColours.color_E6000000)),
|
|
|
|
VEmptyView(20),
|
|
|
|
Text('$subTitle',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: font(16),
|
|
|
|
color: MyColours.color_26000000))
|
|
|
|
])),
|
|
|
|
]))
|
|
|
|
]));
|
|
|
|
margin: EdgeInsets.symmetric(horizontal: w(10)),
|
|
|
|
padding: EdgeInsets.symmetric(
|
|
|
|
horizontal: w(20), vertical: w(12)),
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
color: MyColours.color_ffffff,
|
|
|
|
borderRadius: BorderRadius.circular(
|
|
|
|
r(5),
|
|
|
|
)),
|
|
|
|
child: Row(children: <Widget>[
|
|
|
|
Image.asset(
|
|
|
|
Utils.getImgPath(
|
|
|
|
'$name',
|
|
|
|
),
|
|
|
|
width: w(30)),
|
|
|
|
HEmptyView(68),
|
|
|
|
Expanded(
|
|
|
|
child: Column(
|
|
|
|
crossAxisAlignment:
|
|
|
|
CrossAxisAlignment.start,
|
|
|
|
children: [
|
|
|
|
Text('$title',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: font(16),
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
color: MyColours.color_E6000000)),
|
|
|
|
VEmptyView(20),
|
|
|
|
Text('$subTitle',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: font(16),
|
|
|
|
color: MyColours.color_26000000))
|
|
|
|
])),
|
|
|
|
]))
|
|
|
|
])));
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
print(action);
|
|
|
|
_timer.cancel();
|
|
|
|
// _timer.cancel();
|
|
|
|
|
|
|
|
return action;
|
|
|
|
}
|
|
...
|
...
|
@@ -6977,103 +6982,112 @@ class DialogUtil { |
|
|
|
});
|
|
|
|
|
|
|
|
if (online > 0) {
|
|
|
|
widgetData.add(Padding(
|
|
|
|
padding: EdgeInsets.only(bottom: w(10)),
|
|
|
|
child: Text(
|
|
|
|
'在线预订 ${online}个',
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_515151,
|
|
|
|
fontSize: font(16)),
|
|
|
|
)));
|
|
|
|
widgetData.add(Padding(
|
|
|
|
padding: EdgeInsets.only(bottom: w(10)),
|
|
|
|
child: Text(
|
|
|
|
'在线预订 ${online}个',
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_515151,
|
|
|
|
fontSize: font(16)),
|
|
|
|
)));
|
|
|
|
}
|
|
|
|
if (cancel > 0) {
|
|
|
|
widgetData.add(Padding(
|
|
|
|
padding: EdgeInsets.only(bottom: w(10)),
|
|
|
|
child: Text(
|
|
|
|
'取消预订 ${cancel}个',
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_515151, fontSize: font(16)),
|
|
|
|
)));
|
|
|
|
widgetData.add(Padding(
|
|
|
|
padding: EdgeInsets.only(bottom: w(10)),
|
|
|
|
child: Text(
|
|
|
|
'取消预订 ${cancel}个',
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_515151,
|
|
|
|
fontSize: font(16)),
|
|
|
|
)));
|
|
|
|
}
|
|
|
|
if (order > 0) {
|
|
|
|
widgetData.add(Padding(
|
|
|
|
padding: EdgeInsets.only(bottom: w(10)),
|
|
|
|
child: Text(
|
|
|
|
'提前点餐 ${order}个',
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_515151, fontSize: font(16)),
|
|
|
|
)));
|
|
|
|
widgetData.add(Padding(
|
|
|
|
padding: EdgeInsets.only(bottom: w(10)),
|
|
|
|
child: Text(
|
|
|
|
'提前点餐 ${order}个',
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_515151,
|
|
|
|
fontSize: font(16)),
|
|
|
|
)));
|
|
|
|
}
|
|
|
|
if (pay > 0) {
|
|
|
|
widgetData.add(Padding(
|
|
|
|
padding: EdgeInsets.only(bottom: w(10)),
|
|
|
|
child: Text(
|
|
|
|
'在线买单 ${pay}个',
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_515151, fontSize: font(16)),
|
|
|
|
)));
|
|
|
|
widgetData.add(Padding(
|
|
|
|
padding: EdgeInsets.only(bottom: w(10)),
|
|
|
|
child: Text(
|
|
|
|
'在线买单 ${pay}个',
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_515151,
|
|
|
|
fontSize: font(16)),
|
|
|
|
)));
|
|
|
|
}
|
|
|
|
if (payFinish > 0) {
|
|
|
|
widgetData.add(Padding(
|
|
|
|
padding: EdgeInsets.only(bottom: w(10)),
|
|
|
|
child: Text(
|
|
|
|
'买单通知 ${payFinish}个',
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_515151, fontSize: font(16)),
|
|
|
|
)));
|
|
|
|
widgetData.add(Padding(
|
|
|
|
padding: EdgeInsets.only(bottom: w(10)),
|
|
|
|
child: Text(
|
|
|
|
'买单通知 ${payFinish}个',
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_515151,
|
|
|
|
fontSize: font(16)),
|
|
|
|
)));
|
|
|
|
}
|
|
|
|
if (invoice > 0) {
|
|
|
|
widgetData.add(Padding(
|
|
|
|
padding: EdgeInsets.only(bottom: w(10)),
|
|
|
|
child: Text(
|
|
|
|
'发票申请 ${invoice}个',
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_515151, fontSize: font(16)),
|
|
|
|
)));
|
|
|
|
widgetData.add(Padding(
|
|
|
|
padding: EdgeInsets.only(bottom: w(10)),
|
|
|
|
child: Text(
|
|
|
|
'发票申请 ${invoice}个',
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_515151,
|
|
|
|
fontSize: font(16)),
|
|
|
|
)));
|
|
|
|
}
|
|
|
|
if (instore > 0) {
|
|
|
|
widgetData.add(Padding(
|
|
|
|
padding: EdgeInsets.only(bottom: w(10)),
|
|
|
|
child: Text(
|
|
|
|
'店内消息 ${instore}个',
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_515151, fontSize: font(16)),
|
|
|
|
)));
|
|
|
|
widgetData.add(Padding(
|
|
|
|
padding: EdgeInsets.only(bottom: w(10)),
|
|
|
|
child: Text(
|
|
|
|
'店内消息 ${instore}个',
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_515151,
|
|
|
|
fontSize: font(16)),
|
|
|
|
)));
|
|
|
|
}
|
|
|
|
if (recharge > 0) {
|
|
|
|
widgetData.add(Padding(
|
|
|
|
padding: EdgeInsets.only(bottom: w(10)),
|
|
|
|
child: Text(
|
|
|
|
'会员充值 ${recharge}个',
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_515151, fontSize: font(16)),
|
|
|
|
)));
|
|
|
|
widgetData.add(Padding(
|
|
|
|
padding: EdgeInsets.only(bottom: w(10)),
|
|
|
|
child: Text(
|
|
|
|
'会员充值 ${recharge}个',
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_515151,
|
|
|
|
fontSize: font(16)),
|
|
|
|
)));
|
|
|
|
}
|
|
|
|
|
|
|
|
if (wine > 0) {
|
|
|
|
widgetData.add(Padding(
|
|
|
|
padding: EdgeInsets.only(bottom: w(10)),
|
|
|
|
child: Text(
|
|
|
|
'存酒超期 ${wine}个',
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_515151, fontSize: font(16)),
|
|
|
|
)));
|
|
|
|
widgetData.add(Padding(
|
|
|
|
padding: EdgeInsets.only(bottom: w(10)),
|
|
|
|
child: Text(
|
|
|
|
'存酒超期 ${wine}个',
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_515151,
|
|
|
|
fontSize: font(16)),
|
|
|
|
)));
|
|
|
|
}
|
|
|
|
if (commemoration > 0) {
|
|
|
|
widgetData.add(Padding(
|
|
|
|
padding: EdgeInsets.only(bottom: w(10)),
|
|
|
|
child: Text(
|
|
|
|
'纪念日提醒 ${commemoration}个',
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_515151, fontSize: font(16)),
|
|
|
|
)));
|
|
|
|
widgetData.add(Padding(
|
|
|
|
padding: EdgeInsets.only(bottom: w(10)),
|
|
|
|
child: Text(
|
|
|
|
'纪念日提醒 ${commemoration}个',
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_515151,
|
|
|
|
fontSize: font(16)),
|
|
|
|
)));
|
|
|
|
}
|
|
|
|
widgetData.add(Row(
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
|
children: <Widget>[
|
|
|
|
Spacer(),
|
|
|
|
RoundButton(
|
|
|
|
text:"立即处理",
|
|
|
|
text: "立即处理",
|
|
|
|
width: w(100),
|
|
|
|
height: w(43),
|
|
|
|
fontSize: 28,
|
|
...
|
...
|
@@ -7081,7 +7095,7 @@ class DialogUtil { |
|
|
|
gradientEnd: MyColours.color_ffffff,
|
|
|
|
borderColor: MyColours.color_438E93,
|
|
|
|
radius: r(5),
|
|
|
|
textColor:MyColours.color_438E93,
|
|
|
|
textColor: MyColours.color_438E93,
|
|
|
|
onPressed: () {
|
|
|
|
NavigatorUtil.goHomePage(context, initialIndex: 0);
|
|
|
|
},
|
|
...
|
...
|
@@ -7107,7 +7121,9 @@ class DialogUtil { |
|
|
|
child: Text(
|
|
|
|
"您有${messageModel.messages.length}条新的消息",
|
|
|
|
style: TextStyle(
|
|
|
|
color:model.messages.length > 3? MyColours.color_ffffff: MyColours.color_333333,
|
|
|
|
color: model.messages.length > 3
|
|
|
|
? MyColours.color_ffffff
|
|
|
|
: MyColours.color_333333,
|
|
|
|
fontSize: ScreenUtil().setSp(32)),
|
|
|
|
)),
|
|
|
|
Align(
|
|
...
|
...
|
@@ -7127,7 +7143,9 @@ class DialogUtil { |
|
|
|
bottom: ScreenUtil().setWidth(38),
|
|
|
|
),
|
|
|
|
child: Image.asset(
|
|
|
|
messageModel.messages.length > 3? "assets/dialog_close.png": "assets/close.png",
|
|
|
|
messageModel.messages.length > 3
|
|
|
|
? "assets/dialog_close.png"
|
|
|
|
: "assets/close.png",
|
|
|
|
width: ScreenUtil().setWidth(28),
|
|
|
|
height: ScreenUtil().setWidth(28),
|
|
|
|
),
|
...
|
...
|
|