Browse Source

商家端跳转更改

wr_2023_business
zsw 1 year ago
parent
commit
19b8475ba5
  1. 4
      lib/business_system/login/business_login_page.dart
  2. 4
      lib/mine/mine_view/mine_item.dart

4
lib/business_system/login/business_login_page.dart

@ -103,13 +103,13 @@ class _BusinessLoginPage extends State<BusinessLoginPage> {
sharedPreferences.setString('identitySwitch', "1"); sharedPreferences.setString('identitySwitch', "1");
if (businessLoginInfo.storeList.length > 1) { if (businessLoginInfo.storeList.length > 1) {
Navigator.of(context) Navigator.of(context)
.popAndPushNamed('/router/select_shop', arguments: { .pushReplacementNamed('/router/select_shop', arguments: {
"businessLoginInfo": businessLoginInfo, "businessLoginInfo": businessLoginInfo,
"routeSource":"登录", "routeSource":"登录",
}); });
} else { } else {
Navigator.of(context) Navigator.of(context)
.popAndPushNamed('/router/business_page', arguments: {"businessLoginInfo": businessLoginInfo}); .pushReplacementNamed('/router/business_page', arguments: {"businessLoginInfo": businessLoginInfo});
} }
} else { } else {
if (baseData.msg != null) if (baseData.msg != null)

4
lib/mine/mine_view/mine_item.dart

@ -53,12 +53,12 @@ class _MineItem extends State<MineItem> {
sharedPreferences.setString('identitySwitch', "1"); sharedPreferences.setString('identitySwitch', "1");
if (businessLoginInfo.storeList.length > 1) { if (businessLoginInfo.storeList.length > 1) {
Navigator.of(context) Navigator.of(context)
.popAndPushNamed('/router/select_shop', arguments: { .pushReplacementNamed('/router/select_shop', arguments: {
"businessLoginInfo": businessLoginInfo, "businessLoginInfo": businessLoginInfo,
}); });
} else { } else {
Navigator.of(context) Navigator.of(context)
.popAndPushNamed('/router/business_page', arguments: { .pushReplacementNamed('/router/business_page', arguments: {
"businessLoginInfo": businessLoginInfo, "businessLoginInfo": businessLoginInfo,
}); });
} }

Loading…
Cancel
Save