|
@Entry
|
@Component
|
export struct AboutPage {
|
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() {
|
Column({ space: 10 }) {
|
Image($r('app.media.logo'))
|
.width(60)
|
.height(60)
|
Text('学聘同行')
|
.fontSize(14)
|
.fontWeight(500)
|
.fontColor(Color.Black)
|
Text('当前版本 V2.1.2')
|
.fontSize(14)
|
.fontWeight(500)
|
.fontColor('#999999')
|
}
|
.width('100%')
|
.height('30%')
|
.padding({ top: 50 })
|
|
Column() {
|
Divider()
|
.margin({ bottom: 6 })
|
List({ space: 10, initialIndex: 0 }){
|
ListItem() {
|
Row() {
|
Text('检测更新')
|
.fontSize(14)
|
.fontWeight(500)
|
.layoutWeight(1)
|
Image($r('app.media.chevron_right'))
|
.width(12)
|
.height(12)
|
}
|
.width('100%')
|
.padding(8)
|
}
|
ListItem() {
|
Row() {
|
Text('去评分')
|
.fontSize(14)
|
.fontWeight(500)
|
.layoutWeight(1)
|
Image($r('app.media.chevron_right'))
|
.width(12)
|
.height(12)
|
}
|
.width('100%')
|
.padding(8)
|
}
|
ListItem() {
|
Row() {
|
Text('用户协议')
|
.fontSize(14)
|
.fontWeight(500)
|
.layoutWeight(1)
|
Image($r('app.media.chevron_right'))
|
.width(12)
|
.height(12)
|
}
|
.width('100%')
|
.padding(8)
|
}
|
ListItem() {
|
Row() {
|
Text('隐私政策')
|
.fontSize(14)
|
.fontWeight(500)
|
.layoutWeight(1)
|
Image($r('app.media.chevron_right'))
|
.width(12)
|
.height(12)
|
}
|
.width('100%')
|
.padding(8)
|
}
|
}
|
.listDirection(Axis.Vertical) // 排列方向
|
.scrollBar(BarState.Off)
|
.friction(0.6)
|
.edgeEffect(EdgeEffect.Spring)
|
.width('100%')
|
.divider({strokeWidth: 1,color: '#f0f0f0'})
|
}
|
.padding(16)
|
}
|
.padding({ top: 10 })
|
.width('100%')
|
.height('100%')
|
}
|
}
|
}
|