|
...
|
...
|
@@ -490,19 +490,21 @@ class NoteBookItemSimpleState extends State<NoteBookItemSimple> |
|
|
|
if (detail.endsWith(';')) {
|
|
|
|
detail = detail.substring(0, detail.length - 1);
|
|
|
|
}
|
|
|
|
double widthBtn = 464.0;
|
|
|
|
double widthBtn = 464.0; //三个按钮
|
|
|
|
if (notebook.status == '2') {
|
|
|
|
widthBtn = 208.0;
|
|
|
|
}
|
|
|
|
// if (userModel.user.role_name == '迎宾') {
|
|
|
|
// widthBtn = 328.0;
|
|
|
|
// }
|
|
|
|
if (notebook.status != '2' && Utils.getAuthority(context, '取消预订') ||
|
|
|
|
(!Utils.getAuthority(context, '取消预订') &&
|
|
|
|
notebook.uid == userModel.user.openid)) {
|
|
|
|
//离店和取消预订
|
|
|
|
|
|
|
|
widthBtn = 208.0; //一个按钮
|
|
|
|
|
|
|
|
} else {
|
|
|
|
widthBtn = 328.0;
|
|
|
|
if (!Utils.getAuthority(context, '取消预订') ||
|
|
|
|
(!Utils.getAuthority(context, '取消预订') &&
|
|
|
|
notebook.uid != userModel.user.openid)) {
|
|
|
|
//没有权限
|
|
|
|
widthBtn = 328.0; //2个按钮
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
return Stack(
|
|
|
|
clipBehavior: Clip.none,
|
|
|
|
alignment: Alignment.centerRight,
|
|
...
|
...
|
@@ -778,6 +780,7 @@ class NoteBookItemSimpleState extends State<NoteBookItemSimple> |
|
|
|
horizontal:
|
|
|
|
ScreenUtil().setWidth(16)),
|
|
|
|
child: Row(
|
|
|
|
mainAxisSize: MainAxisSize.min,
|
|
|
|
children: [
|
|
|
|
Image.asset(
|
|
|
|
Utils.getImgPath(
|
...
|
...
|
|