Commit be14cefd39ab25d1109ab75fb7b3618f5d5d3269

Authored by weixin_45529955
1 parent a9fd3ffd

我的页面越界

... ... @@ -112,6 +112,8 @@ class _CustomerHomePageState extends State<CustomerHomePage> {
} else {
NavigatorUtil.goStoreCustomerPage(context);
}
} else {
Utils.showToast('您还没有操作权限,请联系管理员');
}
},
child: Padding(
... ...
... ... @@ -619,7 +619,7 @@ class MyPageState extends State<MyPage> with WidgetsBindingObserver {
),
child: Text(
'${model.user!.nickName} ${model.user!.role_name} >',
maxLines: 1,
maxLines: 2,
overflow: TextOverflow.ellipsis,
style: TextStyle(
letterSpacing: 0.2,
... ... @@ -640,8 +640,9 @@ class MyPageState extends State<MyPage> with WidgetsBindingObserver {
],
)),
HEmptyView(22),
Spacer(),
Column(
// Spacer(),
Expanded(
child: Column(
crossAxisAlignment: CrossAxisAlignment.end,
mainAxisAlignment: MainAxisAlignment.center,
children: [
... ... @@ -665,6 +666,8 @@ class MyPageState extends State<MyPage> with WidgetsBindingObserver {
// json.encode(user.toJson()));
// print(userModel.user);
setState(() {});
} else {
Utils.showToast('您还没有操作权限,请联系管理员!');
}
},
child: Container(
... ... @@ -672,7 +675,8 @@ class MyPageState extends State<MyPage> with WidgetsBindingObserver {
EdgeInsets.only(bottom: w(6)),
child: Text(
'${model.user!.sellername} >',
maxLines: 1,
maxLines: 2,
textAlign: TextAlign.end,
overflow: TextOverflow.ellipsis,
style: TextStyle(
letterSpacing: 0.2,
... ... @@ -723,7 +727,7 @@ class MyPageState extends State<MyPage> with WidgetsBindingObserver {
},
),
],
)
))
])),
),
Positioned(
... ...
... ... @@ -411,8 +411,11 @@ class MenuManageProvider extends ChangeNotifier {
.cast<CookbookCategorySunModel>();
categorySunModel!
.removeWhere((element) => element.classType == '1');
pageStateCategory = PageState.Success;
if (categorySunModel!.length == 0) {
pageStateCategory = PageState.Empty;
} else {
pageStateCategory = PageState.Success;
}
}
} else {
pageStateCategory = PageState.Empty;
... ...