Commit cf50496861498df8da5aca792cdedf555cc151cc

Authored by gaiyaguang
1 parent 741e6eb8

2020/05/14 10:03

... ... @@ -39,6 +39,14 @@ class Table {
}
}
String get maxText{
if(max==null||max=="0"||max=="null"){
return "";
}else{
return "最多可坐"+max+"人";
}
}
//获取桌位可坐人数
String get tableNum{
if(table_pnum==null||table_pnum.isEmpty||table_pnum=="0"){
... ...
... ... @@ -135,12 +135,9 @@ class NotebookDetailPageState extends State<NotebookDetailPage> {
RowMultiText("预订桌位", (detailEntity.tables.length.toString()+"个")),
Align(
alignment: Alignment.centerRight,
child: Row(
mainAxisSize: MainAxisSize.min,
children: detailEntity.tables.map((table){
return TableItem(table);
}).toList(),
),
child: ListView.builder(itemBuilder: (BuildContext contxt,int index){
return TableItem(detailEntity.tables[index]);
},itemCount: detailEntity.tables.length,shrinkWrap: true,scrollDirection: Axis.horizontal,)
),
RowMultiText("客户姓名", detailEntity.rnameStr),
RowMultiText("客户电话", detailEntity.phone),
... ...
... ... @@ -79,8 +79,8 @@ class HomePageState extends State<HomePage>{
WidgetsBinding.instance.addPostFrameCallback((_){
if(widget.initialIndex==0)return;
getUntreatedMessage();
UpdateModel updateModel=new UpdateModel();
updateModel.checkUpdate(context);
// UpdateModel updateModel=new UpdateModel();
// updateModel.checkUpdate(context);
});
}
... ...
... ... @@ -86,7 +86,7 @@ class Utils {
static goShareInvicationToWeChat(String rid){
String _webPageUrl = "http://colorcun.com/";
String _thumbnail =
"http://qn.colorcun.com/reserve/images/%E5%BE%AE%E4%BF%A1%E5%9B%BE%E7%89%87_201911151148572.jpg";
"https://qn.colorcun.com/reserve/images/%E5%BE%AE%E4%BF%A1%E5%9B%BE%E7%89%87_201911151148572.jpg";
String _title = "用餐已为您安排,点击查看详情";
String _userName = "gh_487873d353b3";
String _path = "pages/customer/index?id=$rid&hasInvitation=1";
... ...
... ... @@ -56,12 +56,12 @@ class NeedItemState extends State<NeedItem>{
children: <Widget>[
Text(table.name,style: TextStyle(color: MyColours.color_131313,fontSize: ScreenUtil().setSp(30),decoration: TextDecoration.none,fontWeight: FontWeight.normal),overflow: TextOverflow.ellipsis,),
Offstage(
offstage: table.tableNum.isEmpty?true:false,
offstage: table.maxText.isEmpty?true:false,
child: Column(
mainAxisSize: MainAxisSize.min,
children: <Widget>[
VEmptyView(5),
Text(table.tableNum,style: TextStyle(color: MyColours.color_777777,fontSize: ScreenUtil().setSp(26),decoration: TextDecoration.none,fontWeight: FontWeight.normal),overflow: TextOverflow.ellipsis,),
Text(table.maxText,style: TextStyle(color: MyColours.color_777777,fontSize: ScreenUtil().setSp(26),decoration: TextDecoration.none,fontWeight: FontWeight.normal),overflow: TextOverflow.ellipsis,),
],
),
),
... ...