Browse Source

对齐数据

master
王子贤 2 months ago
parent
commit
e61737e7f3
2 changed files with 8 additions and 5 deletions
  1. 10
      lib/controller/mine/user_info_controller.dart
  2. 3
      lib/pages/mine/user_info_page.dart

10
lib/controller/mine/user_info_controller.dart

@ -28,10 +28,12 @@ class UserInfoController extends GetxController {
// GetStorage实例 // GetStorage实例
final storage = GetStorage(); final storage = GetStorage();
Map<String, String> educationCodeMap = { Map<String, String> educationCodeMap = {
'大专以下': '0',
'大专': '1',
'本科': '2',
'硕士及以上': '3',
'高中及以下': '0',
'中专': '1',
'大专': '2',
'本科': '3',
'硕士': '4',
'博士': '5',
}; };
// UserApi实例 // UserApi实例
late UserApi _userApi; late UserApi _userApi;

3
lib/pages/mine/user_info_page.dart

@ -83,10 +83,11 @@ class _UserInfoState extends State<UserInfoPage> {
// //
Future _showEducationPicker(UserInfoController controller) async { Future _showEducationPicker(UserInfoController controller) async {
final List<String> educationOptions = ['大专以下', '大专', '本科', '硕士及以上'];
final List<String> educationOptions = ['高中及以下', "中专", '大专', '本科', '硕士', "博士"];
await showModalBottomSheet( await showModalBottomSheet(
context: Get.context!, context: Get.context!,
isScrollControlled: true,
shape: const RoundedRectangleBorder( shape: const RoundedRectangleBorder(
borderRadius: BorderRadius.only( borderRadius: BorderRadius.only(
topLeft: Radius.circular(8), topLeft: Radius.circular(8),

Loading…
Cancel
Save