Commit 2cc885cbcf29c5c21ec598a15ee6b92c98af9e25

Authored by wdn127929
1 parent 70c65332

极速版

... ... @@ -15,6 +15,8 @@ class Constant {
// };
// static const bool simpleApp = true; //极速版
static const bool simpleApp = false; //标准版
static const Map<String, List<String>> authorityConfig = {
'充值短信': ['管理员', '店长', '客户经理', '收银员', '服务员', '前台'],
'有效期': ['管理员', '店长', '客户经理', '收银员', '服务员', '前台'],
... ...
... ... @@ -10,6 +10,7 @@ import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:fluwx/fluwx.dart' as fluwx;
import 'package:fluwx/fluwx.dart';
import 'package:one_key/app.dart';
import 'package:one_key/constant/constant.dart';
import 'package:one_key/models/checkbind_phone_model.dart';
import 'package:one_key/models/store_info.dart';
import 'package:one_key/net/dio_util.dart';
... ... @@ -28,6 +29,7 @@ import 'package:one_key/widgets/round_button.dart';
import 'package:one_key/widgets/v_empty_view.dart';
import 'package:provider/provider.dart';
import 'package:sign_in_with_apple/sign_in_with_apple.dart';
// import '../constant/constant.dart';
class LoginPage extends StatefulWidget {
@override
... ... @@ -141,7 +143,11 @@ class LoginState extends State<LoginPage> with WidgetsBindingObserver {
if (App.sp.getBool("isLogin") ?? false) {
Future.delayed(Duration(milliseconds: 200), () {
// NavigatorUtil.goHomePage(context);
NavigatorUtil.goHomePageSim(context);
if (Constant.simpleApp) {
NavigatorUtil.goHomePageSim(context);
} else {
NavigatorUtil.goHomePage(context);
}
});
} else {
_checkWechat();
... ... @@ -383,7 +389,6 @@ class LoginState extends State<LoginPage> with WidgetsBindingObserver {
// setState(() {
// // errorText = value ?? "";
// });
});
}
... ...
... ... @@ -213,8 +213,11 @@ class UserModel with ChangeNotifier {
App.sp.setBool("isLogin", true);
App.sp.setString("is_call_tel", seller['is_call_tel'].toString());
pullMarketingByUid(context);
// NavigatorUtil.goHomePage(context);
NavigatorUtil.goHomePageSim(context);
if (Constant.simpleApp) {
NavigatorUtil.goHomePageSim(context);
} else {
NavigatorUtil.goHomePage(context);
}
return null;
}
}
... ...