|
...
|
...
|
@@ -138,16 +138,28 @@ class _StoreCustomerHomeRightPageState |
|
|
|
|
|
|
|
///我的客户首页
|
|
|
|
_getGuestManageData({bool isShowLoading = true}) async {
|
|
|
|
String uid = '';
|
|
|
|
menuTitle.forEach((element) {
|
|
|
|
if (element.select) {
|
|
|
|
uid = element.uid;
|
|
|
|
}
|
|
|
|
});
|
|
|
|
GuestManageSunModel model = await widget.customerProvider
|
|
|
|
.getGuestManageData(context, isShowLoading: isShowLoading);
|
|
|
|
.getGuestManageData(context, uid, isShowLoading: isShowLoading);
|
|
|
|
// setState(() {});
|
|
|
|
}
|
|
|
|
|
|
|
|
///消费券
|
|
|
|
_couponNetworkData({bool isShowLoading = true}) async {
|
|
|
|
// customerMakingProvider.couponSelectIndex = 0;
|
|
|
|
String uid = '';
|
|
|
|
menuTitle.forEach((element) {
|
|
|
|
if (element.select) {
|
|
|
|
uid = element.uid;
|
|
|
|
}
|
|
|
|
});
|
|
|
|
Map<String, String> params = {
|
|
|
|
"uid": Provider.of<UserModel>(context, listen: false).user.openid,
|
|
|
|
"uid": uid,
|
|
|
|
};
|
|
|
|
await widget.customerProvider.getCustomerSelectActivityNew(context, params,
|
|
|
|
isShowLoading: isShowLoading);
|
|
...
|
...
|
@@ -166,9 +178,13 @@ class _StoreCustomerHomeRightPageState |
|
|
|
}
|
|
|
|
|
|
|
|
_getMarketingByUid() async {
|
|
|
|
Map<String, String> params = {
|
|
|
|
"uid": Provider.of<UserModel>(context, listen: false).user.openid
|
|
|
|
};
|
|
|
|
String uid = '';
|
|
|
|
menuTitle.forEach((element) {
|
|
|
|
if (element.select) {
|
|
|
|
uid = element.uid;
|
|
|
|
}
|
|
|
|
});
|
|
|
|
Map<String, String> params = {"uid": uid};
|
|
|
|
// await widget.customerProvider.getMarketingByUid(context, params);
|
|
|
|
|
|
|
|
MarketingByUidsSunModel myRecordData =
|
|
...
|
...
|
@@ -281,8 +297,14 @@ class _StoreCustomerHomeRightPageState |
|
|
|
} else if (btnTitle == '120天未到店') {
|
|
|
|
index = '3';
|
|
|
|
}
|
|
|
|
String uid = '';
|
|
|
|
menuTitle.forEach((element) {
|
|
|
|
if (element.select) {
|
|
|
|
uid = element.uid;
|
|
|
|
}
|
|
|
|
});
|
|
|
|
NavigatorUtil.goMyCustomerListPage(
|
|
|
|
context, FromPage.FromPageMyCustomer,
|
|
|
|
context, FromPage.FromPageMyCustomer, uid,
|
|
|
|
index: index);
|
|
|
|
},
|
|
|
|
child: Container(
|
|
...
|
...
|
@@ -326,8 +348,14 @@ class _StoreCustomerHomeRightPageState |
|
|
|
} else if (btnTitle == '120天未到店') {
|
|
|
|
index = '3';
|
|
|
|
}
|
|
|
|
String uid = '';
|
|
|
|
menuTitle.forEach((element) {
|
|
|
|
if (element.select) {
|
|
|
|
uid = element.uid;
|
|
|
|
}
|
|
|
|
});
|
|
|
|
NavigatorUtil.goMyCustomerListPage(
|
|
|
|
context, FromPage.FromPageMyCustomer,
|
|
|
|
context, FromPage.FromPageMyCustomer, uid,
|
|
|
|
index: index);
|
|
|
|
},
|
|
|
|
text: btnTitle,
|
|
...
|
...
|
@@ -363,509 +391,562 @@ class _StoreCustomerHomeRightPageState |
|
|
|
// EventBus().emit('changeStatusColor');
|
|
|
|
// Navigator.pop(context);
|
|
|
|
// }),
|
|
|
|
body: WillPopScope(onWillPop: () async {
|
|
|
|
EventBus().emit('changeStatusColor');
|
|
|
|
return true;
|
|
|
|
}, child: Consumer<CustomerProvider>(builder: (context, model, _) {
|
|
|
|
if (model.pageStateMyHome != PageState.Success) {
|
|
|
|
return ExceptionPage(
|
|
|
|
pageState: model.pageStateMyHome,
|
|
|
|
callback: () {
|
|
|
|
_getSellerCountsList();
|
|
|
|
},
|
|
|
|
emptyMsg: "暂时没有我的客情哦",
|
|
|
|
emptyImg: "empty_search",
|
|
|
|
showMsg: "加载中,请稍后...",
|
|
|
|
);
|
|
|
|
} else {
|
|
|
|
return 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(() {});
|
|
|
|
_getSellerCountsList(
|
|
|
|
isShowLoading: true, callback: () {});
|
|
|
|
// offset = 0;
|
|
|
|
// 1提前点餐/2内部预订/10在线预订/15店内消息传/12在线买单
|
|
|
|
body: WillPopScope(
|
|
|
|
onWillPop: () async {
|
|
|
|
EventBus().emit('changeStatusColor');
|
|
|
|
return true;
|
|
|
|
},
|
|
|
|
child: 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();
|
|
|
|
|
|
|
|
// 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),
|
|
|
|
// offset = 0;
|
|
|
|
// 1提前点餐/2内部预订/10在线预订/15店内消息传/12在线买单
|
|
|
|
|
|
|
|
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),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
);
|
|
|
|
})))
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
Expanded(
|
|
|
|
child: SingleChildScrollView(
|
|
|
|
controller: _controller,
|
|
|
|
child: Column(
|
|
|
|
children: [
|
|
|
|
// VEmptyView(10),
|
|
|
|
InkWell(
|
|
|
|
onTap: () {
|
|
|
|
NavigatorUtil.goMyCustomerListPage(
|
|
|
|
context, FromPage.FromPageMyCustomer);
|
|
|
|
},
|
|
|
|
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 (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),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
);
|
|
|
|
})))
|
|
|
|
],
|
|
|
|
),
|
|
|
|
ListView.builder(
|
|
|
|
),
|
|
|
|
Consumer<CustomerProvider>(builder: (context, model, _) {
|
|
|
|
if (model.pageStateMyHome != PageState.Success) {
|
|
|
|
return Expanded(
|
|
|
|
child: ExceptionPage(
|
|
|
|
pageState: model.pageStateMyHome,
|
|
|
|
callback: () {
|
|
|
|
_couponNetworkData();
|
|
|
|
|
|
|
|
_getMarketingByUid();
|
|
|
|
_getSellerCountsList();
|
|
|
|
},
|
|
|
|
emptyMsg: "暂时没有我的客情哦",
|
|
|
|
emptyImg: "empty_search",
|
|
|
|
showMsg: "加载中,请稍后...",
|
|
|
|
));
|
|
|
|
} else {
|
|
|
|
return Expanded(
|
|
|
|
child: SingleChildScrollView(
|
|
|
|
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}',
|
|
|
|
child: Column(
|
|
|
|
children: [
|
|
|
|
// VEmptyView(10),
|
|
|
|
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(24)),
|
|
|
|
ScreenUtil().setSp(32)),
|
|
|
|
),
|
|
|
|
)
|
|
|
|
: 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: '立即完成',
|
|
|
|
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);
|
|
|
|
},
|
|
|
|
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()
|
|
|
|
])
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
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;
|
|
|
|
],
|
|
|
|
);
|
|
|
|
}),
|
|
|
|
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: () {
|
|
|
|
NavigatorUtil.goMyMakeMarkingPage(context,
|
|
|
|
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: () {
|
|
|
|
NavigatorUtil.goMyMakeMarkingPage(context,
|
|
|
|
fromPage: FromPage.FromPageMyCustomer,
|
|
|
|
homeGid: Utils.listToStringEnglish1(
|
|
|
|
widget.customerProvider
|
|
|
|
.guestSunmodel.tips.awaken[1]));
|
|
|
|
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]));
|
|
|
|
},
|
|
|
|
),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
);
|
|
|
|
}),
|
|
|
|
_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);
|
|
|
|
},
|
|
|
|
),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
);
|
|
|
|
}),
|
|
|
|
_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()
|
|
|
|
// ],
|
|
|
|
// ))
|
|
|
|
]);
|
|
|
|
}
|
|
|
|
})));
|
|
|
|
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()
|
|
|
|
// ],
|
|
|
|
// ))
|
|
|
|
])));
|
|
|
|
}
|
|
|
|
} |
...
|
...
|
|