|
|
|
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
import 'package:flutter_screenutil/flutter_screenutil.dart';
|
|
|
|
import 'package:one_key/models/notebook.dart';
|
|
...
|
...
|
@@ -33,6 +32,7 @@ import 'package:provider/provider.dart'; |
|
|
|
|
|
|
|
import '../../models/note_book_only_model.dart';
|
|
|
|
import '../../provider/marketing_center_provider.dart';
|
|
|
|
import '../../utils/screen_util.dart';
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 详细模式
|
|
...
|
...
|
@@ -52,8 +52,8 @@ class NoteBookItemSimple extends StatefulWidget { |
|
|
|
}
|
|
|
|
|
|
|
|
class NoteBookItemSimpleState extends State<NoteBookItemSimple>
|
|
|
|
// with SingleTickerProviderStateMixin
|
|
|
|
{
|
|
|
|
// with SingleTickerProviderStateMixin
|
|
|
|
{
|
|
|
|
// bool _large = false;
|
|
|
|
List cancelReasonList = [];
|
|
|
|
bool isShowTF = false;
|
|
...
|
...
|
@@ -513,7 +513,6 @@ class NoteBookItemSimpleState extends State<NoteBookItemSimple> |
|
|
|
//离店和取消预订
|
|
|
|
|
|
|
|
widthBtn = 208.0; //一个按钮
|
|
|
|
|
|
|
|
} else {
|
|
|
|
if (!Utils.getAuthority(context, '取消预订') ||
|
|
|
|
(!Utils.getAuthority(context, '取消预订') &&
|
|
...
|
...
|
@@ -553,7 +552,7 @@ class NoteBookItemSimpleState extends State<NoteBookItemSimple> |
|
|
|
width: ScreenUtil().setWidth(82 * 2),
|
|
|
|
alignment: Alignment.center,
|
|
|
|
child: Text(
|
|
|
|
notebook.tablename??'',
|
|
|
|
notebook.tablename ?? '',
|
|
|
|
maxLines: 1,
|
|
|
|
overflow: TextOverflow.ellipsis,
|
|
|
|
style: TextStyle(
|
|
...
|
...
|
@@ -596,27 +595,26 @@ class NoteBookItemSimpleState extends State<NoteBookItemSimple> |
|
|
|
child: Column(
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
children: [
|
|
|
|
Row(
|
|
|
|
Wrap(
|
|
|
|
spacing: w(2),
|
|
|
|
children: [
|
|
|
|
notebook.rnameStr == ''
|
|
|
|
? SizedBox()
|
|
|
|
: Expanded(
|
|
|
|
child: Text(
|
|
|
|
notebook.rnameStr!,
|
|
|
|
maxLines: 1,
|
|
|
|
overflow: TextOverflow.ellipsis,
|
|
|
|
style: TextStyle(
|
|
|
|
color: canDo &&
|
|
|
|
(Utils.getAuthority(
|
|
|
|
context, '到店') ||
|
|
|
|
notebook.uid ==
|
|
|
|
userModel
|
|
|
|
.user!.openid)
|
|
|
|
? MyColours.color_260101
|
|
|
|
: MyColours.color_BFC4D4,
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
fontSize: ScreenUtil().setSp(24)),
|
|
|
|
),
|
|
|
|
: Text(
|
|
|
|
notebook.rnameStr!,
|
|
|
|
maxLines: 1,
|
|
|
|
overflow: TextOverflow.ellipsis,
|
|
|
|
style: TextStyle(
|
|
|
|
color: canDo &&
|
|
|
|
(Utils.getAuthority(
|
|
|
|
context, '到店') ||
|
|
|
|
notebook.uid ==
|
|
|
|
userModel
|
|
|
|
.user!.openid)
|
|
|
|
? MyColours.color_260101
|
|
|
|
: MyColours.color_BFC4D4,
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
fontSize: ScreenUtil().setSp(24)),
|
|
|
|
),
|
|
|
|
notebook.phoneStr!.isNotEmpty
|
|
|
|
? Text(
|
|
...
|
...
|
@@ -893,7 +891,8 @@ class NoteBookItemSimpleState extends State<NoteBookItemSimple> |
|
|
|
: Image.asset(
|
|
|
|
Utils.getImgPath(canDo &&
|
|
|
|
(Utils.getAuthority(context, '到店') ||
|
|
|
|
notebook.uid == userModel.user!.openid)
|
|
|
|
notebook.uid ==
|
|
|
|
userModel.user!.openid)
|
|
|
|
? 'ordered_open'
|
|
|
|
: 'ordered_off'),
|
|
|
|
width: ScreenUtil().setWidth(80),
|
...
|
...
|
|