Showing
1 changed file
with
50 additions
and
35 deletions
| @@ -224,42 +224,57 @@ class _CustomerHomePageState extends State<CustomerHomePage> { | @@ -224,42 +224,57 @@ class _CustomerHomePageState extends State<CustomerHomePage> { | ||
| 224 | child: MyDivider(double.infinity, w(0.5), | 224 | child: MyDivider(double.infinity, w(0.5), |
| 225 | color: MyColours.color_E7E7E7)), | 225 | color: MyColours.color_E7E7E7)), |
| 226 | VEmptyView(24), | 226 | VEmptyView(24), |
| 227 | - // InkWell( | ||
| 228 | - // onTap: () { | ||
| 229 | - // // | 227 | + InkWell( |
| 228 | + onTap: () { | ||
| 229 | + // | ||
| 230 | + | ||
| 231 | + if (Utils.getAuthority(context, '全店客情')) { | ||
| 232 | + if (widget.sellerNormalSpecial) { | ||
| 233 | + //标准版 | ||
| 230 | 234 | ||
| 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)), | 235 | + if (widget.sellerPreserve || |
| 236 | + widget.sellerMarketing) { | ||
| 237 | + NavigatorUtil.goCustomLabelPage(context); | ||
| 238 | + } else { | ||
| 239 | + NavigatorUtil.goCustomLabelPage(context); | ||
| 240 | + } | ||
| 241 | + } else { | ||
| 242 | + NavigatorUtil.goCustomLabelPage(context); | ||
| 243 | + } | ||
| 244 | + } else { | ||
| 245 | + Utils.showToast('您还没有操作权限,请联系管理员'); | ||
| 246 | + } | ||
| 247 | + }, | ||
| 248 | + child: Padding( | ||
| 249 | + padding: EdgeInsets.only( | ||
| 250 | + left: w(16), | ||
| 251 | + top: w(12), | ||
| 252 | + bottom: w(12), | ||
| 253 | + right: w(12)), | ||
| 254 | + child: Row( | ||
| 255 | + children: [ | ||
| 256 | + Text( | ||
| 257 | + '客户自定义标签', | ||
| 258 | + style: TextStyle( | ||
| 259 | + color: MyColours.color_515151, | ||
| 260 | + fontSize: ScreenUtil().setWidth(32)), | ||
| 261 | + ), | ||
| 262 | + Spacer(), | ||
| 263 | + Container( | ||
| 264 | + padding: EdgeInsets.symmetric( | ||
| 265 | + horizontal: w(7), vertical: w(4)), | ||
| 266 | + child: Image.asset( | ||
| 267 | + "assets/arrow_right_new.png", | ||
| 268 | + width: ScreenUtil().setWidth(18), | ||
| 269 | + height: ScreenUtil().setWidth(32), | ||
| 270 | + ), | ||
| 271 | + ) | ||
| 272 | + ], | ||
| 273 | + ))), | ||
| 274 | + Padding( | ||
| 275 | + padding: EdgeInsets.only(left: w(16)), | ||
| 276 | + child: MyDivider(double.infinity, w(0.5), | ||
| 277 | + color: MyColours.color_E7E7E7)), | ||
| 263 | ], | 278 | ], |
| 264 | ), | 279 | ), |
| 265 | )), | 280 | )), |
-
Please register or login to post a comment