wwf
3 天以前 23fa268f56dcd99c8dcd46f50f3ffcaa4cdcbc49
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
import { router } from "@kit.ArkUI"
 
@Entry
@Component
struct AboutPage {
  build() {
    Column() {
      Row() {
        Image($r('app.media.left_icon'))
          .width(20)
          .height(20)
          .onClick(() => {
            router.back()
          })
        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%')
    }
  }
}