
1.用户登录页面Entry Component struct TextInputDemo { build() { Column({ space: 30 }) { Text(用户登录) .fontSize(28) .fontWeight(FontWeight.Bold) TextInput({ placeholder: 请输入学号/手机号码 }) .width(320) .height(50) .backgroundColor(0xf5f5f5) .fontSize(20) .borderRadius(10) TextInput({ placeholder: 请输入密码 }) .type(InputType.Password) .width(320) .height(50) .backgroundColor(0xf5f5f5) .fontSize(20) .borderRadius(10) Row({ space: 20 }) { Button(登录) .height(50) .width(100) .fontSize(25) Button(注册) .height(50) .width(100) .fontSize(25) } } .width(100%) .height(100%) .justifyContent(FlexAlign.Center) .alignItems(HorizontalAlign.Center) } }效果图二、信息操作界面Entry Component struct ButtonDemo1{ build() { Column({space:30}){ //常见的用于登录、提交的按钮 Button(确认提交) .width(300) .height(50) .backgroundColor(0x007DFF) .fontSize(20) .borderRadius(8) //灰色按钮用于取消/返回使用 Row({space:10}){ Button(取消操作) .width(150) .height(50) .backgroundColor(0x999999) .fontSize(20) .borderRadius(8) Button(删除数据) .width(150) .height(50) .backgroundColor(Color.Red) .fontSize(20) .borderRadius(8) } } .height(100%) .width(100%) .justifyContent(FlexAlign.Center) } }三、个人信息Entry Component struct TextInputDemo { build() { Column({ space: 30 }) { Text(完善个人信息) .fontSize(28) .fontWeight(FontWeight.Bold) TextInput({ placeholder: 姓名 }) .width(320) .height(50) .backgroundColor(0xf5f5f5) .fontSize(20) .borderRadius(10) TextInput({ placeholder: 班级 }) .width(320) .height(50) .backgroundColor(0xf5f5f5) .fontSize(20) .borderRadius(10) TextInput({ placeholder: 联系方式 }) .width(320) .height(50) .backgroundColor(0xf5f5f5) .fontSize(20) .borderRadius(10) /* Row({ space: 20 }) { Button(确定) .height(50) .width(100) .fontSize(25) Button(注册) .height(50) .width(100) .fontSize(25) } */ } .width(100%) .height(100%) .justifyContent(FlexAlign.Center) .alignItems(HorizontalAlign.Center) } }四、注册界面Entry Component struct TextInputDemo { build() { Column({ space: 30 }) { Text(用户注册) .fontSize(28) .fontWeight(FontWeight.Bold) TextInput({ placeholder: 请输入学号/手机号码 }) .width(320) .height(50) .backgroundColor(0xf5f5f5) .fontSize(20) .borderRadius(10) TextInput({ placeholder: 请输入密码 }) .type(InputType.Password) .width(320) .height(50) .backgroundColor(0xf5f5f5) .fontSize(20) .borderRadius(10) TextInput({ placeholder: 请再次输入密码 }) .type(InputType.Password) .width(320) .height(50) .backgroundColor(0xf5f5f5) .fontSize(20) .borderRadius(10) } .width(100%) .height(100%) .justifyContent(FlexAlign.Start) .alignItems(HorizontalAlign.Center) } }五轮播展示import { radio } from kit.TelephonyKit Entry Component struct TextInputDemo { build() { Column({ space: 30 }) { Text(河北软件职业技术学院) .fontSize(28) .fontWeight(FontWeight.Bold) // 本地图片轮播 1.jpg ~ 5.jpg Swiper() { Image($r(app.media.1)).width(100%).height(200%).objectFit(ImageFit.Cover) Image($r(app.media.2)).width(100%).height(200%).objectFit(ImageFit.Cover) Image($r(app.media.3)).width(100%).height(200%).objectFit(ImageFit.Cover) Image($r(app.media.4)).width(100%).height(200%).objectFit(ImageFit.Cover) Image($r(app.media.5)).width(100%).height(200%).objectFit(ImageFit.Cover) } .width(100%) .height(180) .autoPlay(true) .loop(true) .interval(3000) .borderRadius(25) .shadow({radius:100,color:0xcccccc,offsetX:2,offsetY:2}) } .width(100%) .height(100%) .justifyContent(FlexAlign.Start) .alignItems(HorizontalAlign.Center) } }六、个人中心界面Entry Component struct UserCardDemo{ build() { Column({space:20}){ Text(欢迎来到我的个人中心) .fontSize(30) .fontWeight(FontWeight.Bolder) Row({space:20}){ Image($r(app.media.1)) .width(50%) .borderRadius(100) Text(QY-T) .width(30%) .fontSize(30) } .height(100) .width(100%) .padding({left:20}) } .width(100%) .height(100%) .justifyContent(FlexAlign.Center) .alignItems(HorizontalAlign.Center) } }八、个人简历Entry Component struct ResumePage { build() { Column() { Text(个人简历) .width(100%) .fontSize(25) .fontWeight(FontWeight.Bold) .textAlign(TextAlign.Center) .padding(15) .border({ width: 1, color: Color.Black }) Row() { Column() { Row() { Text(姓名QY-T) .fontSize(12) .width(46%) Text(性别男) .fontSize(12) .width(27%) Text(年龄20) .fontSize(12) .width(27%) } .width(100%) .padding(20) .border({ width: 1, color: Color.Black }).height(80) Row({space:10}) { Text(毕业学校河软) .fontSize(12) .width(40%) Text(专业计应) .fontSize(12) .width(27%) Text(学历博士) .fontSize(12) .width(27%) } .width(100%) .padding(12) .border({ width: 1, color: Color.Black }).height(80) } .width(70%) Image($r(app.media.1)) .width(30%) .height(160) .objectFit(ImageFit.Cover) .border({ width: 1, color: Color.Black }) } .width(100%) Row() { Text(电话888888888) .fontSize(12) .width(50%) .padding(20) .border({ width: 1, color: Color.Black }) Text(邮箱tuu123qq.com) .fontSize(12) .width(50%) .padding(20) .border({ width: 1, color: Color.Black }) } .width(100%) Column() { Text(个人简介) .fontSize(12) .fontWeight(FontWeight.Bold) .padding(15) Text( 计算机专业在校学生熟悉前端、鸿蒙ArkTS开发掌握SQL数据库、Web基础、计算机基础、python等等具备项目开发与团队协作经验热爱编程学习能力强。) .fontSize(12) .padding({ left:20, right:20, bottom:30 }) } .width(100%) .border({ width: 1, color: Color.Black }) Column() { Text(主修课程) .fontSize(12) .fontWeight(FontWeight.Bold) .padding(15) Text(计算机基础、数据库SQL、Web前端开发、鸿蒙应用开发、计算机网络、操作系统、数据结构) .fontSize(12) .padding({ left:20, right:20, bottom:30 }) } .width(100%) .border({ width: 1, color: Color.Black }) Column() { Text(求职意向) .fontSize(12) .fontWeight(FontWeight.Bold) .padding(15) Text(前端开发工程师 / 后端开发工程师 / 软件编程) .fontSize(12) .padding({ left:20, right:20, bottom:30 }) } .width(100%) .border({ width: 1, color: Color.Black }) Column() { Text(自我评价) .fontSize(12) .fontWeight(FontWeight.Bold) .padding(15) Text( 具备扎实计算机专业基础熟练使用ArkTS完成鸿蒙页面搭建拥有社团项目开发经验逻辑清晰善于沟通能快速学习新技术可独立完成基础功能开发愿意从基层岗位积累成长。) .fontSize(12) .padding({ left:20, right:20, bottom:30 }) } .width(100%) .border({ width: 1, color: Color.Black }) } .width(100%) .height(100%) .backgroundColor(0xF0F0F0) } }