Browse Source

no message

ios
ZHR007 4 months ago
parent
commit
d80c9a4d8b
4 changed files with 14 additions and 4 deletions
  1. 11
      lib/components/page_appbar.dart
  2. 3
      lib/controller/mine/user_info_controller.dart
  3. 2
      lib/model/mine/user_data.dart
  4. 2
      lib/pages/mine/phone_page.dart

11
lib/components/page_appbar.dart

@ -5,10 +5,10 @@ class PageAppbar extends StatelessWidget implements PreferredSizeWidget {
final Color? backgroundColor;
final Color? color;
final bool? bottom;
final String title;
final Widget? right;
const PageAppbar({super.key, required this.title, this.backgroundColor, this.color, this.right});
const PageAppbar({super.key, required this.title, this.backgroundColor, this.color, this.right, this.bottom});
@override
Widget build(BuildContext context) {
@ -26,6 +26,13 @@ class PageAppbar extends StatelessWidget implements PreferredSizeWidget {
color: const Color.fromRGBO(51, 51, 51, 1)
),
),
bottom: (bottom != null && bottom!) ? PreferredSize(
preferredSize: Size.fromHeight(0.5),
child: Container(
color: Colors.grey[300],
height: 0.5,
),
) : null,
);
}
@override

3
lib/controller/mine/user_info_controller.dart

@ -281,6 +281,9 @@ class UserInfoController extends GetxController {
//
GlobalData().userData!.id = miId;
final genderCode = gender.value == 'male' ? 0 : 1;// 1:, 2:
GlobalData().userData!.genderCode = genderCode;
GlobalData().userData!.nickName = nickname.value;
GlobalData().userData!.profilePhoto = avatarUrl.value;
GlobalData().userData!.education = education.value;

2
lib/model/mine/user_data.dart

@ -5,7 +5,7 @@ class UserData {
final String? name;
String? profilePhoto;
String? identityCard;
final int? genderCode;
int? genderCode;
final String? genderValue;
final String? homeCountryCode;
final String? homeCountry;

2
lib/pages/mine/phone_page.dart

@ -14,7 +14,7 @@ class PhonePage extends StatelessWidget {
Widget build(BuildContext context) {
return Scaffold(
backgroundColor: Color(0xffFFFFFF),
appBar: PageAppbar(title: "手机认证"),
appBar: PageAppbar(title: "手机认证", bottom: true),
body: Obx(() {
return IndexedStack(
index: controller.tabIndex.value,

Loading…
Cancel
Save