Commit 9053245f898fdcf8128bdc820a7237f61942794f

Authored by weixin_45529955
1 parent a40efac6

hh

@@ -67,50 +67,35 @@ class _CustomerHomePageState extends State<CustomerHomePage> { @@ -67,50 +67,35 @@ class _CustomerHomePageState extends State<CustomerHomePage> {
67 children: [ 67 children: [
68 InkWell( 68 InkWell(
69 onTap: () async { 69 onTap: () async {
70 - // if (userModel.user?.role_name == '管理员' ||  
71 - // userModel.user?.role_name == '店长') {  
72 - // if (Utils.getAuthority(context, '全店客情')) {  
73 - // if (widget.sellerNormalSpecial) {  
74 - // //标准版 70 + if (userModel.user?.role_name == '管理员' ||
  71 + userModel.user?.role_name == '店长') {
  72 + if (Utils.getAuthority(context, '全店客情')) {
  73 + if (widget.sellerNormalSpecial) {
  74 + //标准版
75 75
76 - // if (widget.sellerPreserve ||  
77 - // widget.sellerMarketing) {  
78 - // NavigatorUtil.goCustomerStatisticsPage(context);  
79 - // } else {  
80 - // NavigatorUtil.goCustomerListPageSim(context);  
81 - // }  
82 - // } else {  
83 - // NavigatorUtil.goCustomerStatisticsPage(context);  
84 - // }  
85 - // }  
86 - // } else {  
87 - // if (Utils.getAuthority(context, '我的客情')) {  
88 - // if (widget.sellerNormalSpecial) {  
89 - // //标准版  
90 - // if (widget.sellerPreserve ||  
91 - // widget.sellerMarketing) {  
92 - // NavigatorUtil.goMyCustomerPage(context);  
93 - // } else {  
94 - // NavigatorUtil.goMyCustomerListPageSim(context);  
95 - // }  
96 - // } else {  
97 - // NavigatorUtil.goMyCustomerPage(context);  
98 - // }  
99 - // }  
100 - // }  
101 -  
102 - if (Utils.getAuthority(context, '全店客情')) {  
103 - if (widget.sellerNormalSpecial) {  
104 - //标准版  
105 -  
106 - if (widget.sellerPreserve ||  
107 - widget.sellerMarketing) {  
108 - NavigatorUtil.goStoreCustomerPage(context); 76 + if (widget.sellerPreserve ||
  77 + widget.sellerMarketing) {
  78 + NavigatorUtil.goCustomerStatisticsPage(context);
  79 + } else {
  80 + NavigatorUtil.goCustomerListPageSim(context);
  81 + }
  82 + } else {
  83 + NavigatorUtil.goCustomerStatisticsPage(context);
  84 + }
  85 + }
  86 + } else {
  87 + if (Utils.getAuthority(context, '我的客情')) {
  88 + if (widget.sellerNormalSpecial) {
  89 + //标准版
  90 + if (widget.sellerPreserve ||
  91 + widget.sellerMarketing) {
  92 + NavigatorUtil.goMyCustomerPage(context);
  93 + } else {
  94 + NavigatorUtil.goMyCustomerListPageSim(context);
  95 + }
109 } else { 96 } else {
110 - NavigatorUtil.goCustomerListPageSim(context); 97 + NavigatorUtil.goMyCustomerPage(context);
111 } 98 }
112 - } else {  
113 - NavigatorUtil.goStoreCustomerPage(context);  
114 } 99 }
115 } 100 }
116 }, 101 },
@@ -123,7 +108,7 @@ class _CustomerHomePageState extends State<CustomerHomePage> { @@ -123,7 +108,7 @@ class _CustomerHomePageState extends State<CustomerHomePage> {
123 child: Row( 108 child: Row(
124 children: [ 109 children: [
125 Text( 110 Text(
126 - '全店客情', 111 + '客户汇总',
127 style: TextStyle( 112 style: TextStyle(
128 color: MyColours.color_515151, 113 color: MyColours.color_515151,
129 fontSize: ScreenUtil().setWidth(32)), 114 fontSize: ScreenUtil().setWidth(32)),
@@ -147,51 +132,51 @@ class _CustomerHomePageState extends State<CustomerHomePage> { @@ -147,51 +132,51 @@ class _CustomerHomePageState extends State<CustomerHomePage> {
147 VEmptyView(24), 132 VEmptyView(24),
148 InkWell( 133 InkWell(
149 onTap: () { 134 onTap: () {
150 - // if (userModel.user?.role_name == '管理员' ||  
151 - // userModel.user?.role_name == '店长') {  
152 - // if (Utils.getAuthority(context, '全店客情')) {  
153 - // if (widget.sellerNormalSpecial) {  
154 - // //标准版  
155 -  
156 - // if (widget.sellerPreserve ||  
157 - // widget.sellerMarketing) {  
158 - // NavigatorUtil.goStoreCustomerPage(context);  
159 - // } else {  
160 - // NavigatorUtil.goCustomerListPageSim(context);  
161 - // }  
162 - // } else {  
163 - // NavigatorUtil.goStoreCustomerPage(context);  
164 - // }  
165 - // }  
166 - // } else {  
167 - // if (Utils.getAuthority(context, '我的客情')) {  
168 - // if (widget.sellerNormalSpecial) {  
169 - // //标准版  
170 - // if (widget.sellerPreserve ||  
171 - // widget.sellerMarketing) {  
172 - // NavigatorUtil.goMyCustomerPage(context);  
173 - // } else {  
174 - // NavigatorUtil.goMyCustomerListPageSim(context);  
175 - // }  
176 - // } else {  
177 - // NavigatorUtil.goMyCustomerPage(context);  
178 - // }  
179 - // }  
180 - // } 135 + if (userModel.user?.role_name == '管理员' ||
  136 + userModel.user?.role_name == '店长') {
  137 + if (Utils.getAuthority(context, '全店客情')) {
  138 + if (widget.sellerNormalSpecial) {
  139 + //标准版
181 140
182 - if (Utils.getAuthority(context, '我的客情')) {  
183 - if (widget.sellerNormalSpecial) {  
184 - //标准版  
185 - if (widget.sellerPreserve ||  
186 - widget.sellerMarketing) {  
187 - NavigatorUtil.goMyCustomerPage(context); 141 + if (widget.sellerPreserve ||
  142 + widget.sellerMarketing) {
  143 + NavigatorUtil.goStoreCustomerPage(context);
  144 + } else {
  145 + NavigatorUtil.goCustomerListPageSim(context);
  146 + }
188 } else { 147 } else {
189 - NavigatorUtil.goMyCustomerListPageSim(context); 148 + NavigatorUtil.goStoreCustomerPage(context);
  149 + }
  150 + }
  151 + } else {
  152 + if (Utils.getAuthority(context, '我的客情')) {
  153 + if (widget.sellerNormalSpecial) {
  154 + //标准版
  155 + if (widget.sellerPreserve ||
  156 + widget.sellerMarketing) {
  157 + NavigatorUtil.goMyCustomerPage(context);
  158 + } else {
  159 + NavigatorUtil.goMyCustomerListPageSim(context);
  160 + }
  161 + } else {
  162 + NavigatorUtil.goMyCustomerPage(context);
190 } 163 }
191 - } else {  
192 - NavigatorUtil.goMyCustomerPage(context);  
193 } 164 }
194 } 165 }
  166 +
  167 + // if (Utils.getAuthority(context, '我的客情')) {
  168 + // if (widget.sellerNormalSpecial) {
  169 + // //标准版
  170 + // if (widget.sellerPreserve ||
  171 + // widget.sellerMarketing) {
  172 + // NavigatorUtil.goMyCustomerPage(context);
  173 + // } else {
  174 + // NavigatorUtil.goMyCustomerListPageSim(context);
  175 + // }
  176 + // } else {
  177 + // NavigatorUtil.goMyCustomerPage(context);
  178 + // }
  179 + // }
195 }, 180 },
196 child: Padding( 181 child: Padding(
197 padding: EdgeInsets.only( 182 padding: EdgeInsets.only(
@@ -202,7 +187,7 @@ class _CustomerHomePageState extends State<CustomerHomePage> { @@ -202,7 +187,7 @@ class _CustomerHomePageState extends State<CustomerHomePage> {
202 child: Row( 187 child: Row(
203 children: [ 188 children: [
204 Text( 189 Text(
205 - '我的客情', 190 + '客户列表',
206 style: TextStyle( 191 style: TextStyle(
207 color: MyColours.color_515151, 192 color: MyColours.color_515151,
208 fontSize: ScreenUtil().setWidth(32)), 193 fontSize: ScreenUtil().setWidth(32)),
@@ -224,42 +209,42 @@ class _CustomerHomePageState extends State<CustomerHomePage> { @@ -224,42 +209,42 @@ class _CustomerHomePageState extends State<CustomerHomePage> {
224 child: MyDivider(double.infinity, w(0.5), 209 child: MyDivider(double.infinity, w(0.5),
225 color: MyColours.color_E7E7E7)), 210 color: MyColours.color_E7E7E7)),
226 VEmptyView(24), 211 VEmptyView(24),
227 - // InkWell(  
228 - // onTap: () {  
229 - // // 212 + InkWell(
  213 + onTap: () {
  214 + //
230 215
231 - // NavigatorUtil.goCustomLabelPage(context);  
232 - // },  
233 - // child: Padding(  
234 - // padding: EdgeInsets.only(  
235 - // left: w(16),  
236 - // top: w(12),  
237 - // bottom: w(12),  
238 - // right: w(12)),  
239 - // child: Row(  
240 - // children: [  
241 - // Text(  
242 - // '客户自定义标签',  
243 - // style: TextStyle(  
244 - // color: MyColours.color_515151,  
245 - // fontSize: ScreenUtil().setWidth(32)),  
246 - // ),  
247 - // Spacer(),  
248 - // Container(  
249 - // padding: EdgeInsets.symmetric(  
250 - // horizontal: w(7), vertical: w(4)),  
251 - // child: Image.asset(  
252 - // "assets/arrow_right_new.png",  
253 - // width: ScreenUtil().setWidth(18),  
254 - // height: ScreenUtil().setWidth(32),  
255 - // ),  
256 - // )  
257 - // ],  
258 - // ))),  
259 - // Padding(  
260 - // padding: EdgeInsets.only(left: w(16)),  
261 - // child: MyDivider(double.infinity, w(0.5),  
262 - // color: MyColours.color_E7E7E7)), 216 + NavigatorUtil.goCustomLabelPage(context);
  217 + },
  218 + child: Padding(
  219 + padding: EdgeInsets.only(
  220 + left: w(16),
  221 + top: w(12),
  222 + bottom: w(12),
  223 + right: w(12)),
  224 + child: Row(
  225 + children: [
  226 + Text(
  227 + '客户自定义标签',
  228 + style: TextStyle(
  229 + color: MyColours.color_515151,
  230 + fontSize: ScreenUtil().setWidth(32)),
  231 + ),
  232 + Spacer(),
  233 + Container(
  234 + padding: EdgeInsets.symmetric(
  235 + horizontal: w(7), vertical: w(4)),
  236 + child: Image.asset(
  237 + "assets/arrow_right_new.png",
  238 + width: ScreenUtil().setWidth(18),
  239 + height: ScreenUtil().setWidth(32),
  240 + ),
  241 + )
  242 + ],
  243 + ))),
  244 + Padding(
  245 + padding: EdgeInsets.only(left: w(16)),
  246 + child: MyDivider(double.infinity, w(0.5),
  247 + color: MyColours.color_E7E7E7)),
263 ], 248 ],
264 ), 249 ),
265 )), 250 )),