Compare commits

..

No commits in common. '35d5816734ab14a19b559288cdfeb524f9be4a4c' and 'f439a5e1eefdb024593ef90e5391f64f3e78e743' have entirely different histories.

@ -19,6 +19,7 @@ class Loading extends StatefulWidget {
} }
class _LoadingState extends State<Loading> { class _LoadingState extends State<Loading> {
Future initialAll() async { Future initialAll() async {
await HiveStore.init(); await HiveStore.init();
} }
@ -31,10 +32,7 @@ class _LoadingState extends State<Loading> {
if (kDebugMode) { if (kDebugMode) {
print('env :$env'); print('env :$env');
} }
DevEV.instance.setEnvironment( DevEV.instance.setEnvironment( context, environment: env == 'dev',);
context,
environment: env == 'dev',
);
Future.delayed(const Duration(milliseconds: 1000), () async { Future.delayed(const Duration(milliseconds: 1000), () async {
await initialAll(); await initialAll();
if (!await userProvider.init()) { if (!await userProvider.init()) {
@ -53,16 +51,16 @@ class _LoadingState extends State<Loading> {
// //
return Scaffold( return Scaffold(
backgroundColor: Colors.white, backgroundColor: Colors.white,
body: Stack( body:Stack(
children: [ children: [
Positioned( Positioned(
bottom: 158.w, bottom: 158.w,
left: 143.w, left: 143.w,
child: Image.asset(Assets.images.start.path, child: Image.asset(
width: 434.sp, height: 148.sp, fit: BoxFit.fill), Assets.images.start.path,width:434.sp,height:148.sp , fit: BoxFit.fill),),
),
], ],
), ));
);
}
} }}

@ -134,6 +134,7 @@ class _LoginPageState extends State<LoginPage> {
} else { } else {
if (_lastTap != null && if (_lastTap != null &&
DateTime.now().difference(_lastTap!).inSeconds < 2) { DateTime.now().difference(_lastTap!).inSeconds < 2) {
// BotToast.showText(text: "过快");
return; return;
} }
_lastTap = DateTime.now(); _lastTap = DateTime.now();
@ -142,7 +143,10 @@ class _LoginPageState extends State<LoginPage> {
'code': _smsCodeController.text 'code': _smsCodeController.text
}); });
if (base.code == 0) { if (base.code == 0) {
print("123123${base.data['token']}");
await UserTool.userProvider.setToken(base.data['token']); await UserTool.userProvider.setToken(base.data['token']);
// print(a);
// print("4567899");
Get.offAll(const TabNavigator()); Get.offAll(const TabNavigator());
} else { } else {
CloudToast.show(base.msg); CloudToast.show(base.msg);

@ -119,7 +119,7 @@ _getVip() {
TextSpan( TextSpan(
children: [ children: [
TextSpan( TextSpan(
text: "07", text: "03",
style: TextStyle( style: TextStyle(
color: const Color(0xFFFFEAB0), color: const Color(0xFFFFEAB0),
fontSize: 56.sp, fontSize: 56.sp,

Loading…
Cancel
Save