|
...
|
...
|
@@ -245,7 +245,6 @@ class MyPageState extends State<MyPage> with WidgetsBindingObserver { |
|
|
|
edate = DateTime.fromMillisecondsSinceEpoch(
|
|
|
|
int.parse(collectStoreProvider.sellerNormalEdate) * 1000);
|
|
|
|
|
|
|
|
|
|
|
|
DateTime datenow = DateTime.now();
|
|
|
|
|
|
|
|
//比较相差的天数
|
|
...
|
...
|
@@ -357,14 +356,14 @@ class MyPageState extends State<MyPage> with WidgetsBindingObserver { |
|
|
|
|
|
|
|
int differenceSeconds = edate.difference(datenow).inSeconds;
|
|
|
|
|
|
|
|
if (difference < 0 || (difference == 0 && differenceSeconds <= 0)) {
|
|
|
|
//过期
|
|
|
|
outDay = '0';
|
|
|
|
} else if (difference == 0 && differenceSeconds > 0) {
|
|
|
|
outDay = '1';
|
|
|
|
} else {
|
|
|
|
outDay = difference.toString();
|
|
|
|
}
|
|
|
|
if (difference < 0 || (difference == 0 && differenceSeconds <= 0)) {
|
|
|
|
//过期
|
|
|
|
outDay = '0';
|
|
|
|
} else if (difference == 0 && differenceSeconds > 0) {
|
|
|
|
outDay = '1';
|
|
|
|
} else {
|
|
|
|
outDay = difference.toString();
|
|
|
|
}
|
|
|
|
|
|
|
|
// print(outDay);
|
|
|
|
} else {
|
|
...
|
...
|
@@ -391,14 +390,14 @@ class MyPageState extends State<MyPage> with WidgetsBindingObserver { |
|
|
|
edate = DateTime.fromMillisecondsSinceEpoch(
|
|
|
|
int.parse(collectStoreProvider.sellerNormalEdate) * 1000);
|
|
|
|
|
|
|
|
DateTime datenow = DateTime.now();
|
|
|
|
DateTime datenow = DateTime.now();
|
|
|
|
|
|
|
|
//比较相差的天数
|
|
|
|
int difference = edate.difference(datenow).inDays;
|
|
|
|
|
|
|
|
int differenceSeconds = edate.difference(datenow).inSeconds;
|
|
|
|
|
|
|
|
if (difference < 0 || (difference == 0 && differenceSeconds <= 0)) {
|
|
|
|
if (difference < 0 || (difference == 0 && differenceSeconds <= 0)) {
|
|
|
|
//过期
|
|
|
|
outDay = '0';
|
|
|
|
} else if (difference == 0 && differenceSeconds > 0) {
|
|
...
|
...
|
@@ -1088,19 +1087,10 @@ class MyPageState extends State<MyPage> with WidgetsBindingObserver { |
|
|
|
// VEmptyView(10),
|
|
|
|
|
|
|
|
Padding(
|
|
|
|
padding: EdgeInsets.symmetric(
|
|
|
|
vertical: ScreenUtil().setWidth(16)),
|
|
|
|
child: Text(
|
|
|
|
'我的内容',
|
|
|
|
style: TextStyle(
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
fontSize: ScreenUtil().setSp(32),
|
|
|
|
color: MyColours.color_515151),
|
|
|
|
)),
|
|
|
|
Padding(
|
|
|
|
padding: EdgeInsets.symmetric(
|
|
|
|
horizontal: ScreenUtil().setWidth(12 * 2),
|
|
|
|
vertical: ScreenUtil().setWidth(20)),
|
|
|
|
padding: EdgeInsets.only(
|
|
|
|
left: w(12),
|
|
|
|
right: w(12),
|
|
|
|
bottom: ScreenUtil().setWidth(20)),
|
|
|
|
child: Container(
|
|
|
|
padding: EdgeInsets.symmetric(
|
|
|
|
vertical: ScreenUtil().setWidth(19 * 2)),
|
|
...
|
...
|
@@ -1113,90 +1103,76 @@ class MyPageState extends State<MyPage> with WidgetsBindingObserver { |
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
|
|
|
|
children: [
|
|
|
|
InkWell(
|
|
|
|
onTap: () {
|
|
|
|
if (outDay == '0') {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (Utils.getAuthority(context, '个人信息')) {
|
|
|
|
NavigatorUtil.goBaseInfoPage(
|
|
|
|
context, FromPage.FromPageMyPage);
|
|
|
|
}
|
|
|
|
},
|
|
|
|
child: _item(
|
|
|
|
!Utils.getAuthority(context, '个人信息') ||
|
|
|
|
outDay == '0'
|
|
|
|
? Utils.getImgPath('grxx_un')
|
|
|
|
: Utils.getImgPath('grxx'),
|
|
|
|
'个人信息',
|
|
|
|
isRowLow: outDay == '0' ||
|
|
|
|
!Utils.getAuthority(context, '个人信息')),
|
|
|
|
),
|
|
|
|
InkWell(
|
|
|
|
onTap: () {
|
|
|
|
onTap: () async {
|
|
|
|
if (outDay == '0') {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (Utils.getAuthority(context, '我的客情')) {
|
|
|
|
if (collectStoreProvider
|
|
|
|
.sellerNormalSpecial) {
|
|
|
|
//标准版
|
|
|
|
if (collectStoreProvider
|
|
|
|
.sellerPreserve ||
|
|
|
|
collectStoreProvider
|
|
|
|
.sellerMarketing) {
|
|
|
|
NavigatorUtil.goMyCustomerPage(
|
|
|
|
context);
|
|
|
|
} else {
|
|
|
|
NavigatorUtil
|
|
|
|
.goMyCustomerListPageSim(
|
|
|
|
context);
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
NavigatorUtil.goMyCustomerPage(
|
|
|
|
context);
|
|
|
|
}
|
|
|
|
if (Utils.getAuthority(context, '店铺信息')) {
|
|
|
|
await NavigatorUtil.goStoreBaseInfoPage(
|
|
|
|
context);
|
|
|
|
// print(image['image']);
|
|
|
|
// UserModel userModel =
|
|
|
|
// Provider.of<UserModel>(context,
|
|
|
|
// listen: false);
|
|
|
|
// User user = userModel.user;
|
|
|
|
// user.sellerimage = image['image'];
|
|
|
|
// await App.sp.setString('user',
|
|
|
|
// json.encode(user.toJson()));
|
|
|
|
// print(userModel.user);
|
|
|
|
setState(() {});
|
|
|
|
}
|
|
|
|
},
|
|
|
|
child: _item(
|
|
|
|
outDay == '0' ||
|
|
|
|
!Utils.getAuthority(
|
|
|
|
context, '我的客情')
|
|
|
|
? Utils.getImgPath('wdkq_un')
|
|
|
|
: Utils.getImgPath('wdkq'),
|
|
|
|
'我的客情',
|
|
|
|
context, '店铺信息')
|
|
|
|
? Utils.getImgPath('dpxx_un')
|
|
|
|
: Utils.getImgPath('dpxx'),
|
|
|
|
'店铺信息',
|
|
|
|
isRowLow: outDay == '0' ||
|
|
|
|
!Utils.getAuthority(
|
|
|
|
context, '我的客情'))),
|
|
|
|
context, '店铺信息'))),
|
|
|
|
InkWell(
|
|
|
|
onTap: () {
|
|
|
|
if (outDay == '0') {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
if (!collectStoreProvider.sellerCoupon) {
|
|
|
|
//没有购买优惠券模块
|
|
|
|
//提示购买
|
|
|
|
|
|
|
|
DialogUtil.showSellerVersionBuyDialog(
|
|
|
|
context, '优惠券营销', (v) {});
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (Utils.getAuthority(context, '优惠券')) {
|
|
|
|
NavigatorUtil.goCouponPage(context);
|
|
|
|
if (Utils.getAuthority(context, '员工管理')) {
|
|
|
|
NavigatorUtil.goPersonnelManagePage(
|
|
|
|
context);
|
|
|
|
}
|
|
|
|
},
|
|
|
|
child: _item(
|
|
|
|
outDay == '0' ||
|
|
|
|
!Utils.getAuthority(
|
|
|
|
context, '优惠券')
|
|
|
|
? Utils.getImgPath('yhq_un')
|
|
|
|
: Utils.getImgPath('yhq'),
|
|
|
|
'优惠券',
|
|
|
|
context, '员工管理')
|
|
|
|
? Utils.getImgPath('yggl_un')
|
|
|
|
: Utils.getImgPath('yggl'),
|
|
|
|
'员工管理',
|
|
|
|
isRowLow: outDay == '0' ||
|
|
|
|
!Utils.getAuthority(
|
|
|
|
context, '优惠券'))),
|
|
|
|
context, '员工管理'))),
|
|
|
|
InkWell(
|
|
|
|
onTap: () {
|
|
|
|
if (outDay == '0') {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (Utils.getAuthority(context, '桌位设置')) {
|
|
|
|
NavigatorUtil.goTableSettingHomePage(
|
|
|
|
context);
|
|
|
|
}
|
|
|
|
},
|
|
|
|
child: _item(
|
|
|
|
outDay == '0' ||
|
|
|
|
!Utils.getAuthority(
|
|
|
|
context, '桌位设置')
|
|
|
|
? Utils.getImgPath('zwgl_un')
|
|
|
|
: Utils.getImgPath('zwgl'),
|
|
|
|
'桌位设置',
|
|
|
|
isRowLow: outDay == '0' ||
|
|
|
|
!Utils.getAuthority(context, '桌位设置')),
|
|
|
|
),
|
|
|
|
InkWell(
|
|
|
|
onTap: () {
|
|
|
|
if (outDay == '0') {
|
|
...
|
...
|
@@ -1218,88 +1194,36 @@ class MyPageState extends State<MyPage> with WidgetsBindingObserver { |
|
|
|
isRowLow: outDay == '0' ||
|
|
|
|
!Utils.getAuthority(
|
|
|
|
context, '常用备注'))),
|
|
|
|
InkWell(
|
|
|
|
onTap: () {
|
|
|
|
if (outDay == '0') {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (Utils.getAuthority(context, '个人信息')) {
|
|
|
|
NavigatorUtil.goBaseInfoPage(
|
|
|
|
context, FromPage.FromPageMyPage);
|
|
|
|
}
|
|
|
|
},
|
|
|
|
child: _item(
|
|
|
|
!Utils.getAuthority(context, '个人信息') ||
|
|
|
|
outDay == '0'
|
|
|
|
? Utils.getImgPath('grxx_un')
|
|
|
|
: Utils.getImgPath('grxx'),
|
|
|
|
'个人信息',
|
|
|
|
isRowLow: outDay == '0' ||
|
|
|
|
!Utils.getAuthority(context, '个人信息')),
|
|
|
|
),
|
|
|
|
|
|
|
|
],
|
|
|
|
),
|
|
|
|
VEmptyView(68),
|
|
|
|
Row(
|
|
|
|
mainAxisAlignment:
|
|
|
|
MainAxisAlignment.spaceEvenly,
|
|
|
|
children: [
|
|
|
|
InkWell(
|
|
|
|
onTap: () {
|
|
|
|
if (!collectStoreProvider
|
|
|
|
.sellerOrderManager) {
|
|
|
|
//没有购买经理排菜模块
|
|
|
|
//提示购买
|
|
|
|
|
|
|
|
DialogUtil.showSellerVersionBuyDialog(
|
|
|
|
context, '经理排菜', (v) {});
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
if (outDay == '0') {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
if (Utils.getAuthority(
|
|
|
|
context, '套餐排菜')) {
|
|
|
|
NavigatorUtil.goMyPlanDishHomePage(
|
|
|
|
context);
|
|
|
|
}
|
|
|
|
},
|
|
|
|
child: _item(
|
|
|
|
outDay == '0' ||
|
|
|
|
!Utils.getAuthority(
|
|
|
|
context, '套餐排菜')
|
|
|
|
? Utils.getImgPath('cdgl_un')
|
|
|
|
: Utils.getImgPath('cdgl'),
|
|
|
|
'套餐排菜',
|
|
|
|
isRowLow: outDay == '0' ||
|
|
|
|
!Utils.getAuthority(
|
|
|
|
context, '套餐排菜'))),
|
|
|
|
InkWell(
|
|
|
|
onTap: () {
|
|
|
|
if (outDay == '0') {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
if (Utils.getAuthority(
|
|
|
|
context, '客户存酒')) {
|
|
|
|
NavigatorUtil
|
|
|
|
.goStoreWineManageHomePage(
|
|
|
|
context);
|
|
|
|
}
|
|
|
|
},
|
|
|
|
child: _item(
|
|
|
|
outDay == '0' ||
|
|
|
|
!Utils.getAuthority(
|
|
|
|
context, '客户存酒')
|
|
|
|
? Utils.getImgPath('khcj_un')
|
|
|
|
: Utils.getImgPath('khcj'),
|
|
|
|
'客户存酒',
|
|
|
|
isRowLow: outDay == '0' ||
|
|
|
|
!Utils.getAuthority(
|
|
|
|
context, '客户存酒'))),
|
|
|
|
InkWell(
|
|
|
|
onTap: () {}, child: _item('', '空空空空')),
|
|
|
|
InkWell(
|
|
|
|
onTap: () {}, child: _item('', '空空空空')),
|
|
|
|
])
|
|
|
|
]),
|
|
|
|
)),
|
|
|
|
VEmptyView(20),
|
|
|
|
|
|
|
|
Padding(
|
|
|
|
padding: EdgeInsets.symmetric(
|
|
|
|
vertical: ScreenUtil().setWidth(16)),
|
|
|
|
child: Text(
|
|
|
|
'店铺相关',
|
|
|
|
style: TextStyle(
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
fontSize: ScreenUtil().setSp(32),
|
|
|
|
color: MyColours.color_515151),
|
|
|
|
)),
|
|
|
|
Padding(
|
|
|
|
padding: EdgeInsets.symmetric(
|
|
|
|
horizontal: ScreenUtil().setWidth(12 * 2),
|
|
|
|
vertical: ScreenUtil().setWidth(20)),
|
|
|
|
vertical: ScreenUtil().setWidth(40)),
|
|
|
|
child: Container(
|
|
|
|
padding: EdgeInsets.symmetric(
|
|
|
|
horizontal: ScreenUtil().setWidth(24 * 2),
|
|
...
|
...
|
@@ -1315,135 +1239,112 @@ class MyPageState extends State<MyPage> with WidgetsBindingObserver { |
|
|
|
MainAxisAlignment.spaceBetween,
|
|
|
|
children: [
|
|
|
|
InkWell(
|
|
|
|
onTap: () async {
|
|
|
|
onTap: () {
|
|
|
|
if (outDay == '0') {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
if (Utils.getAuthority(
|
|
|
|
context, '店铺信息')) {
|
|
|
|
await NavigatorUtil
|
|
|
|
.goStoreBaseInfoPage(context);
|
|
|
|
// print(image['image']);
|
|
|
|
// UserModel userModel =
|
|
|
|
// Provider.of<UserModel>(context,
|
|
|
|
// listen: false);
|
|
|
|
// User user = userModel.user;
|
|
|
|
// user.sellerimage = image['image'];
|
|
|
|
// await App.sp.setString('user',
|
|
|
|
// json.encode(user.toJson()));
|
|
|
|
// print(userModel.user);
|
|
|
|
setState(() {});
|
|
|
|
context, '菜单管理')) {
|
|
|
|
NavigatorUtil.goMenuManagePage(
|
|
|
|
context);
|
|
|
|
}
|
|
|
|
},
|
|
|
|
child: _item(
|
|
|
|
outDay == '0' ||
|
|
|
|
!Utils.getAuthority(
|
|
|
|
context, '店铺信息')
|
|
|
|
? Utils.getImgPath('dpxx_un')
|
|
|
|
: Utils.getImgPath('dpxx'),
|
|
|
|
'店铺信息',
|
|
|
|
context, '菜单管理')
|
|
|
|
? Utils.getImgPath('cdgl_un')
|
|
|
|
: Utils.getImgPath('cdgl'),
|
|
|
|
'菜单管理',
|
|
|
|
isRowLow: outDay == '0' ||
|
|
|
|
!Utils.getAuthority(
|
|
|
|
context, '店铺信息'))),
|
|
|
|
context, '菜单管理'))),
|
|
|
|
InkWell(
|
|
|
|
onTap: () {
|
|
|
|
if (!collectStoreProvider
|
|
|
|
.sellerOrderManager) {
|
|
|
|
//没有购买经理排菜模块
|
|
|
|
//提示购买
|
|
|
|
|
|
|
|
DialogUtil
|
|
|
|
.showSellerVersionBuyDialog(
|
|
|
|
context, '经理排菜', (v) {});
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
if (outDay == '0') {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
if (Utils.getAuthority(
|
|
|
|
context, '全店客情')) {
|
|
|
|
if (collectStoreProvider
|
|
|
|
.sellerNormalSpecial) {
|
|
|
|
//标准版
|
|
|
|
|
|
|
|
if (collectStoreProvider
|
|
|
|
.sellerPreserve ||
|
|
|
|
collectStoreProvider
|
|
|
|
.sellerMarketing) {
|
|
|
|
NavigatorUtil
|
|
|
|
.goStoreCustomerPage(
|
|
|
|
context);
|
|
|
|
} else {
|
|
|
|
NavigatorUtil
|
|
|
|
.goCustomerListPageSim(
|
|
|
|
context);
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
NavigatorUtil.goStoreCustomerPage(
|
|
|
|
context);
|
|
|
|
}
|
|
|
|
context, '套餐排菜')) {
|
|
|
|
NavigatorUtil.goMyPlanDishHomePage(
|
|
|
|
context);
|
|
|
|
}
|
|
|
|
},
|
|
|
|
child: _item(
|
|
|
|
outDay == '0' ||
|
|
|
|
!Utils.getAuthority(
|
|
|
|
context, '全店客情')
|
|
|
|
? Utils.getImgPath('qdkq_un')
|
|
|
|
: Utils.getImgPath('qdkq'),
|
|
|
|
'全店客情',
|
|
|
|
context, '套餐排菜')
|
|
|
|
? Utils.getImgPath('cdgl_un')
|
|
|
|
: Utils.getImgPath('pccd'),
|
|
|
|
'排菜菜单',
|
|
|
|
isRowLow: outDay == '0' ||
|
|
|
|
!Utils.getAuthority(
|
|
|
|
context, '全店客情'))),
|
|
|
|
context, '套餐排菜'))),
|
|
|
|
InkWell(
|
|
|
|
onTap: () {
|
|
|
|
if (outDay == '0') {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
if (Utils.getAuthority(
|
|
|
|
context, '桌位管理')) {
|
|
|
|
NavigatorUtil
|
|
|
|
.goMyTableManagerHomePage(
|
|
|
|
context);
|
|
|
|
}
|
|
|
|
},
|
|
|
|
child: _item(
|
|
|
|
outDay == '0' ||
|
|
|
|
!Utils.getAuthority(
|
|
|
|
context, '桌位管理')
|
|
|
|
? Utils.getImgPath('zwgl_un')
|
|
|
|
: Utils.getImgPath('zwgl'),
|
|
|
|
'桌位管理',
|
|
|
|
isRowLow: outDay == '0' ||
|
|
|
|
!Utils.getAuthority(
|
|
|
|
context, '桌位管理')),
|
|
|
|
),
|
|
|
|
onTap: () {
|
|
|
|
if (outDay == '0') {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
if (Utils.getAuthority(
|
|
|
|
context, '评价管理')) {
|
|
|
|
NavigatorUtil
|
|
|
|
.goCommentManageHomePage(
|
|
|
|
context);
|
|
|
|
}
|
|
|
|
},
|
|
|
|
child: _item(
|
|
|
|
outDay == '0' ||
|
|
|
|
!Utils.getAuthority(
|
|
|
|
context, '评价管理')
|
|
|
|
? Utils.getImgPath(
|
|
|
|
'my_comment_un')
|
|
|
|
: Utils.getImgPath(
|
|
|
|
'my_comment'),
|
|
|
|
'评价管理',
|
|
|
|
isRowLow: outDay == '0' ||
|
|
|
|
!Utils.getAuthority(
|
|
|
|
context, '评价管理'))),
|
|
|
|
InkWell(
|
|
|
|
onTap: () async {
|
|
|
|
onTap: () {
|
|
|
|
if (outDay == '0') {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
if (!collectStoreProvider
|
|
|
|
.sellerCoupon) {
|
|
|
|
//没有购买优惠券模块
|
|
|
|
//提示购买
|
|
|
|
|
|
|
|
DialogUtil
|
|
|
|
.showSellerVersionBuyDialog(
|
|
|
|
context, '优惠券营销', (v) {});
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (Utils.getAuthority(
|
|
|
|
context, '桌位照片')) {
|
|
|
|
// Map temp =
|
|
|
|
await NavigatorUtil
|
|
|
|
.goPhotoManagerSelectTablePage(
|
|
|
|
context,
|
|
|
|
"",
|
|
|
|
DateTime.now()
|
|
|
|
.millisecondsSinceEpoch,
|
|
|
|
"1",
|
|
|
|
canChoose: true,
|
|
|
|
object: null,
|
|
|
|
fromPage: "tablePhoto",
|
|
|
|
tid: '');
|
|
|
|
// if (temp != null && temp['tid'] != '') {
|
|
|
|
// // print(temp['tid']);
|
|
|
|
// // print(temp['tname']);
|
|
|
|
// // tname = temp['tname'];
|
|
|
|
// // tid = temp['tid'];
|
|
|
|
// // _getTablePhoto(context, temp['tid'], showLoading: true)
|
|
|
|
context, '优惠券')) {
|
|
|
|
NavigatorUtil.goCouponPage(context);
|
|
|
|
}
|
|
|
|
},
|
|
|
|
child: _item(
|
|
|
|
outDay == '0' ||
|
|
|
|
!Utils.getAuthority(
|
|
|
|
context, '桌位照片')
|
|
|
|
? Utils.getImgPath('zwzp_un')
|
|
|
|
: Utils.getImgPath('zwzp'),
|
|
|
|
'桌位照片',
|
|
|
|
context, '优惠券')
|
|
|
|
? Utils.getImgPath('yhq_un')
|
|
|
|
: Utils.getImgPath('yhq'),
|
|
|
|
'优惠券',
|
|
|
|
isRowLow: outDay == '0' ||
|
|
|
|
!Utils.getAuthority(
|
|
|
|
context, '桌位照片')))
|
|
|
|
context, '优惠券'))),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
VEmptyView(68),
|
|
...
|
...
|
@@ -1456,86 +1357,224 @@ class MyPageState extends State<MyPage> with WidgetsBindingObserver { |
|
|
|
if (outDay == '0') {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
if (!collectStoreProvider
|
|
|
|
.sellerRecharge) {
|
|
|
|
//没有购买优惠券模块
|
|
|
|
//提示购买
|
|
|
|
|
|
|
|
DialogUtil
|
|
|
|
.showSellerVersionBuyDialog(
|
|
|
|
context, '储值营销', (v) {});
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (Utils.getAuthority(
|
|
|
|
context, '员工管理')) {
|
|
|
|
NavigatorUtil.goPersonnelManagePage(
|
|
|
|
context, '充值优惠')) {
|
|
|
|
NavigatorUtil.goRechargeHomePage(
|
|
|
|
context);
|
|
|
|
}
|
|
|
|
},
|
|
|
|
child: _item(
|
|
|
|
outDay == '0' ||
|
|
|
|
!Utils.getAuthority(
|
|
|
|
context, '员工管理')
|
|
|
|
? Utils.getImgPath('yggl_un')
|
|
|
|
: Utils.getImgPath('yggl'),
|
|
|
|
'员工管理',
|
|
|
|
context, '充值优惠')
|
|
|
|
? Utils.getImgPath('yhq_un')
|
|
|
|
: Utils.getImgPath('czyh'),
|
|
|
|
'充值优惠',
|
|
|
|
isRowLow: outDay == '0' ||
|
|
|
|
!Utils.getAuthority(
|
|
|
|
context, '员工管理'))),
|
|
|
|
context, '充值优惠'))),
|
|
|
|
InkWell(
|
|
|
|
onTap: () {
|
|
|
|
if (outDay == '0') {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
if (Utils.getAuthority(
|
|
|
|
context, '菜单管理')) {
|
|
|
|
NavigatorUtil.goMenuManagePage(
|
|
|
|
context);
|
|
|
|
context, '客户存酒')) {
|
|
|
|
NavigatorUtil
|
|
|
|
.goStoreWineManageHomePage(
|
|
|
|
context);
|
|
|
|
}
|
|
|
|
},
|
|
|
|
child: _item(
|
|
|
|
outDay == '0' ||
|
|
|
|
!Utils.getAuthority(
|
|
|
|
context, '菜单管理')
|
|
|
|
? Utils.getImgPath('cdgl_un')
|
|
|
|
: Utils.getImgPath('cdgl'),
|
|
|
|
'菜单管理',
|
|
|
|
context, '客户存酒')
|
|
|
|
? Utils.getImgPath('khcj_un')
|
|
|
|
: Utils.getImgPath('khcj'),
|
|
|
|
'客户存酒',
|
|
|
|
isRowLow: outDay == '0' ||
|
|
|
|
!Utils.getAuthority(
|
|
|
|
context, '菜单管理'))),
|
|
|
|
context, '客户存酒'))),
|
|
|
|
InkWell(
|
|
|
|
onTap: () {
|
|
|
|
if (outDay == '0') {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
if (Utils.getAuthority(
|
|
|
|
context, '包间类型')) {
|
|
|
|
NavigatorUtil.goRoomTypeManagePage(
|
|
|
|
context, '宴会管理')) {
|
|
|
|
NavigatorUtil.goFeastManageHomePage(
|
|
|
|
context);
|
|
|
|
}
|
|
|
|
},
|
|
|
|
child: _item(
|
|
|
|
outDay == '0' ||
|
|
|
|
!Utils.getAuthority(
|
|
|
|
context, '包间类型')
|
|
|
|
? Utils.getImgPath('bjlx_un')
|
|
|
|
: Utils.getImgPath('bjlx'),
|
|
|
|
'包间类型',
|
|
|
|
context, '宴会管理')
|
|
|
|
? Utils.getImgPath('yhgl_un')
|
|
|
|
: Utils.getImgPath('yhgl'),
|
|
|
|
'宴会管理',
|
|
|
|
isRowLow: outDay == '0' ||
|
|
|
|
!Utils.getAuthority(
|
|
|
|
context, '包间类型'))),
|
|
|
|
context, '宴会管理'))),
|
|
|
|
InkWell(
|
|
|
|
onTap: () {}, child: _item('', '空空空空')),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
],
|
|
|
|
))),
|
|
|
|
|
|
|
|
Padding(
|
|
|
|
padding: EdgeInsets.symmetric(
|
|
|
|
horizontal: ScreenUtil().setWidth(12 * 2),
|
|
|
|
vertical: ScreenUtil().setWidth(40)),
|
|
|
|
child: Container(
|
|
|
|
padding: EdgeInsets.symmetric(
|
|
|
|
horizontal: ScreenUtil().setWidth(24 * 2),
|
|
|
|
vertical: ScreenUtil().setWidth(19 * 2)),
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
color: MyColours.color_ffffff,
|
|
|
|
borderRadius: BorderRadius.circular(
|
|
|
|
ScreenUtil().setWidth(14))),
|
|
|
|
child: Column(
|
|
|
|
children: [
|
|
|
|
Row(
|
|
|
|
mainAxisAlignment:
|
|
|
|
MainAxisAlignment.spaceBetween,
|
|
|
|
children: [
|
|
|
|
InkWell(
|
|
|
|
onTap: () {
|
|
|
|
if (outDay == '0') {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
if (Utils.getAuthority(
|
|
|
|
context, '包间置满')) {
|
|
|
|
NavigatorUtil
|
|
|
|
.goStoreTypeFillManagePage(
|
|
|
|
context);
|
|
|
|
context, '客情管理')) {
|
|
|
|
// 是全店客情
|
|
|
|
if (Utils.getAuthority(
|
|
|
|
context, '全店客情')) {
|
|
|
|
if (collectStoreProvider
|
|
|
|
.sellerNormalSpecial) {
|
|
|
|
//标准版
|
|
|
|
|
|
|
|
if (collectStoreProvider
|
|
|
|
.sellerPreserve ||
|
|
|
|
collectStoreProvider
|
|
|
|
.sellerMarketing) {
|
|
|
|
NavigatorUtil
|
|
|
|
.goStoreCustomerPage(
|
|
|
|
context);
|
|
|
|
} else {
|
|
|
|
//标准版没有开通客情模块的,跳转到极速版本的页面
|
|
|
|
NavigatorUtil
|
|
|
|
.goCustomerListPageSim(
|
|
|
|
context);
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
NavigatorUtil
|
|
|
|
.goStoreCustomerPage(
|
|
|
|
context);
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
if (Utils.getAuthority(
|
|
|
|
context, '我的客情')) {
|
|
|
|
if (collectStoreProvider
|
|
|
|
.sellerNormalSpecial) {
|
|
|
|
//标准版
|
|
|
|
if (collectStoreProvider
|
|
|
|
.sellerPreserve ||
|
|
|
|
collectStoreProvider
|
|
|
|
.sellerMarketing) {
|
|
|
|
NavigatorUtil
|
|
|
|
.goMyCustomerPage(
|
|
|
|
context);
|
|
|
|
} else {
|
|
|
|
NavigatorUtil
|
|
|
|
.goMyCustomerListPageSim(
|
|
|
|
context);
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
NavigatorUtil
|
|
|
|
.goMyCustomerPage(
|
|
|
|
context);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
child: _item(
|
|
|
|
outDay == '0' ||
|
|
|
|
!Utils.getAuthority(
|
|
|
|
context, '包间置满')
|
|
|
|
? Utils.getImgPath('bjzm_un')
|
|
|
|
: Utils.getImgPath('bjzm'),
|
|
|
|
'包间置满',
|
|
|
|
context, '客情管理')
|
|
|
|
? Utils.getImgPath('qdkq_un')
|
|
|
|
: Utils.getImgPath('kqgl'),
|
|
|
|
'客情管理',
|
|
|
|
isRowLow: outDay == '0' ||
|
|
|
|
!Utils.getAuthority(
|
|
|
|
context, '客情管理'))),
|
|
|
|
InkWell(
|
|
|
|
onTap: () async {
|
|
|
|
if (outDay == '0') {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
if (Utils.getAuthority(
|
|
|
|
context, '客户分析')) {}
|
|
|
|
},
|
|
|
|
child: _item(
|
|
|
|
outDay == '0' ||
|
|
|
|
!Utils.getAuthority(
|
|
|
|
context, '客户分析')
|
|
|
|
? Utils.getImgPath('zwzp_un')
|
|
|
|
: Utils.getImgPath('khfx'),
|
|
|
|
'客户分析',
|
|
|
|
isRowLow: outDay == '0' ||
|
|
|
|
!Utils.getAuthority(
|
|
|
|
context, '客户分析'))),
|
|
|
|
InkWell(
|
|
|
|
onTap: () async {
|
|
|
|
if (outDay == '0') {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
if (Utils.getAuthority(
|
|
|
|
context, '预订统计')) {}
|
|
|
|
},
|
|
|
|
child: _item(
|
|
|
|
outDay == '0' ||
|
|
|
|
!Utils.getAuthority(
|
|
|
|
context, '预订统计')
|
|
|
|
? Utils.getImgPath('zwzp_un')
|
|
|
|
: Utils.getImgPath('ydtj'),
|
|
|
|
'预订统计',
|
|
|
|
isRowLow: outDay == '0' ||
|
|
|
|
!Utils.getAuthority(
|
|
|
|
context, '预订统计'))),
|
|
|
|
InkWell(
|
|
|
|
onTap: () async {
|
|
|
|
if (outDay == '0') {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
if (Utils.getAuthority(
|
|
|
|
context, '订单分析')) {}
|
|
|
|
},
|
|
|
|
child: _item(
|
|
|
|
outDay == '0' ||
|
|
|
|
!Utils.getAuthority(
|
|
|
|
context, '订单分析')
|
|
|
|
? Utils.getImgPath('zwzp_un')
|
|
|
|
: Utils.getImgPath('ddfx'),
|
|
|
|
'订单分析',
|
|
|
|
isRowLow: outDay == '0' ||
|
|
|
|
!Utils.getAuthority(
|
|
|
|
context, '包间置满')))
|
|
|
|
context, '订单分析'))),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
VEmptyView(68),
|
|
...
|
...
|
@@ -1549,21 +1588,21 @@ class MyPageState extends State<MyPage> with WidgetsBindingObserver { |
|
|
|
return;
|
|
|
|
}
|
|
|
|
if (Utils.getAuthority(
|
|
|
|
context, '宴会管理')) {
|
|
|
|
NavigatorUtil.goFeastManageHomePage(
|
|
|
|
context);
|
|
|
|
context, '客户通知')) {
|
|
|
|
// NavigatorUtil.goMenuManagePage(
|
|
|
|
// context);
|
|
|
|
}
|
|
|
|
},
|
|
|
|
child: _item(
|
|
|
|
outDay == '0' ||
|
|
|
|
!Utils.getAuthority(
|
|
|
|
context, '宴会管理')
|
|
|
|
? Utils.getImgPath('yhgl_un')
|
|
|
|
: Utils.getImgPath('yhgl'),
|
|
|
|
'宴会管理',
|
|
|
|
context, '客户通知')
|
|
|
|
? Utils.getImgPath('cdgl_un')
|
|
|
|
: Utils.getImgPath('khtz'),
|
|
|
|
'客户通知',
|
|
|
|
isRowLow: outDay == '0' ||
|
|
|
|
!Utils.getAuthority(
|
|
|
|
context, '宴会管理'))),
|
|
|
|
context, '客户通知'))),
|
|
|
|
InkWell(
|
|
|
|
onTap: () {
|
|
|
|
if (outDay == '0') {
|
|
...
|
...
|
@@ -1581,46 +1620,20 @@ class MyPageState extends State<MyPage> with WidgetsBindingObserver { |
|
|
|
!Utils.getAuthority(
|
|
|
|
context, '营销中心')
|
|
|
|
? Utils.getImgPath('bjzm_un')
|
|
|
|
: Utils.getImgPath('bjzm'),
|
|
|
|
: Utils.getImgPath('yxzx'),
|
|
|
|
'营销中心',
|
|
|
|
isRowLow: outDay == '0' ||
|
|
|
|
!Utils.getAuthority(
|
|
|
|
context, '营销中心'))),
|
|
|
|
InkWell(
|
|
|
|
onTap: () {
|
|
|
|
if (outDay == '0') {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
if (Utils.getAuthority(
|
|
|
|
context, '评价管理')) {
|
|
|
|
NavigatorUtil
|
|
|
|
.goCommentManageHomePage(
|
|
|
|
context);
|
|
|
|
}
|
|
|
|
},
|
|
|
|
child: _item(
|
|
|
|
outDay == '0' ||
|
|
|
|
!Utils.getAuthority(
|
|
|
|
context, '评价管理')
|
|
|
|
? Utils.getImgPath(
|
|
|
|
'my_comment_un')
|
|
|
|
: Utils.getImgPath(
|
|
|
|
'my_comment'),
|
|
|
|
'评价管理',
|
|
|
|
isRowLow: outDay == '0' ||
|
|
|
|
!Utils.getAuthority(
|
|
|
|
context, '评价管理'))),
|
|
|
|
// InkWell(
|
|
|
|
// onTap: () {}, child: _item('', '空空空空')),
|
|
|
|
onTap: () {}, child: _item('', '空空空空')),
|
|
|
|
InkWell(
|
|
|
|
onTap: () {}, child: _item('', '空空空空')),
|
|
|
|
],
|
|
|
|
)
|
|
|
|
),
|
|
|
|
],
|
|
|
|
))),
|
|
|
|
|
|
|
|
VEmptyView(20),
|
|
|
|
|
|
|
|
Padding(
|
|
|
|
padding: EdgeInsets.symmetric(
|
|
|
|
vertical: ScreenUtil().setWidth(16)),
|
...
|
...
|
|