27 lines
658 B
Dart
27 lines
658 B
Dart
import 'package:get/get.dart';
|
|
import 'package:wgshare/common/mixins/request_tool_mixin.dart';
|
|
|
|
import 'login_state.dart';
|
|
|
|
class LoginLogic extends GetxController with RequestToolMixin {
|
|
final LoginState state = LoginState();
|
|
|
|
/// 改变页面状态
|
|
void changePageState(int pageState){
|
|
state.pageState.value = pageState;
|
|
}
|
|
|
|
/// 改变勾选协议状态
|
|
void changeAgreementState(bool checkAgreementBool){
|
|
state.checkAgreementBool.value = checkAgreementBool;
|
|
}
|
|
|
|
@override
|
|
void dispose() {
|
|
super.dispose();
|
|
state.passwordFocus.dispose();
|
|
state.passwordController.dispose();
|
|
state.userNameController.dispose();
|
|
}
|
|
}
|