Commit 9053245f898fdcf8128bdc820a7237f61942794f

Authored by weixin_45529955
1 parent a40efac6

hh

... ... @@ -67,50 +67,35 @@ class _CustomerHomePageState extends State<CustomerHomePage> {
children: [
InkWell(
onTap: () async {
// if (userModel.user?.role_name == '管理员' ||
// userModel.user?.role_name == '店长') {
// if (Utils.getAuthority(context, '全店客情')) {
// if (widget.sellerNormalSpecial) {
// //标准版
if (userModel.user?.role_name == '管理员' ||
userModel.user?.role_name == '店长') {
if (Utils.getAuthority(context, '全店客情')) {
if (widget.sellerNormalSpecial) {
//标准版
// if (widget.sellerPreserve ||
// widget.sellerMarketing) {
// NavigatorUtil.goCustomerStatisticsPage(context);
// } else {
// NavigatorUtil.goCustomerListPageSim(context);
// }
// } else {
// NavigatorUtil.goCustomerStatisticsPage(context);
// }
// }
// } else {
// if (Utils.getAuthority(context, '我的客情')) {
// if (widget.sellerNormalSpecial) {
// //标准版
// if (widget.sellerPreserve ||
// widget.sellerMarketing) {
// NavigatorUtil.goMyCustomerPage(context);
// } else {
// NavigatorUtil.goMyCustomerListPageSim(context);
// }
// } else {
// NavigatorUtil.goMyCustomerPage(context);
// }
// }
// }
if (Utils.getAuthority(context, '全店客情')) {
if (widget.sellerNormalSpecial) {
//标准版
if (widget.sellerPreserve ||
widget.sellerMarketing) {
NavigatorUtil.goStoreCustomerPage(context);
if (widget.sellerPreserve ||
widget.sellerMarketing) {
NavigatorUtil.goCustomerStatisticsPage(context);
} else {
NavigatorUtil.goCustomerListPageSim(context);
}
} else {
NavigatorUtil.goCustomerStatisticsPage(context);
}
}
} else {
if (Utils.getAuthority(context, '我的客情')) {
if (widget.sellerNormalSpecial) {
//标准版
if (widget.sellerPreserve ||
widget.sellerMarketing) {
NavigatorUtil.goMyCustomerPage(context);
} else {
NavigatorUtil.goMyCustomerListPageSim(context);
}
} else {
NavigatorUtil.goCustomerListPageSim(context);
NavigatorUtil.goMyCustomerPage(context);
}
} else {
NavigatorUtil.goStoreCustomerPage(context);
}
}
},
... ... @@ -123,7 +108,7 @@ class _CustomerHomePageState extends State<CustomerHomePage> {
child: Row(
children: [
Text(
'全店客情',
'客户汇总',
style: TextStyle(
color: MyColours.color_515151,
fontSize: ScreenUtil().setWidth(32)),
... ... @@ -147,51 +132,51 @@ class _CustomerHomePageState extends State<CustomerHomePage> {
VEmptyView(24),
InkWell(
onTap: () {
// if (userModel.user?.role_name == '管理员' ||
// userModel.user?.role_name == '店长') {
// if (Utils.getAuthority(context, '全店客情')) {
// if (widget.sellerNormalSpecial) {
// //标准版
// if (widget.sellerPreserve ||
// widget.sellerMarketing) {
// NavigatorUtil.goStoreCustomerPage(context);
// } else {
// NavigatorUtil.goCustomerListPageSim(context);
// }
// } else {
// NavigatorUtil.goStoreCustomerPage(context);
// }
// }
// } else {
// if (Utils.getAuthority(context, '我的客情')) {
// if (widget.sellerNormalSpecial) {
// //标准版
// if (widget.sellerPreserve ||
// widget.sellerMarketing) {
// NavigatorUtil.goMyCustomerPage(context);
// } else {
// NavigatorUtil.goMyCustomerListPageSim(context);
// }
// } else {
// NavigatorUtil.goMyCustomerPage(context);
// }
// }
// }
if (userModel.user?.role_name == '管理员' ||
userModel.user?.role_name == '店长') {
if (Utils.getAuthority(context, '全店客情')) {
if (widget.sellerNormalSpecial) {
//标准版
if (Utils.getAuthority(context, '我的客情')) {
if (widget.sellerNormalSpecial) {
//标准版
if (widget.sellerPreserve ||
widget.sellerMarketing) {
NavigatorUtil.goMyCustomerPage(context);
if (widget.sellerPreserve ||
widget.sellerMarketing) {
NavigatorUtil.goStoreCustomerPage(context);
} else {
NavigatorUtil.goCustomerListPageSim(context);
}
} else {
NavigatorUtil.goMyCustomerListPageSim(context);
NavigatorUtil.goStoreCustomerPage(context);
}
}
} else {
if (Utils.getAuthority(context, '我的客情')) {
if (widget.sellerNormalSpecial) {
//标准版
if (widget.sellerPreserve ||
widget.sellerMarketing) {
NavigatorUtil.goMyCustomerPage(context);
} else {
NavigatorUtil.goMyCustomerListPageSim(context);
}
} else {
NavigatorUtil.goMyCustomerPage(context);
}
} else {
NavigatorUtil.goMyCustomerPage(context);
}
}
// if (Utils.getAuthority(context, '我的客情')) {
// if (widget.sellerNormalSpecial) {
// //标准版
// if (widget.sellerPreserve ||
// widget.sellerMarketing) {
// NavigatorUtil.goMyCustomerPage(context);
// } else {
// NavigatorUtil.goMyCustomerListPageSim(context);
// }
// } else {
// NavigatorUtil.goMyCustomerPage(context);
// }
// }
},
child: Padding(
padding: EdgeInsets.only(
... ... @@ -202,7 +187,7 @@ class _CustomerHomePageState extends State<CustomerHomePage> {
child: Row(
children: [
Text(
'我的客情',
'客户列表',
style: TextStyle(
color: MyColours.color_515151,
fontSize: ScreenUtil().setWidth(32)),
... ... @@ -224,42 +209,42 @@ class _CustomerHomePageState extends State<CustomerHomePage> {
child: MyDivider(double.infinity, w(0.5),
color: MyColours.color_E7E7E7)),
VEmptyView(24),
// InkWell(
// onTap: () {
// //
InkWell(
onTap: () {
//
// NavigatorUtil.goCustomLabelPage(context);
// },
// child: Padding(
// padding: EdgeInsets.only(
// left: w(16),
// top: w(12),
// bottom: w(12),
// right: w(12)),
// child: Row(
// children: [
// Text(
// '客户自定义标签',
// style: TextStyle(
// color: MyColours.color_515151,
// fontSize: ScreenUtil().setWidth(32)),
// ),
// Spacer(),
// Container(
// padding: EdgeInsets.symmetric(
// horizontal: w(7), vertical: w(4)),
// child: Image.asset(
// "assets/arrow_right_new.png",
// width: ScreenUtil().setWidth(18),
// height: ScreenUtil().setWidth(32),
// ),
// )
// ],
// ))),
// Padding(
// padding: EdgeInsets.only(left: w(16)),
// child: MyDivider(double.infinity, w(0.5),
// color: MyColours.color_E7E7E7)),
NavigatorUtil.goCustomLabelPage(context);
},
child: Padding(
padding: EdgeInsets.only(
left: w(16),
top: w(12),
bottom: w(12),
right: w(12)),
child: Row(
children: [
Text(
'客户自定义标签',
style: TextStyle(
color: MyColours.color_515151,
fontSize: ScreenUtil().setWidth(32)),
),
Spacer(),
Container(
padding: EdgeInsets.symmetric(
horizontal: w(7), vertical: w(4)),
child: Image.asset(
"assets/arrow_right_new.png",
width: ScreenUtil().setWidth(18),
height: ScreenUtil().setWidth(32),
),
)
],
))),
Padding(
padding: EdgeInsets.only(left: w(16)),
child: MyDivider(double.infinity, w(0.5),
color: MyColours.color_E7E7E7)),
],
),
)),
... ...