From 7f2343d38fa048f6ce179ea0ab2c1a04f41a213c Mon Sep 17 00:00:00 2001 From: wwf <1971391498@qq.com> Date: 星期四, 09 十月 2025 18:05:11 +0800 Subject: [PATCH] 功能完善 --- entry/src/main/ets/pages/account/UserInfoPage.ets | 115 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 115 insertions(+), 0 deletions(-) diff --git a/entry/src/main/ets/pages/account/UserInfoPage.ets b/entry/src/main/ets/pages/account/UserInfoPage.ets new file mode 100644 index 0000000..fe4f735 --- /dev/null +++ b/entry/src/main/ets/pages/account/UserInfoPage.ets @@ -0,0 +1,115 @@ +@Entry +@Component +export struct UserInfo { + @State nickName: string = '' + @State gender: string = '' + @State age: string = '' + @State preferJob: string = '' + @State job: string = '' + @State introduce: string = '' + + build() { + Column() { + Row() { + Image($r('app.media.left_icon')) + .width(20) + .height(20) + Text('涓汉淇℃伅') + .fontSize(18) + .fontWeight(700) + Row() + } + .width('100%') + .padding(10) + .justifyContent(FlexAlign.SpaceBetween) + + Divider() + + Column({ space: 14 }) { + Column() { + Text(`鏄电О`) + .fontSize(14) + .fontColor('#666666') + .width('100%') + TextInput({ placeholder: '璇疯緭鍏�', text: this.nickName }) + .placeholderFont({ size: 14 }) + .showUnderline(true) + .margin({ top: -6 }) + } + + Column() { + Text(`鎬у埆`) + .fontSize(14) + .fontColor('#666666') + .width('100%') + TextInput({ placeholder: '璇疯緭鍏�', text: this.gender }) + .placeholderFont({ size: 14 }) + .showUnderline(true) + .margin({ top: -6 }) + } + + Column() { + Text(`骞撮緞`) + .fontSize(14) + .fontColor('#666666') + .width('100%') + TextInput({ placeholder: '璇疯緭鍏�', text: this.age }) + .placeholderFont({ size: 14 }) + .showUnderline(true) + .margin({ top: -6 }) + } + + Column() { + Text(`鑱屼笟`) + .fontSize(14) + .fontColor('#666666') + .width('100%') + TextInput({ placeholder: '璇疯緭鍏�', text: this.job }) + .placeholderFont({ size: 14 }) + .showUnderline(true) + .margin({ top: -6 }) + } + + Column() { + Text(`蹇冧华鑱屼笟`) + .fontSize(14) + .fontColor('#666666') + .width('100%') + TextInput({ placeholder: '璇疯緭鍏�', text: this.preferJob }) + .placeholderFont({ size: 14 }) + .showUnderline(true) + .margin({ top: -6 }) + } + + Column() { + Text(`涓汉绠�浠媊) + .fontColor('#666666') + .fontSize(14) + .width('100%') + TextArea({ placeholder: '浠嬬粛涓�涓嬩綘鑷繁鍚', text: this.job }) + .placeholderFont({ size: 14 }) + .backgroundColor('#fff') + .border({ width: 1, color: '#666666' }) + .borderRadius(5) + .minLines(10) + .maxLength(200) + .showCounter(true) + .margin({ top: 10 }) + } + + Button('淇濆瓨') + .fontSize(14) + .height(36) + .type(ButtonType.Normal) + .borderRadius(6) + .width('100%') + .fontColor(Color.White) + .backgroundColor('#1761f4') + + } + .height('100%') + .width('100%') + .padding(16) + } + } +} \ No newline at end of file -- Gitblit v1.8.0