|
...
|
...
|
@@ -411,101 +411,106 @@ class _StoreCustomerHomeRightPageState |
|
|
|
// 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);
|
|
|
|
_getGuestManageData(isShowLoading: false);
|
|
|
|
Consumer<CustomerProvider>(builder: (context, model, _) {
|
|
|
|
return 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;
|
|
|
|
|
|
|
|
// offset = 0;
|
|
|
|
// 1提前点餐/2内部预订/10在线预订/15店内消息传/12在线买单
|
|
|
|
model.pageStateMyHome = PageState.Loading;
|
|
|
|
|
|
|
|
// 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),
|
|
|
|
setState(() {});
|
|
|
|
// _getMarketingByUid();
|
|
|
|
// _getSellerCountsList();
|
|
|
|
_getSellerCountsList(
|
|
|
|
isShowLoading: false, callback: () {});
|
|
|
|
// _couponNetworkData(isShowLoading: false);
|
|
|
|
_getGuestManageData(isShowLoading: false);
|
|
|
|
|
|
|
|
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(
|
|
|
|
// 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),
|
|
|
|
|
|
|
|
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,
|
|
|
|
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),
|
|
|
|
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) {
|
...
|
...
|
|