• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// @ts-nocheck
2/*
3 * Copyright (c) 2022 Huawei Device Co., Ltd.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 *     http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16import router from '@ohos.router';
17import { Header, User } from '../components/Header';
18
19@Entry
20@Component
21struct UserInfo {
22  private scroller: Scroller = new Scroller()
23
24  build() {
25    Scroll(this.scroller) {
26      Column() {
27        Header({ title: "个人信息" })
28        Column() {
29          User({ img: $r('app.media.personality3'), text: "头像", text2: "" })
30          User({ img: $r('app.media.personality3'), text: "名字", text2: "自己" })
31          User({ img: $r('app.media.personality3'), text: "拍一拍", text2: "的额头" })
32          User({ img: $r('app.media.personality3'), text: "聊天号", text2: "********" })
33          User({ img: $r('app.media.ic_public_code'), text: "我的二维码", text2: "" })
34          User({ img: $r('app.media.personality3'), text: "更多", text2: "" })
35          User({ img: $r('app.media.personality3'), text: "聊天豆", text2: "" })
36          User({ img: $r('app.media.personality3'), text: "我的地址", text2: "" })
37        }
38        .backgroundColor('#ffffff')
39        .width("100%")
40      }
41      .alignItems(HorizontalAlign.Center)
42      .width("100%")
43      .backgroundColor(0xDCDCDC)
44      .padding({ top: 5 })
45    }
46  }
47
48  pageTransition() {
49    PageTransitionEnter({ duration: 0 })
50    PageTransitionExit({ duration: 0 })
51  }
52}