|
...
|
...
|
@@ -1440,22 +1440,26 @@ class NotebookDetailPageState extends State<NotebookDetailPage> { |
|
|
|
color: MyColours.color_515151,
|
|
|
|
fontSize: font(14)),
|
|
|
|
),
|
|
|
|
InkWell(
|
|
|
|
onTap: () {
|
|
|
|
//弹框确认是否删除
|
|
|
|
DialogUtil.cupertinoAlertDialog(context,
|
|
|
|
title: "",
|
|
|
|
content: "是否确定删除?",
|
|
|
|
isBoldContent: true,
|
|
|
|
contentColor: MyColours.color_E6000000,
|
|
|
|
rTitle: "删除", rCallback: () {
|
|
|
|
_delReserveDepositByid(data.id);
|
|
|
|
});
|
|
|
|
},
|
|
|
|
child: Image.asset(
|
|
|
|
Utils.getImgPath('delete_g'),
|
|
|
|
width: w(20),
|
|
|
|
))
|
|
|
|
if (Provider.of<UserModel>(context, listen: false)
|
|
|
|
.user
|
|
|
|
.openid ==
|
|
|
|
data.insertUid)
|
|
|
|
InkWell(
|
|
|
|
onTap: () {
|
|
|
|
//弹框确认是否删除
|
|
|
|
DialogUtil.cupertinoAlertDialog(context,
|
|
|
|
title: "",
|
|
|
|
content: "是否确定删除?",
|
|
|
|
isBoldContent: true,
|
|
|
|
contentColor: MyColours.color_E6000000,
|
|
|
|
rTitle: "删除", rCallback: () {
|
|
|
|
_delReserveDepositByid(data.id);
|
|
|
|
});
|
|
|
|
},
|
|
|
|
child: Image.asset(
|
|
|
|
Utils.getImgPath('delete_g'),
|
|
|
|
width: w(20),
|
|
|
|
))
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
...
|
...
|
@@ -3481,46 +3485,44 @@ class NotebookDetailPageState extends State<NotebookDetailPage> { |
|
|
|
// ),
|
|
|
|
// ),
|
|
|
|
// )),
|
|
|
|
if( detailEntity.order.cookbooklist
|
|
|
|
.length >
|
|
|
|
0)
|
|
|
|
Expanded(
|
|
|
|
flex: 1,
|
|
|
|
child: InkWell(
|
|
|
|
onTap: () {
|
|
|
|
NavigatorUtil
|
|
|
|
.goHasOrderFoodPage(
|
|
|
|
context,
|
|
|
|
rid: detailEntity
|
|
|
|
.id);
|
|
|
|
},
|
|
|
|
child: Container(
|
|
|
|
margin: EdgeInsets.only(
|
|
|
|
left: ScreenUtil()
|
|
|
|
.setWidth(20)),
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
color: MyColours
|
|
|
|
.color_199095,
|
|
|
|
borderRadius:
|
|
|
|
BorderRadius.circular(
|
|
|
|
ScreenUtil()
|
|
|
|
.setWidth(
|
|
|
|
10)),
|
|
|
|
),
|
|
|
|
child: Align(
|
|
|
|
alignment:
|
|
|
|
Alignment.center,
|
|
|
|
child: Text('查看菜品',
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours
|
|
|
|
.color_ffffff,
|
|
|
|
fontSize:
|
|
|
|
ScreenUtil()
|
|
|
|
.setSp(
|
|
|
|
34))),
|
|
|
|
),
|
|
|
|
if (detailEntity
|
|
|
|
.order.cookbooklist.length >
|
|
|
|
0)
|
|
|
|
Expanded(
|
|
|
|
flex: 1,
|
|
|
|
child: InkWell(
|
|
|
|
onTap: () {
|
|
|
|
NavigatorUtil
|
|
|
|
.goHasOrderFoodPage(
|
|
|
|
context,
|
|
|
|
rid: detailEntity
|
|
|
|
.id);
|
|
|
|
},
|
|
|
|
child: Container(
|
|
|
|
margin: EdgeInsets.only(
|
|
|
|
left: ScreenUtil()
|
|
|
|
.setWidth(20)),
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
color: MyColours
|
|
|
|
.color_199095,
|
|
|
|
borderRadius: BorderRadius
|
|
|
|
.circular(ScreenUtil()
|
|
|
|
.setWidth(10)),
|
|
|
|
),
|
|
|
|
child: Align(
|
|
|
|
alignment:
|
|
|
|
Alignment.center,
|
|
|
|
child: Text('查看菜品',
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours
|
|
|
|
.color_ffffff,
|
|
|
|
fontSize:
|
|
|
|
ScreenUtil()
|
|
|
|
.setSp(
|
|
|
|
34))),
|
|
|
|
),
|
|
|
|
)),
|
|
|
|
),
|
|
|
|
)),
|
|
|
|
// _cancelAndChangeBtn(() {
|
|
|
|
// DialogUtil
|
|
|
|
// .showShareDialog(
|
...
|
...
|
|