更新分享
This commit is contained in:
@@ -5,6 +5,7 @@ import 'package:ef/ef.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_svg/svg.dart';
|
||||
import 'package:flutterflow_ui/flutterflow_ui.dart';
|
||||
import 'package:get_storage/get_storage.dart';
|
||||
import 'package:vbvs_app/common/color/appConstants.dart';
|
||||
import 'package:vbvs_app/common/color/app_uri_status.dart';
|
||||
import 'package:vbvs_app/common/util/DailyLogUtils.dart';
|
||||
@@ -442,9 +443,8 @@ class _OtherLoginPageState extends State<OtherLoginPage> {
|
||||
return InkWell(
|
||||
onTap: () async {
|
||||
try {
|
||||
await DailyLogUtils
|
||||
.writeLog(
|
||||
"点击获取验证码");
|
||||
DailyLogUtils.writeLog(
|
||||
"点击获取验证码");
|
||||
if (countdownController
|
||||
.countdown
|
||||
.value !=
|
||||
@@ -457,7 +457,8 @@ class _OtherLoginPageState extends State<OtherLoginPage> {
|
||||
.getCode(
|
||||
context);
|
||||
if (apiResponse.code !=
|
||||
HttpStatusCodes.ok) {
|
||||
HttpStatusCodes
|
||||
.ok) {
|
||||
TopSlideNotification
|
||||
.show(
|
||||
context,
|
||||
@@ -551,7 +552,7 @@ class _OtherLoginPageState extends State<OtherLoginPage> {
|
||||
.button_container_radius, // 圆角半径
|
||||
onTap: () async {
|
||||
try {
|
||||
await DailyLogUtils.writeLog("点击登录");
|
||||
DailyLogUtils.writeLog("点击登录");
|
||||
bool agree =
|
||||
loginController.model.register_agree!;
|
||||
if (!agree) {
|
||||
@@ -565,7 +566,8 @@ class _OtherLoginPageState extends State<OtherLoginPage> {
|
||||
ApiResponse apiResponse =
|
||||
await loginController
|
||||
.login(context);
|
||||
if (apiResponse.code != HttpStatusCodes.ok) {
|
||||
if (apiResponse.code !=
|
||||
HttpStatusCodes.ok) {
|
||||
TopSlideNotification.show(
|
||||
context,
|
||||
text: apiResponse.msg!,
|
||||
@@ -580,7 +582,9 @@ class _OtherLoginPageState extends State<OtherLoginPage> {
|
||||
textColor: themeController
|
||||
.currentColor.sc2,
|
||||
);
|
||||
Get.offAllNamed('/homePage');
|
||||
// Get.offAllNamed('/homePage');
|
||||
Get.offAllNamed(
|
||||
"/mianPageBottomChange");
|
||||
}
|
||||
}
|
||||
} catch (e) {
|
||||
|
||||
Reference in New Issue
Block a user