|
...
|
...
|
@@ -70,10 +70,9 @@ class _StoreCustomerHomeRightPageState |
|
|
|
messageMenuModel.uid = element.uid;
|
|
|
|
messageMenuModel.title = element.nickName ?? element.account;
|
|
|
|
messageMenuModel.select = false;
|
|
|
|
if(messageMenuModel.title != null){
|
|
|
|
menuTitle.add(messageMenuModel);
|
|
|
|
if (messageMenuModel.title != null) {
|
|
|
|
menuTitle.add(messageMenuModel);
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
if (menuTitle.length > 0) {
|
|
|
|
menuTitle[0].select = true;
|
|
...
|
...
|
@@ -302,9 +301,9 @@ class _StoreCustomerHomeRightPageState |
|
|
|
String index = '0';
|
|
|
|
if (btnTitle == '活跃') {
|
|
|
|
index = '1';
|
|
|
|
} else if (btnTitle == '60天未到店') {
|
|
|
|
} else if (btnTitle == '60天未预订') {
|
|
|
|
index = '2';
|
|
|
|
} else if (btnTitle == '120天未到店') {
|
|
|
|
} else if (btnTitle == '120天未预订') {
|
|
|
|
index = '3';
|
|
|
|
}
|
|
|
|
String uid = '';
|
|
...
|
...
|
@@ -335,7 +334,7 @@ class _StoreCustomerHomeRightPageState |
|
|
|
style: TextStyle(
|
|
|
|
color: btnTitle == '活跃'
|
|
|
|
? MyColours.color_199095
|
|
|
|
: btnTitle == '60天未到店'
|
|
|
|
: btnTitle == '60天未预订'
|
|
|
|
? MyColours.color_E89243
|
|
|
|
: MyColours.color_E34D59,
|
|
|
|
fontSize: ScreenUtil().setSp(48),
|
|
...
|
...
|
@@ -353,9 +352,9 @@ class _StoreCustomerHomeRightPageState |
|
|
|
String index = '0';
|
|
|
|
if (btnTitle == '活跃') {
|
|
|
|
index = '1';
|
|
|
|
} else if (btnTitle == '60天未到店') {
|
|
|
|
} else if (btnTitle == '60天未预订') {
|
|
|
|
index = '2';
|
|
|
|
} else if (btnTitle == '120天未到店') {
|
|
|
|
} else if (btnTitle == '120天未预订') {
|
|
|
|
index = '3';
|
|
|
|
}
|
|
|
|
String uid = '';
|
|
...
|
...
|
@@ -401,669 +400,660 @@ class _StoreCustomerHomeRightPageState |
|
|
|
// EventBus().emit('changeStatusColor');
|
|
|
|
// Navigator.pop(context);
|
|
|
|
// }),
|
|
|
|
body: Column(children: [
|
|
|
|
Container(
|
|
|
|
color: MyColours.color_ffffff,
|
|
|
|
height: ScreenUtil().setWidth(70),
|
|
|
|
padding: EdgeInsets.only(bottom: w(12)),
|
|
|
|
margin: EdgeInsets.only(bottom: ScreenUtil().setWidth(10)),
|
|
|
|
child: Row(
|
|
|
|
children: [
|
|
|
|
HEmptyView(48),
|
|
|
|
Expanded(
|
|
|
|
child: SizedBox(
|
|
|
|
// height: ScreenUtil().setWidth(30),
|
|
|
|
child: ListView.builder(
|
|
|
|
itemCount: menuTitle.length,
|
|
|
|
shrinkWrap: true,
|
|
|
|
controller: _controller,
|
|
|
|
scrollDirection: Axis.horizontal,
|
|
|
|
itemBuilder: (BuildContext contxt, int index) {
|
|
|
|
return InkWell(
|
|
|
|
onTap: () {
|
|
|
|
for (MessageMenuModel item in menuTitle) {
|
|
|
|
item.select = false;
|
|
|
|
}
|
|
|
|
menuTitle[index].select = true;
|
|
|
|
setState(() {});
|
|
|
|
// _getMarketingByUid();
|
|
|
|
// _getSellerCountsList();
|
|
|
|
_getSellerCountsList(
|
|
|
|
isShowLoading: true, callback: () {});
|
|
|
|
_couponNetworkData(isShowLoading: false);
|
|
|
|
body: Column(children: [
|
|
|
|
Container(
|
|
|
|
color: MyColours.color_ffffff,
|
|
|
|
height: ScreenUtil().setWidth(70),
|
|
|
|
padding: EdgeInsets.only(bottom: w(12)),
|
|
|
|
margin: EdgeInsets.only(bottom: ScreenUtil().setWidth(10)),
|
|
|
|
child: Row(
|
|
|
|
children: [
|
|
|
|
HEmptyView(48),
|
|
|
|
Expanded(
|
|
|
|
child: SizedBox(
|
|
|
|
// height: ScreenUtil().setWidth(30),
|
|
|
|
child: ListView.builder(
|
|
|
|
itemCount: menuTitle.length,
|
|
|
|
shrinkWrap: true,
|
|
|
|
controller: _controller,
|
|
|
|
scrollDirection: Axis.horizontal,
|
|
|
|
itemBuilder: (BuildContext contxt, int index) {
|
|
|
|
return InkWell(
|
|
|
|
onTap: () {
|
|
|
|
for (MessageMenuModel item in menuTitle) {
|
|
|
|
item.select = false;
|
|
|
|
}
|
|
|
|
menuTitle[index].select = true;
|
|
|
|
setState(() {});
|
|
|
|
// _getMarketingByUid();
|
|
|
|
// _getSellerCountsList();
|
|
|
|
_getSellerCountsList(
|
|
|
|
isShowLoading: true, callback: () {});
|
|
|
|
_couponNetworkData(isShowLoading: false);
|
|
|
|
|
|
|
|
// offset = 0;
|
|
|
|
// 1提前点餐/2内部预订/10在线预订/15店内消息传/12在线买单
|
|
|
|
// offset = 0;
|
|
|
|
// 1提前点餐/2内部预订/10在线预订/15店内消息传/12在线买单
|
|
|
|
|
|
|
|
// if (index == 0) {
|
|
|
|
// typeid = '';
|
|
|
|
// } else if (index == 1) {
|
|
|
|
// //店内消息
|
|
|
|
// typeid = '15';
|
|
|
|
// } else if (index == 2) {
|
|
|
|
// //在线预订
|
|
|
|
// typeid = '10';
|
|
|
|
// } else if (index == 3) {
|
|
|
|
// //提前点餐
|
|
|
|
// typeid = '1';
|
|
|
|
// } else if (index == 4) {
|
|
|
|
// //在线买单
|
|
|
|
// typeid = '12';
|
|
|
|
// } else if (index == 5) {
|
|
|
|
// //会员充值
|
|
|
|
// typeid = '17';
|
|
|
|
// } else if (index == 6) {
|
|
|
|
// //存酒超期
|
|
|
|
// typeid = '18';
|
|
|
|
// }
|
|
|
|
// getMessage(typeid, showLoading: true);
|
|
|
|
},
|
|
|
|
child: Container(
|
|
|
|
// width: ScreenUtil().setWidth(104 * 2),
|
|
|
|
// if (index == 0) {
|
|
|
|
// typeid = '';
|
|
|
|
// } else if (index == 1) {
|
|
|
|
// //店内消息
|
|
|
|
// typeid = '15';
|
|
|
|
// } else if (index == 2) {
|
|
|
|
// //在线预订
|
|
|
|
// typeid = '10';
|
|
|
|
// } else if (index == 3) {
|
|
|
|
// //提前点餐
|
|
|
|
// typeid = '1';
|
|
|
|
// } else if (index == 4) {
|
|
|
|
// //在线买单
|
|
|
|
// typeid = '12';
|
|
|
|
// } else if (index == 5) {
|
|
|
|
// //会员充值
|
|
|
|
// typeid = '17';
|
|
|
|
// } else if (index == 6) {
|
|
|
|
// //存酒超期
|
|
|
|
// typeid = '18';
|
|
|
|
// }
|
|
|
|
// getMessage(typeid, showLoading: true);
|
|
|
|
},
|
|
|
|
child: Container(
|
|
|
|
// width: ScreenUtil().setWidth(104 * 2),
|
|
|
|
|
|
|
|
margin: EdgeInsets.only(
|
|
|
|
right: ScreenUtil().setWidth(30),
|
|
|
|
),
|
|
|
|
padding: EdgeInsets.symmetric(
|
|
|
|
horizontal: ScreenUtil().setWidth(10),
|
|
|
|
vertical: ScreenUtil().setWidth(4)),
|
|
|
|
alignment: Alignment.center,
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
borderRadius: BorderRadius.circular(
|
|
|
|
ScreenUtil().setWidth(10)),
|
|
|
|
// color: menuTitle[index].select
|
|
|
|
// ? MyColours.color_438E93
|
|
|
|
// : MyColours.color_999999,
|
|
|
|
border: Border.all(
|
|
|
|
color: menuTitle[index].select
|
|
|
|
? MyColours.color_438E93
|
|
|
|
: MyColours.color_999999,
|
|
|
|
width: ScreenUtil().setWidth(2))),
|
|
|
|
child: Text(
|
|
|
|
menuTitle[index].title,
|
|
|
|
overflow: TextOverflow.ellipsis,
|
|
|
|
style: TextStyle(
|
|
|
|
color: menuTitle[index].select
|
|
|
|
? MyColours.color_438E93
|
|
|
|
: MyColours.color_999999,
|
|
|
|
fontSize: ScreenUtil().setSp(24),
|
|
|
|
decoration: TextDecoration.none,
|
|
|
|
fontWeight: FontWeight.normal),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
);
|
|
|
|
})))
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
Consumer<CustomerProvider>(builder: (context, model, _) {
|
|
|
|
if (model.pageStateMyHome != PageState.Success) {
|
|
|
|
if (model.pageStateMyHome == PageState.Loading) {
|
|
|
|
return SingleChildScrollView(
|
|
|
|
controller: _controller,
|
|
|
|
child: Stack(alignment: Alignment.center, children: [
|
|
|
|
Column(children: [
|
|
|
|
VEmptyView(10),
|
|
|
|
// Stack(
|
|
|
|
// children: [
|
|
|
|
Container(
|
|
|
|
height: w(80),
|
|
|
|
color: MyColours.color_ffffff,
|
|
|
|
child: Row(
|
|
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
|
|
children: [
|
|
|
|
Text(
|
|
|
|
'',
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_438E93,
|
|
|
|
fontSize: ScreenUtil().setSp(64),
|
|
|
|
fontWeight: FontWeight.bold),
|
|
|
|
),
|
|
|
|
Text(
|
|
|
|
'位',
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_515151,
|
|
|
|
// fontWeight: FontWeight.bold,
|
|
|
|
fontSize: ScreenUtil().setSp(32)),
|
|
|
|
)
|
|
|
|
],
|
|
|
|
margin: EdgeInsets.only(
|
|
|
|
right: ScreenUtil().setWidth(30),
|
|
|
|
),
|
|
|
|
padding: EdgeInsets.symmetric(
|
|
|
|
horizontal: ScreenUtil().setWidth(10),
|
|
|
|
vertical: ScreenUtil().setWidth(4)),
|
|
|
|
alignment: Alignment.center,
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
borderRadius: BorderRadius.circular(
|
|
|
|
ScreenUtil().setWidth(10)),
|
|
|
|
// color: menuTitle[index].select
|
|
|
|
// ? MyColours.color_438E93
|
|
|
|
// : MyColours.color_999999,
|
|
|
|
border: Border.all(
|
|
|
|
color: menuTitle[index].select
|
|
|
|
? MyColours.color_438E93
|
|
|
|
: MyColours.color_999999,
|
|
|
|
width: ScreenUtil().setWidth(2))),
|
|
|
|
child: Text(
|
|
|
|
menuTitle[index].title,
|
|
|
|
overflow: TextOverflow.ellipsis,
|
|
|
|
style: TextStyle(
|
|
|
|
color: menuTitle[index].select
|
|
|
|
? MyColours.color_438E93
|
|
|
|
: MyColours.color_999999,
|
|
|
|
fontSize: ScreenUtil().setSp(24),
|
|
|
|
decoration: TextDecoration.none,
|
|
|
|
fontWeight: FontWeight.normal),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
VEmptyView(10),
|
|
|
|
Row(
|
|
|
|
children: [
|
|
|
|
_percentWidget('', '活跃', '', tap: false),
|
|
|
|
HEmptyView(10),
|
|
|
|
_percentWidget('', '60天未到店', '', tap: false),
|
|
|
|
HEmptyView(10),
|
|
|
|
_percentWidget('', '120天未到店', '', tap: false),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
);
|
|
|
|
})))
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
Consumer<CustomerProvider>(builder: (context, model, _) {
|
|
|
|
if (model.pageStateMyHome != PageState.Success) {
|
|
|
|
if (model.pageStateMyHome == PageState.Loading) {
|
|
|
|
return SingleChildScrollView(
|
|
|
|
controller: _controller,
|
|
|
|
child: Stack(alignment: Alignment.center, children: [
|
|
|
|
Column(children: [
|
|
|
|
VEmptyView(10),
|
|
|
|
// Stack(
|
|
|
|
// children: [
|
|
|
|
Container(
|
|
|
|
height: w(80),
|
|
|
|
color: MyColours.color_ffffff,
|
|
|
|
child: Row(
|
|
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
|
|
children: [
|
|
|
|
Text(
|
|
|
|
'',
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_438E93,
|
|
|
|
fontSize: ScreenUtil().setSp(64),
|
|
|
|
fontWeight: FontWeight.bold),
|
|
|
|
),
|
|
|
|
Text(
|
|
|
|
'位',
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_515151,
|
|
|
|
// fontWeight: FontWeight.bold,
|
|
|
|
fontSize: ScreenUtil().setSp(32)),
|
|
|
|
)
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
VEmptyView(10),
|
|
|
|
Row(
|
|
|
|
children: [
|
|
|
|
_percentWidget('', '活跃', '', tap: false),
|
|
|
|
HEmptyView(10),
|
|
|
|
_percentWidget('', '60天未预订', '', tap: false),
|
|
|
|
HEmptyView(10),
|
|
|
|
_percentWidget('', '120天未预订', '', tap: false),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
|
|
|
|
// VEmptyView(10),
|
|
|
|
// GridView.builder(
|
|
|
|
// controller: _controller,
|
|
|
|
// shrinkWrap: true,
|
|
|
|
// cacheExtent: ScreenUtil().setWidth(0),
|
|
|
|
// itemCount: 6,
|
|
|
|
// gridDelegate:
|
|
|
|
// SliverGridDelegateWithFixedCrossAxisCount(
|
|
|
|
// crossAxisCount: 3,
|
|
|
|
// childAspectRatio: 1.05,
|
|
|
|
// mainAxisSpacing:
|
|
|
|
// ScreenUtil().setWidth(10),
|
|
|
|
// crossAxisSpacing:
|
|
|
|
// ScreenUtil().setWidth(10)),
|
|
|
|
// itemBuilder: (BuildContext context, int index) {
|
|
|
|
// return _managerWidget('', '', null, '',
|
|
|
|
// uid: '', onTap: () {});
|
|
|
|
// })
|
|
|
|
]),
|
|
|
|
Align(
|
|
|
|
alignment: Alignment.center,
|
|
|
|
child: Center(
|
|
|
|
child: Column(
|
|
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
|
children: <Widget>[
|
|
|
|
ClipRRect(
|
|
|
|
borderRadius: BorderRadius.circular(10),
|
|
|
|
child: Container(
|
|
|
|
width: 200,
|
|
|
|
height: 200,
|
|
|
|
color: Colors.transparent,
|
|
|
|
child: CupertinoActivityIndicator(
|
|
|
|
color: MyColours.color_000000,
|
|
|
|
radius: 30,
|
|
|
|
),
|
|
|
|
))
|
|
|
|
// VEmptyView(30),
|
|
|
|
// Text(
|
|
|
|
// '加载中,请稍后...',
|
|
|
|
// style: TextStyle(
|
|
|
|
// color: MyColours.color_666666,
|
|
|
|
// fontSize: ScreenUtil().setSp(24)),
|
|
|
|
// )
|
|
|
|
],
|
|
|
|
),
|
|
|
|
))
|
|
|
|
]));
|
|
|
|
}
|
|
|
|
return Expanded(
|
|
|
|
child: ExceptionPage(
|
|
|
|
pageState: model.pageStateMyHome,
|
|
|
|
callback: () {
|
|
|
|
_couponNetworkData();
|
|
|
|
// VEmptyView(10),
|
|
|
|
// GridView.builder(
|
|
|
|
// controller: _controller,
|
|
|
|
// shrinkWrap: true,
|
|
|
|
// cacheExtent: ScreenUtil().setWidth(0),
|
|
|
|
// itemCount: 6,
|
|
|
|
// gridDelegate:
|
|
|
|
// SliverGridDelegateWithFixedCrossAxisCount(
|
|
|
|
// crossAxisCount: 3,
|
|
|
|
// childAspectRatio: 1.05,
|
|
|
|
// mainAxisSpacing:
|
|
|
|
// ScreenUtil().setWidth(10),
|
|
|
|
// crossAxisSpacing:
|
|
|
|
// ScreenUtil().setWidth(10)),
|
|
|
|
// itemBuilder: (BuildContext context, int index) {
|
|
|
|
// return _managerWidget('', '', null, '',
|
|
|
|
// uid: '', onTap: () {});
|
|
|
|
// })
|
|
|
|
]),
|
|
|
|
Align(
|
|
|
|
alignment: Alignment.center,
|
|
|
|
child: Center(
|
|
|
|
child: Column(
|
|
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
|
children: <Widget>[
|
|
|
|
ClipRRect(
|
|
|
|
borderRadius: BorderRadius.circular(10),
|
|
|
|
child: Container(
|
|
|
|
width: 200,
|
|
|
|
height: 200,
|
|
|
|
color: Colors.transparent,
|
|
|
|
child: CupertinoActivityIndicator(
|
|
|
|
color: MyColours.color_000000,
|
|
|
|
radius: 30,
|
|
|
|
),
|
|
|
|
))
|
|
|
|
// VEmptyView(30),
|
|
|
|
// Text(
|
|
|
|
// '加载中,请稍后...',
|
|
|
|
// style: TextStyle(
|
|
|
|
// color: MyColours.color_666666,
|
|
|
|
// fontSize: ScreenUtil().setSp(24)),
|
|
|
|
// )
|
|
|
|
],
|
|
|
|
),
|
|
|
|
))
|
|
|
|
]));
|
|
|
|
}
|
|
|
|
return Expanded(
|
|
|
|
child: ExceptionPage(
|
|
|
|
pageState: model.pageStateMyHome,
|
|
|
|
callback: () {
|
|
|
|
_couponNetworkData();
|
|
|
|
|
|
|
|
// _getMarketingByUid();
|
|
|
|
_getSellerCountsList();
|
|
|
|
},
|
|
|
|
emptyMsg: "暂时没有我的客情哦",
|
|
|
|
emptyImg: "empty_search",
|
|
|
|
showMsg: "加载中,请稍后...",
|
|
|
|
));
|
|
|
|
} else {
|
|
|
|
return Expanded(
|
|
|
|
child: SingleChildScrollView(
|
|
|
|
controller: _controller,
|
|
|
|
child: Column(
|
|
|
|
children: [
|
|
|
|
// VEmptyView(10),
|
|
|
|
// _getMarketingByUid();
|
|
|
|
_getSellerCountsList();
|
|
|
|
},
|
|
|
|
emptyMsg: "暂时没有我的客情哦",
|
|
|
|
emptyImg: "empty_search",
|
|
|
|
showMsg: "加载中,请稍后...",
|
|
|
|
));
|
|
|
|
} else {
|
|
|
|
return Expanded(
|
|
|
|
child: SingleChildScrollView(
|
|
|
|
controller: _controller,
|
|
|
|
child: Column(
|
|
|
|
children: [
|
|
|
|
// VEmptyView(10),
|
|
|
|
|
|
|
|
if (widget.customerProvider.guestSunmodel != null)
|
|
|
|
Column(
|
|
|
|
children: [
|
|
|
|
InkWell(
|
|
|
|
onTap: () {
|
|
|
|
String uid = '';
|
|
|
|
menuTitle.forEach((element) {
|
|
|
|
if (element.select) {
|
|
|
|
uid = element.uid;
|
|
|
|
}
|
|
|
|
});
|
|
|
|
NavigatorUtil.goMyCustomerListPage(context,
|
|
|
|
FromPage.FromPageMyCustomer, uid);
|
|
|
|
},
|
|
|
|
child: Container(
|
|
|
|
height: w(80),
|
|
|
|
color: MyColours.color_ffffff,
|
|
|
|
child: Row(
|
|
|
|
mainAxisAlignment:
|
|
|
|
MainAxisAlignment.center,
|
|
|
|
children: [
|
|
|
|
// Text(
|
|
|
|
// '累计',
|
|
|
|
// style: TextStyle(
|
|
|
|
// color: MyColours.color_515151,
|
|
|
|
// fontWeight: FontWeight.bold,
|
|
|
|
// fontSize: ScreenUtil().setSp(32)),
|
|
|
|
// ),
|
|
|
|
Text(
|
|
|
|
'${widget.customerProvider.guestSunmodel.myCustomer}',
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_199095,
|
|
|
|
fontSize: ScreenUtil().setSp(64),
|
|
|
|
fontWeight: FontWeight.bold),
|
|
|
|
),
|
|
|
|
Text(
|
|
|
|
'位',
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_515151,
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
fontSize: ScreenUtil().setSp(32)),
|
|
|
|
)
|
|
|
|
],
|
|
|
|
),
|
|
|
|
)),
|
|
|
|
VEmptyView(10),
|
|
|
|
// GridView.builder(
|
|
|
|
// controller: _controller,
|
|
|
|
// shrinkWrap: true,
|
|
|
|
// cacheExtent: ScreenUtil().setWidth(0),
|
|
|
|
// itemCount: 3,
|
|
|
|
// gridDelegate: SliverGridDelegateWithFixedCrossAxisCount(
|
|
|
|
// crossAxisCount: 3,
|
|
|
|
// childAspectRatio: 1,
|
|
|
|
// mainAxisSpacing: ScreenUtil().setWidth(10),
|
|
|
|
// crossAxisSpacing: ScreenUtil().setWidth(10)),
|
|
|
|
// itemBuilder: (BuildContext context, int index) {
|
|
|
|
// // locationState = state;
|
|
|
|
// return _percentWidget(
|
|
|
|
// '${widget.customerProvider.guestSunmodel.active.count}',
|
|
|
|
// '活跃客户',
|
|
|
|
// '${widget.customerProvider.guestSunmodel.active.scale}');
|
|
|
|
// }),
|
|
|
|
Row(
|
|
|
|
children: [
|
|
|
|
_percentWidget(
|
|
|
|
'${widget.customerProvider.guestSunmodel.active.count}',
|
|
|
|
'活跃',
|
|
|
|
'${widget.customerProvider.guestSunmodel.active.scale}'),
|
|
|
|
HEmptyView(10),
|
|
|
|
_percentWidget(
|
|
|
|
'${widget.customerProvider.guestSunmodel.sleep.count}',
|
|
|
|
'60天未到店',
|
|
|
|
'${widget.customerProvider.guestSunmodel.sleep.scale}'),
|
|
|
|
HEmptyView(10),
|
|
|
|
_percentWidget(
|
|
|
|
'${widget.customerProvider.guestSunmodel.drain.count}',
|
|
|
|
'120天未到店',
|
|
|
|
'${widget.customerProvider.guestSunmodel.drain.scale}'),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
if (widget.customerProvider.guestSunmodel != null)
|
|
|
|
Column(
|
|
|
|
children: [
|
|
|
|
InkWell(
|
|
|
|
onTap: () {
|
|
|
|
String uid = '';
|
|
|
|
menuTitle.forEach((element) {
|
|
|
|
if (element.select) {
|
|
|
|
uid = element.uid;
|
|
|
|
}
|
|
|
|
});
|
|
|
|
NavigatorUtil.goMyCustomerListPage(
|
|
|
|
context, FromPage.FromPageMyCustomer, uid);
|
|
|
|
},
|
|
|
|
child: Container(
|
|
|
|
height: w(80),
|
|
|
|
color: MyColours.color_ffffff,
|
|
|
|
child: Row(
|
|
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
|
|
children: [
|
|
|
|
// Text(
|
|
|
|
// '累计',
|
|
|
|
// style: TextStyle(
|
|
|
|
// color: MyColours.color_515151,
|
|
|
|
// fontWeight: FontWeight.bold,
|
|
|
|
// fontSize: ScreenUtil().setSp(32)),
|
|
|
|
// ),
|
|
|
|
Text(
|
|
|
|
'${widget.customerProvider.guestSunmodel.myCustomer}',
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_199095,
|
|
|
|
fontSize: ScreenUtil().setSp(64),
|
|
|
|
fontWeight: FontWeight.bold),
|
|
|
|
),
|
|
|
|
Text(
|
|
|
|
'位',
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_515151,
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
fontSize: ScreenUtil().setSp(32)),
|
|
|
|
)
|
|
|
|
],
|
|
|
|
),
|
|
|
|
)),
|
|
|
|
VEmptyView(10),
|
|
|
|
// GridView.builder(
|
|
|
|
// controller: _controller,
|
|
|
|
// shrinkWrap: true,
|
|
|
|
// cacheExtent: ScreenUtil().setWidth(0),
|
|
|
|
// itemCount: 3,
|
|
|
|
// gridDelegate: SliverGridDelegateWithFixedCrossAxisCount(
|
|
|
|
// crossAxisCount: 3,
|
|
|
|
// childAspectRatio: 1,
|
|
|
|
// mainAxisSpacing: ScreenUtil().setWidth(10),
|
|
|
|
// crossAxisSpacing: ScreenUtil().setWidth(10)),
|
|
|
|
// itemBuilder: (BuildContext context, int index) {
|
|
|
|
// // locationState = state;
|
|
|
|
// return _percentWidget(
|
|
|
|
// '${widget.customerProvider.guestSunmodel.active.count}',
|
|
|
|
// '活跃客户',
|
|
|
|
// '${widget.customerProvider.guestSunmodel.active.scale}');
|
|
|
|
// }),
|
|
|
|
Row(
|
|
|
|
children: [
|
|
|
|
_percentWidget(
|
|
|
|
'${widget.customerProvider.guestSunmodel.active.count}',
|
|
|
|
'活跃',
|
|
|
|
'${widget.customerProvider.guestSunmodel.active.scale}'),
|
|
|
|
HEmptyView(10),
|
|
|
|
_percentWidget(
|
|
|
|
'${widget.customerProvider.guestSunmodel.sleep.count}',
|
|
|
|
'60天未预订',
|
|
|
|
'${widget.customerProvider.guestSunmodel.sleep.scale}'),
|
|
|
|
HEmptyView(10),
|
|
|
|
_percentWidget(
|
|
|
|
'${widget.customerProvider.guestSunmodel.drain.count}',
|
|
|
|
'120天未预订',
|
|
|
|
'${widget.customerProvider.guestSunmodel.drain.scale}'),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
|
|
|
|
// ListView.builder(
|
|
|
|
// controller: _controller,
|
|
|
|
// shrinkWrap: true,
|
|
|
|
// cacheExtent: ScreenUtil().setWidth(0),
|
|
|
|
// itemCount: widget.customerProvider.guestSunmodel
|
|
|
|
// .tips.task ==
|
|
|
|
// null ||
|
|
|
|
// widget.customerProvider.guestSunmodel.tips
|
|
|
|
// .task.length ==
|
|
|
|
// 0
|
|
|
|
// ? 0
|
|
|
|
// : widget.customerProvider.guestSunmodel.tips
|
|
|
|
// .task.length,
|
|
|
|
// itemBuilder: (BuildContext context, int index) {
|
|
|
|
// // locationState = state;
|
|
|
|
// Task data = widget.customerProvider.guestSunmodel
|
|
|
|
// .tips.task[index];
|
|
|
|
// return Column(
|
|
|
|
// children: [
|
|
|
|
// VEmptyView(10),
|
|
|
|
// Container(
|
|
|
|
// color: MyColours.color_ffffff,
|
|
|
|
// padding: EdgeInsets.symmetric(
|
|
|
|
// horizontal: ScreenUtil().setWidth(20),
|
|
|
|
// vertical: ScreenUtil().setWidth(30)),
|
|
|
|
// child: Row(
|
|
|
|
// children: [
|
|
|
|
// Image.asset(
|
|
|
|
// Utils.getImgPath('warning'),
|
|
|
|
// width: ScreenUtil().setWidth(42),
|
|
|
|
// ),
|
|
|
|
// HEmptyView(15),
|
|
|
|
// Expanded(
|
|
|
|
// child: Column(
|
|
|
|
// crossAxisAlignment:
|
|
|
|
// CrossAxisAlignment.start,
|
|
|
|
// children: [
|
|
|
|
// Text(
|
|
|
|
// '店内任务:${data.content}',
|
|
|
|
// maxLines: 1,
|
|
|
|
// overflow: TextOverflow.ellipsis,
|
|
|
|
// style: TextStyle(
|
|
|
|
// color: MyColours.color_333333,
|
|
|
|
// fontSize:
|
|
|
|
// ScreenUtil().setSp(32)),
|
|
|
|
// ),
|
|
|
|
// data.aid != null &&
|
|
|
|
// data.aidStr != null
|
|
|
|
// ? Padding(
|
|
|
|
// padding: EdgeInsets.only(
|
|
|
|
// top: ScreenUtil()
|
|
|
|
// .setWidth(8)),
|
|
|
|
// child: Text(
|
|
|
|
// '优惠内容:${data.aidStr}',
|
|
|
|
// maxLines: 1,
|
|
|
|
// overflow:
|
|
|
|
// TextOverflow.ellipsis,
|
|
|
|
// style: TextStyle(
|
|
|
|
// color: MyColours
|
|
|
|
// .color_333333,
|
|
|
|
// fontSize: ScreenUtil()
|
|
|
|
// .setSp(24)),
|
|
|
|
// ),
|
|
|
|
// )
|
|
|
|
// : SizedBox(),
|
|
|
|
// VEmptyView(8),
|
|
|
|
// Text(
|
|
|
|
// '创建人:${data.createUser}',
|
|
|
|
// maxLines: 1,
|
|
|
|
// overflow: TextOverflow.ellipsis,
|
|
|
|
// style: TextStyle(
|
|
|
|
// color: MyColours.color_333333,
|
|
|
|
// fontSize:
|
|
|
|
// ScreenUtil().setSp(26)),
|
|
|
|
// )
|
|
|
|
// ],
|
|
|
|
// )),
|
|
|
|
// HEmptyView(20),
|
|
|
|
// Column(children: [
|
|
|
|
// RoundButton(
|
|
|
|
// text: '立即完成',
|
|
|
|
// ListView.builder(
|
|
|
|
// controller: _controller,
|
|
|
|
// shrinkWrap: true,
|
|
|
|
// cacheExtent: ScreenUtil().setWidth(0),
|
|
|
|
// itemCount: widget.customerProvider.guestSunmodel
|
|
|
|
// .tips.task ==
|
|
|
|
// null ||
|
|
|
|
// widget.customerProvider.guestSunmodel.tips
|
|
|
|
// .task.length ==
|
|
|
|
// 0
|
|
|
|
// ? 0
|
|
|
|
// : widget.customerProvider.guestSunmodel.tips
|
|
|
|
// .task.length,
|
|
|
|
// itemBuilder: (BuildContext context, int index) {
|
|
|
|
// // locationState = state;
|
|
|
|
// Task data = widget.customerProvider.guestSunmodel
|
|
|
|
// .tips.task[index];
|
|
|
|
// return Column(
|
|
|
|
// children: [
|
|
|
|
// VEmptyView(10),
|
|
|
|
// Container(
|
|
|
|
// color: MyColours.color_ffffff,
|
|
|
|
// padding: EdgeInsets.symmetric(
|
|
|
|
// horizontal: ScreenUtil().setWidth(20),
|
|
|
|
// vertical: ScreenUtil().setWidth(30)),
|
|
|
|
// child: Row(
|
|
|
|
// children: [
|
|
|
|
// Image.asset(
|
|
|
|
// Utils.getImgPath('warning'),
|
|
|
|
// width: ScreenUtil().setWidth(42),
|
|
|
|
// ),
|
|
|
|
// HEmptyView(15),
|
|
|
|
// Expanded(
|
|
|
|
// child: Column(
|
|
|
|
// crossAxisAlignment:
|
|
|
|
// CrossAxisAlignment.start,
|
|
|
|
// children: [
|
|
|
|
// Text(
|
|
|
|
// '店内任务:${data.content}',
|
|
|
|
// maxLines: 1,
|
|
|
|
// overflow: TextOverflow.ellipsis,
|
|
|
|
// style: TextStyle(
|
|
|
|
// color: MyColours.color_333333,
|
|
|
|
// fontSize:
|
|
|
|
// ScreenUtil().setSp(32)),
|
|
|
|
// ),
|
|
|
|
// data.aid != null &&
|
|
|
|
// data.aidStr != null
|
|
|
|
// ? Padding(
|
|
|
|
// padding: EdgeInsets.only(
|
|
|
|
// top: ScreenUtil()
|
|
|
|
// .setWidth(8)),
|
|
|
|
// child: Text(
|
|
|
|
// '优惠内容:${data.aidStr}',
|
|
|
|
// maxLines: 1,
|
|
|
|
// overflow:
|
|
|
|
// TextOverflow.ellipsis,
|
|
|
|
// style: TextStyle(
|
|
|
|
// color: MyColours
|
|
|
|
// .color_333333,
|
|
|
|
// fontSize: ScreenUtil()
|
|
|
|
// .setSp(24)),
|
|
|
|
// ),
|
|
|
|
// )
|
|
|
|
// : SizedBox(),
|
|
|
|
// VEmptyView(8),
|
|
|
|
// Text(
|
|
|
|
// '创建人:${data.createUser}',
|
|
|
|
// maxLines: 1,
|
|
|
|
// overflow: TextOverflow.ellipsis,
|
|
|
|
// style: TextStyle(
|
|
|
|
// color: MyColours.color_333333,
|
|
|
|
// fontSize:
|
|
|
|
// ScreenUtil().setSp(26)),
|
|
|
|
// )
|
|
|
|
// ],
|
|
|
|
// )),
|
|
|
|
// HEmptyView(20),
|
|
|
|
// Column(children: [
|
|
|
|
// RoundButton(
|
|
|
|
// text: '立即完成',
|
|
|
|
|
|
|
|
// padding: EdgeInsets.symmetric(
|
|
|
|
// horizontal:
|
|
|
|
// ScreenUtil().setWidth(26)),
|
|
|
|
// gradientStart:
|
|
|
|
// MyColours.color_199095,
|
|
|
|
// gradientEnd: MyColours.color_199095,
|
|
|
|
// // borderColor: MyColours.color_999999,
|
|
|
|
// radius: ScreenUtil().setWidth(40),
|
|
|
|
// height: ScreenUtil().setWidth(64),
|
|
|
|
// width: ScreenUtil().setWidth(180),
|
|
|
|
// fontSize: 26,
|
|
|
|
// isBold: false,
|
|
|
|
// onPressed: () {
|
|
|
|
// SellerList sellerList =
|
|
|
|
// SellerList.fromJson(
|
|
|
|
// json.decode(
|
|
|
|
// json.encode(data)));
|
|
|
|
// NavigatorUtil
|
|
|
|
// .goMyMakeMarkingPageOnlyShow(
|
|
|
|
// context, sellerList);
|
|
|
|
// },
|
|
|
|
// ),
|
|
|
|
// data.remainingTime != null
|
|
|
|
// ? Padding(
|
|
|
|
// padding: EdgeInsets.only(
|
|
|
|
// top: ScreenUtil()
|
|
|
|
// .setWidth(6)),
|
|
|
|
// child: Text(
|
|
|
|
// '${data.remainingTime}天内',
|
|
|
|
// maxLines: 1,
|
|
|
|
// overflow:
|
|
|
|
// TextOverflow.ellipsis,
|
|
|
|
// style: TextStyle(
|
|
|
|
// color: Color.fromRGBO(
|
|
|
|
// 215, 30, 40, 1),
|
|
|
|
// fontSize: ScreenUtil()
|
|
|
|
// .setSp(26)),
|
|
|
|
// ))
|
|
|
|
// : SizedBox()
|
|
|
|
// ])
|
|
|
|
// ],
|
|
|
|
// ),
|
|
|
|
// ),
|
|
|
|
// ],
|
|
|
|
// );
|
|
|
|
// }),
|
|
|
|
// ListView.builder(
|
|
|
|
// controller: _controller,
|
|
|
|
// shrinkWrap: true,
|
|
|
|
// cacheExtent: ScreenUtil().setWidth(0),
|
|
|
|
// itemCount: widget.customerProvider.guestSunmodel
|
|
|
|
// .tips.recover ==
|
|
|
|
// null ||
|
|
|
|
// widget.customerProvider.guestSunmodel.tips
|
|
|
|
// .recover.length ==
|
|
|
|
// 0
|
|
|
|
// ? 0
|
|
|
|
// : 1,
|
|
|
|
// itemBuilder: (BuildContext context, int index) {
|
|
|
|
// // locationState = state;
|
|
|
|
// padding: EdgeInsets.symmetric(
|
|
|
|
// horizontal:
|
|
|
|
// ScreenUtil().setWidth(26)),
|
|
|
|
// gradientStart:
|
|
|
|
// MyColours.color_199095,
|
|
|
|
// gradientEnd: MyColours.color_199095,
|
|
|
|
// // borderColor: MyColours.color_999999,
|
|
|
|
// radius: ScreenUtil().setWidth(40),
|
|
|
|
// height: ScreenUtil().setWidth(64),
|
|
|
|
// width: ScreenUtil().setWidth(180),
|
|
|
|
// fontSize: 26,
|
|
|
|
// isBold: false,
|
|
|
|
// onPressed: () {
|
|
|
|
// SellerList sellerList =
|
|
|
|
// SellerList.fromJson(
|
|
|
|
// json.decode(
|
|
|
|
// json.encode(data)));
|
|
|
|
// NavigatorUtil
|
|
|
|
// .goMyMakeMarkingPageOnlyShow(
|
|
|
|
// context, sellerList);
|
|
|
|
// },
|
|
|
|
// ),
|
|
|
|
// data.remainingTime != null
|
|
|
|
// ? Padding(
|
|
|
|
// padding: EdgeInsets.only(
|
|
|
|
// top: ScreenUtil()
|
|
|
|
// .setWidth(6)),
|
|
|
|
// child: Text(
|
|
|
|
// '${data.remainingTime}天内',
|
|
|
|
// maxLines: 1,
|
|
|
|
// overflow:
|
|
|
|
// TextOverflow.ellipsis,
|
|
|
|
// style: TextStyle(
|
|
|
|
// color: Color.fromRGBO(
|
|
|
|
// 215, 30, 40, 1),
|
|
|
|
// fontSize: ScreenUtil()
|
|
|
|
// .setSp(26)),
|
|
|
|
// ))
|
|
|
|
// : SizedBox()
|
|
|
|
// ])
|
|
|
|
// ],
|
|
|
|
// ),
|
|
|
|
// ),
|
|
|
|
// ],
|
|
|
|
// );
|
|
|
|
// }),
|
|
|
|
// ListView.builder(
|
|
|
|
// controller: _controller,
|
|
|
|
// shrinkWrap: true,
|
|
|
|
// cacheExtent: ScreenUtil().setWidth(0),
|
|
|
|
// itemCount: widget.customerProvider.guestSunmodel
|
|
|
|
// .tips.recover ==
|
|
|
|
// null ||
|
|
|
|
// widget.customerProvider.guestSunmodel.tips
|
|
|
|
// .recover.length ==
|
|
|
|
// 0
|
|
|
|
// ? 0
|
|
|
|
// : 1,
|
|
|
|
// itemBuilder: (BuildContext context, int index) {
|
|
|
|
// // locationState = state;
|
|
|
|
|
|
|
|
// return Column(
|
|
|
|
// children: [
|
|
|
|
// VEmptyView(10),
|
|
|
|
// Container(
|
|
|
|
// color: MyColours.color_ffffff,
|
|
|
|
// padding: EdgeInsets.symmetric(
|
|
|
|
// horizontal: ScreenUtil().setWidth(20),
|
|
|
|
// vertical: ScreenUtil().setWidth(30)),
|
|
|
|
// child: Row(
|
|
|
|
// children: [
|
|
|
|
// Image.asset(
|
|
|
|
// Utils.getImgPath('warning'),
|
|
|
|
// width: ScreenUtil().setWidth(42),
|
|
|
|
// ),
|
|
|
|
// HEmptyView(15),
|
|
|
|
// Expanded(
|
|
|
|
// child: Text(
|
|
|
|
// '${widget.customerProvider.guestSunmodel.tips.recover[0]}',
|
|
|
|
// maxLines: 10,
|
|
|
|
// overflow: TextOverflow.ellipsis,
|
|
|
|
// style: TextStyle(
|
|
|
|
// color: MyColours.color_333333,
|
|
|
|
// fontSize: ScreenUtil().setSp(32)),
|
|
|
|
// )),
|
|
|
|
// HEmptyView(20),
|
|
|
|
// RoundButton(
|
|
|
|
// text: '一键追回',
|
|
|
|
// padding: EdgeInsets.symmetric(
|
|
|
|
// horizontal:
|
|
|
|
// ScreenUtil().setWidth(26)),
|
|
|
|
// gradientStart: MyColours.color_199095,
|
|
|
|
// gradientEnd: MyColours.color_199095,
|
|
|
|
// // borderColor: MyColours.color_999999,
|
|
|
|
// radius: ScreenUtil().setWidth(40),
|
|
|
|
// height: ScreenUtil().setWidth(64),
|
|
|
|
// width: ScreenUtil().setWidth(180),
|
|
|
|
// fontSize: 26,
|
|
|
|
// isBold: false,
|
|
|
|
// onPressed: () {
|
|
|
|
// String uid = '';
|
|
|
|
// menuTitle.forEach((element) {
|
|
|
|
// if (element.select) {
|
|
|
|
// uid = element.uid;
|
|
|
|
// }
|
|
|
|
// });
|
|
|
|
// NavigatorUtil.goMyMakeMarkingPage(
|
|
|
|
// context, uid,
|
|
|
|
// fromPage: FromPage
|
|
|
|
// .FromPageMyCustomer,
|
|
|
|
// homeGid:
|
|
|
|
// Utils.listToStringEnglish1(
|
|
|
|
// widget
|
|
|
|
// .customerProvider
|
|
|
|
// .guestSunmodel
|
|
|
|
// .tips
|
|
|
|
// .recover[1]));
|
|
|
|
// },
|
|
|
|
// ),
|
|
|
|
// ],
|
|
|
|
// ),
|
|
|
|
// ),
|
|
|
|
// ],
|
|
|
|
// );
|
|
|
|
// }),
|
|
|
|
// ListView.builder(
|
|
|
|
// controller: _controller,
|
|
|
|
// shrinkWrap: true,
|
|
|
|
// cacheExtent: ScreenUtil().setWidth(0),
|
|
|
|
// itemCount: widget.customerProvider.guestSunmodel
|
|
|
|
// .tips.awaken ==
|
|
|
|
// null ||
|
|
|
|
// widget.customerProvider.guestSunmodel.tips
|
|
|
|
// .awaken.length ==
|
|
|
|
// 0
|
|
|
|
// ? 0
|
|
|
|
// : 1,
|
|
|
|
// itemBuilder: (BuildContext context, int index) {
|
|
|
|
// // locationState = state;
|
|
|
|
// return Column(
|
|
|
|
// children: [
|
|
|
|
// VEmptyView(10),
|
|
|
|
// Container(
|
|
|
|
// color: MyColours.color_ffffff,
|
|
|
|
// padding: EdgeInsets.symmetric(
|
|
|
|
// horizontal: ScreenUtil().setWidth(20),
|
|
|
|
// vertical: ScreenUtil().setWidth(30)),
|
|
|
|
// child: Row(
|
|
|
|
// children: [
|
|
|
|
// Image.asset(
|
|
|
|
// Utils.getImgPath('warning'),
|
|
|
|
// width: ScreenUtil().setWidth(42),
|
|
|
|
// ),
|
|
|
|
// HEmptyView(15),
|
|
|
|
// Expanded(
|
|
|
|
// child: Text(
|
|
|
|
// '${widget.customerProvider.guestSunmodel.tips.recover[0]}',
|
|
|
|
// maxLines: 10,
|
|
|
|
// overflow: TextOverflow.ellipsis,
|
|
|
|
// style: TextStyle(
|
|
|
|
// color: MyColours.color_333333,
|
|
|
|
// fontSize: ScreenUtil().setSp(32)),
|
|
|
|
// )),
|
|
|
|
// HEmptyView(20),
|
|
|
|
// RoundButton(
|
|
|
|
// text: '一键追回',
|
|
|
|
// padding: EdgeInsets.symmetric(
|
|
|
|
// horizontal:
|
|
|
|
// ScreenUtil().setWidth(26)),
|
|
|
|
// gradientStart: MyColours.color_199095,
|
|
|
|
// gradientEnd: MyColours.color_199095,
|
|
|
|
// // borderColor: MyColours.color_999999,
|
|
|
|
// radius: ScreenUtil().setWidth(40),
|
|
|
|
// height: ScreenUtil().setWidth(64),
|
|
|
|
// width: ScreenUtil().setWidth(180),
|
|
|
|
// fontSize: 26,
|
|
|
|
// isBold: false,
|
|
|
|
// onPressed: () {
|
|
|
|
// String uid = '';
|
|
|
|
// menuTitle.forEach((element) {
|
|
|
|
// if (element.select) {
|
|
|
|
// uid = element.uid;
|
|
|
|
// }
|
|
|
|
// });
|
|
|
|
// NavigatorUtil.goMyMakeMarkingPage(
|
|
|
|
// context, uid,
|
|
|
|
// fromPage: FromPage
|
|
|
|
// .FromPageMyCustomer,
|
|
|
|
// homeGid:
|
|
|
|
// Utils.listToStringEnglish1(
|
|
|
|
// widget
|
|
|
|
// .customerProvider
|
|
|
|
// .guestSunmodel
|
|
|
|
// .tips
|
|
|
|
// .recover[1]));
|
|
|
|
// },
|
|
|
|
// ),
|
|
|
|
// ],
|
|
|
|
// ),
|
|
|
|
// ),
|
|
|
|
// ],
|
|
|
|
// );
|
|
|
|
// }),
|
|
|
|
// ListView.builder(
|
|
|
|
// controller: _controller,
|
|
|
|
// shrinkWrap: true,
|
|
|
|
// cacheExtent: ScreenUtil().setWidth(0),
|
|
|
|
// itemCount: widget.customerProvider.guestSunmodel
|
|
|
|
// .tips.awaken ==
|
|
|
|
// null ||
|
|
|
|
// widget.customerProvider.guestSunmodel.tips
|
|
|
|
// .awaken.length ==
|
|
|
|
// 0
|
|
|
|
// ? 0
|
|
|
|
// : 1,
|
|
|
|
// itemBuilder: (BuildContext context, int index) {
|
|
|
|
// // locationState = state;
|
|
|
|
|
|
|
|
// return Column(
|
|
|
|
// children: [
|
|
|
|
// VEmptyView(10),
|
|
|
|
// Container(
|
|
|
|
// color: MyColours.color_ffffff,
|
|
|
|
// padding: EdgeInsets.symmetric(
|
|
|
|
// horizontal: ScreenUtil().setWidth(20),
|
|
|
|
// vertical: ScreenUtil().setWidth(30)),
|
|
|
|
// child: Row(
|
|
|
|
// children: [
|
|
|
|
// Image.asset(
|
|
|
|
// Utils.getImgPath('warning'),
|
|
|
|
// width: ScreenUtil().setWidth(42),
|
|
|
|
// ),
|
|
|
|
// HEmptyView(15),
|
|
|
|
// Expanded(
|
|
|
|
// child: Text(
|
|
|
|
// '${widget.customerProvider.guestSunmodel.tips.awaken[0]}',
|
|
|
|
// maxLines: 10,
|
|
|
|
// overflow: TextOverflow.ellipsis,
|
|
|
|
// style: TextStyle(
|
|
|
|
// color: MyColours.color_333333,
|
|
|
|
// fontSize: ScreenUtil().setSp(32)),
|
|
|
|
// )),
|
|
|
|
// HEmptyView(20),
|
|
|
|
// RoundButton(
|
|
|
|
// text: '一键唤醒',
|
|
|
|
// padding: EdgeInsets.symmetric(
|
|
|
|
// horizontal:
|
|
|
|
// ScreenUtil().setWidth(26)),
|
|
|
|
// gradientStart: MyColours.color_199095,
|
|
|
|
// gradientEnd: MyColours.color_199095,
|
|
|
|
// // borderColor: MyColours.color_999999,
|
|
|
|
// radius: ScreenUtil().setWidth(40),
|
|
|
|
// height: ScreenUtil().setWidth(64),
|
|
|
|
// width: ScreenUtil().setWidth(180),
|
|
|
|
// fontSize: 26,
|
|
|
|
// isBold: false,
|
|
|
|
// onPressed: () {
|
|
|
|
// String uid = '';
|
|
|
|
// menuTitle.forEach((element) {
|
|
|
|
// if (element.select) {
|
|
|
|
// uid = element.uid;
|
|
|
|
// }
|
|
|
|
// });
|
|
|
|
// NavigatorUtil.goMyMakeMarkingPage(
|
|
|
|
// context, uid,
|
|
|
|
// fromPage: FromPage
|
|
|
|
// .FromPageMyCustomer,
|
|
|
|
// homeGid:
|
|
|
|
// Utils.listToStringEnglish1(
|
|
|
|
// widget
|
|
|
|
// .customerProvider
|
|
|
|
// .guestSunmodel
|
|
|
|
// .tips
|
|
|
|
// .awaken[1]));
|
|
|
|
// },
|
|
|
|
// ),
|
|
|
|
// ],
|
|
|
|
// ),
|
|
|
|
// ),
|
|
|
|
// ],
|
|
|
|
// );
|
|
|
|
// }),
|
|
|
|
if (widget.customerProvider.managerStatisticsList !=
|
|
|
|
null &&
|
|
|
|
widget.customerProvider.managerStatisticsList
|
|
|
|
.length >
|
|
|
|
0)
|
|
|
|
Column(
|
|
|
|
children: [
|
|
|
|
_chart(),
|
|
|
|
ListView.builder(
|
|
|
|
itemCount: widget.customerProvider
|
|
|
|
.managerStatisticsList.length,
|
|
|
|
shrinkWrap: true,
|
|
|
|
controller: _controller,
|
|
|
|
padding:
|
|
|
|
EdgeInsets.symmetric(horizontal: w(10)),
|
|
|
|
itemBuilder: (context, index) {
|
|
|
|
SellerCountsListSunModel
|
|
|
|
countsListSunModel = widget
|
|
|
|
.customerProvider
|
|
|
|
.managerStatisticsList[index];
|
|
|
|
return InkWell(
|
|
|
|
onTap: () {
|
|
|
|
String uid = '';
|
|
|
|
menuTitle.forEach((element) {
|
|
|
|
if (element.select) {
|
|
|
|
uid = element.uid;
|
|
|
|
}
|
|
|
|
});
|
|
|
|
NavigatorUtil.goMonthOrderPage(
|
|
|
|
context,
|
|
|
|
year.toString(),
|
|
|
|
countsListSunModel.monthss
|
|
|
|
.toString(),
|
|
|
|
uid: uid);
|
|
|
|
},
|
|
|
|
child: MonthItem(
|
|
|
|
countsListSunModel:
|
|
|
|
countsListSunModel));
|
|
|
|
})
|
|
|
|
],
|
|
|
|
)
|
|
|
|
],
|
|
|
|
),
|
|
|
|
));
|
|
|
|
}
|
|
|
|
})
|
|
|
|
// Container(
|
|
|
|
// color: MyColours.color_FAFAFA,
|
|
|
|
// padding: EdgeInsets.only(
|
|
|
|
// top: w(13), bottom: w(26), left: w(45), right: (45)),
|
|
|
|
// child: Stack(
|
|
|
|
// children: [
|
|
|
|
// RoundButton(
|
|
|
|
// onPressed: () {
|
|
|
|
// NavigatorUtil.goMyMarketingRecordsPage(
|
|
|
|
// context, FromPage.FromPageMyCustomer);
|
|
|
|
// },
|
|
|
|
// text: '历史营销记录',
|
|
|
|
// fontSize: 32,
|
|
|
|
// isBold: true,
|
|
|
|
// // margin: EdgeInsets.only(
|
|
|
|
// // top: w(13),
|
|
|
|
// // bottom: w(26),
|
|
|
|
// // left: w(45),
|
|
|
|
// // right: (45)),
|
|
|
|
// textColor: MyColours.color_F8F9FD,
|
|
|
|
// gradientStart: MyColours.color_199095,
|
|
|
|
// gradientEnd: MyColours.color_199095,
|
|
|
|
// borderColor: MyColours.color_199095,
|
|
|
|
// height: ScreenUtil().setWidth(86),
|
|
|
|
// // width: ScreenUtil().setWidth(260),
|
|
|
|
// radius: ScreenUtil().setWidth(10),
|
|
|
|
// ),
|
|
|
|
// showWarning
|
|
|
|
// ? Positioned(
|
|
|
|
// right: ScreenUtil().setWidth(30),
|
|
|
|
// top: ScreenUtil().setWidth(45 / 2),
|
|
|
|
// child: Image.asset(
|
|
|
|
// Utils.getImgPath('warning'),
|
|
|
|
// width: ScreenUtil().setWidth(35),
|
|
|
|
// ))
|
|
|
|
// : SizedBox()
|
|
|
|
// ],
|
|
|
|
// ))
|
|
|
|
]));
|
|
|
|
// return Column(
|
|
|
|
// children: [
|
|
|
|
// VEmptyView(10),
|
|
|
|
// Container(
|
|
|
|
// color: MyColours.color_ffffff,
|
|
|
|
// padding: EdgeInsets.symmetric(
|
|
|
|
// horizontal: ScreenUtil().setWidth(20),
|
|
|
|
// vertical: ScreenUtil().setWidth(30)),
|
|
|
|
// child: Row(
|
|
|
|
// children: [
|
|
|
|
// Image.asset(
|
|
|
|
// Utils.getImgPath('warning'),
|
|
|
|
// width: ScreenUtil().setWidth(42),
|
|
|
|
// ),
|
|
|
|
// HEmptyView(15),
|
|
|
|
// Expanded(
|
|
|
|
// child: Text(
|
|
|
|
// '${widget.customerProvider.guestSunmodel.tips.awaken[0]}',
|
|
|
|
// maxLines: 10,
|
|
|
|
// overflow: TextOverflow.ellipsis,
|
|
|
|
// style: TextStyle(
|
|
|
|
// color: MyColours.color_333333,
|
|
|
|
// fontSize: ScreenUtil().setSp(32)),
|
|
|
|
// )),
|
|
|
|
// HEmptyView(20),
|
|
|
|
// RoundButton(
|
|
|
|
// text: '一键唤醒',
|
|
|
|
// padding: EdgeInsets.symmetric(
|
|
|
|
// horizontal:
|
|
|
|
// ScreenUtil().setWidth(26)),
|
|
|
|
// gradientStart: MyColours.color_199095,
|
|
|
|
// gradientEnd: MyColours.color_199095,
|
|
|
|
// // borderColor: MyColours.color_999999,
|
|
|
|
// radius: ScreenUtil().setWidth(40),
|
|
|
|
// height: ScreenUtil().setWidth(64),
|
|
|
|
// width: ScreenUtil().setWidth(180),
|
|
|
|
// fontSize: 26,
|
|
|
|
// isBold: false,
|
|
|
|
// onPressed: () {
|
|
|
|
// String uid = '';
|
|
|
|
// menuTitle.forEach((element) {
|
|
|
|
// if (element.select) {
|
|
|
|
// uid = element.uid;
|
|
|
|
// }
|
|
|
|
// });
|
|
|
|
// NavigatorUtil.goMyMakeMarkingPage(
|
|
|
|
// context, uid,
|
|
|
|
// fromPage: FromPage
|
|
|
|
// .FromPageMyCustomer,
|
|
|
|
// homeGid:
|
|
|
|
// Utils.listToStringEnglish1(
|
|
|
|
// widget
|
|
|
|
// .customerProvider
|
|
|
|
// .guestSunmodel
|
|
|
|
// .tips
|
|
|
|
// .awaken[1]));
|
|
|
|
// },
|
|
|
|
// ),
|
|
|
|
// ],
|
|
|
|
// ),
|
|
|
|
// ),
|
|
|
|
// ],
|
|
|
|
// );
|
|
|
|
// }),
|
|
|
|
if (widget.customerProvider.managerStatisticsList != null &&
|
|
|
|
widget.customerProvider.managerStatisticsList.length > 0)
|
|
|
|
Column(
|
|
|
|
children: [
|
|
|
|
_chart(),
|
|
|
|
ListView.builder(
|
|
|
|
itemCount: widget
|
|
|
|
.customerProvider.managerStatisticsList.length,
|
|
|
|
shrinkWrap: true,
|
|
|
|
controller: _controller,
|
|
|
|
padding: EdgeInsets.symmetric(horizontal: w(10)),
|
|
|
|
itemBuilder: (context, index) {
|
|
|
|
SellerCountsListSunModel countsListSunModel = widget
|
|
|
|
.customerProvider.managerStatisticsList[index];
|
|
|
|
return InkWell(
|
|
|
|
onTap: () {
|
|
|
|
String uid = '';
|
|
|
|
menuTitle.forEach((element) {
|
|
|
|
if (element.select) {
|
|
|
|
uid = element.uid;
|
|
|
|
}
|
|
|
|
});
|
|
|
|
NavigatorUtil.goMonthOrderPage(
|
|
|
|
context,
|
|
|
|
year.toString(),
|
|
|
|
countsListSunModel.monthss.toString(),
|
|
|
|
uid: uid);
|
|
|
|
},
|
|
|
|
child: MonthItem(
|
|
|
|
countsListSunModel: countsListSunModel));
|
|
|
|
})
|
|
|
|
],
|
|
|
|
)
|
|
|
|
],
|
|
|
|
),
|
|
|
|
));
|
|
|
|
}
|
|
|
|
})
|
|
|
|
// Container(
|
|
|
|
// color: MyColours.color_FAFAFA,
|
|
|
|
// padding: EdgeInsets.only(
|
|
|
|
// top: w(13), bottom: w(26), left: w(45), right: (45)),
|
|
|
|
// child: Stack(
|
|
|
|
// children: [
|
|
|
|
// RoundButton(
|
|
|
|
// onPressed: () {
|
|
|
|
// NavigatorUtil.goMyMarketingRecordsPage(
|
|
|
|
// context, FromPage.FromPageMyCustomer);
|
|
|
|
// },
|
|
|
|
// text: '历史营销记录',
|
|
|
|
// fontSize: 32,
|
|
|
|
// isBold: true,
|
|
|
|
// // margin: EdgeInsets.only(
|
|
|
|
// // top: w(13),
|
|
|
|
// // bottom: w(26),
|
|
|
|
// // left: w(45),
|
|
|
|
// // right: (45)),
|
|
|
|
// textColor: MyColours.color_F8F9FD,
|
|
|
|
// gradientStart: MyColours.color_199095,
|
|
|
|
// gradientEnd: MyColours.color_199095,
|
|
|
|
// borderColor: MyColours.color_199095,
|
|
|
|
// height: ScreenUtil().setWidth(86),
|
|
|
|
// // width: ScreenUtil().setWidth(260),
|
|
|
|
// radius: ScreenUtil().setWidth(10),
|
|
|
|
// ),
|
|
|
|
// showWarning
|
|
|
|
// ? Positioned(
|
|
|
|
// right: ScreenUtil().setWidth(30),
|
|
|
|
// top: ScreenUtil().setWidth(45 / 2),
|
|
|
|
// child: Image.asset(
|
|
|
|
// Utils.getImgPath('warning'),
|
|
|
|
// width: ScreenUtil().setWidth(35),
|
|
|
|
// ))
|
|
|
|
// : SizedBox()
|
|
|
|
// ],
|
|
|
|
// ))
|
|
|
|
]));
|
|
|
|
}
|
|
|
|
} |
...
|
...
|
|