18779efd5Sopenharmony_ci/** 28779efd5Sopenharmony_ci * Copyright (c) 2022 Huawei Device Co., Ltd. 38779efd5Sopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License"); 48779efd5Sopenharmony_ci * you may not use this file except in compliance with the License. 58779efd5Sopenharmony_ci * You may obtain a copy of the License at 68779efd5Sopenharmony_ci * 78779efd5Sopenharmony_ci * http://www.apache.org/licenses/LICENSE-2.0 88779efd5Sopenharmony_ci * 98779efd5Sopenharmony_ci * Unless required by applicable law or agreed to in writing, software 108779efd5Sopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS, 118779efd5Sopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 128779efd5Sopenharmony_ci * See the License for the specific language governing permissions and 138779efd5Sopenharmony_ci * limitations under the License. 148779efd5Sopenharmony_ci */ 158779efd5Sopenharmony_ci 168779efd5Sopenharmony_ciimport CallRecordPresenter from '../../presenter/dialer/callRecord/CallRecordPresenter' 178779efd5Sopenharmony_ci 188779efd5Sopenharmony_ci@Component 198779efd5Sopenharmony_ciexport struct DialerInitialPage { 208779efd5Sopenharmony_ci @State mPresenter: CallRecordPresenter = CallRecordPresenter.getInstance(); 218779efd5Sopenharmony_ci 228779efd5Sopenharmony_ci aboutToAppear() { 238779efd5Sopenharmony_ci this.mPresenter.aboutToAppear(); 248779efd5Sopenharmony_ci } 258779efd5Sopenharmony_ci 268779efd5Sopenharmony_ci build() { 278779efd5Sopenharmony_ci Column() { 288779efd5Sopenharmony_ci Text($r('app.string.support_pinyin')) 298779efd5Sopenharmony_ci .fontSize($r('sys.float.ohos_id_text_size_body1')) 308779efd5Sopenharmony_ci .fontColor($r('sys.color.ohos_id_color_text_tertiary')) 318779efd5Sopenharmony_ci .textAlign(TextAlign.Center) 328779efd5Sopenharmony_ci .fontWeight(FontWeight.Medium) 338779efd5Sopenharmony_ci .margin({ bottom: $r('app.float.id_card_margin_xxl') }) 348779efd5Sopenharmony_ci 358779efd5Sopenharmony_ci Row() { 368779efd5Sopenharmony_ci Text($r('app.string.search_huaxiaofen')) 378779efd5Sopenharmony_ci .fontSize($r('sys.float.ohos_id_text_size_body2')) 388779efd5Sopenharmony_ci .fontColor($r('sys.color.ohos_id_color_text_tertiary')) 398779efd5Sopenharmony_ci .textAlign(TextAlign.Center) 408779efd5Sopenharmony_ci .fontWeight(FontWeight.Regular) 418779efd5Sopenharmony_ci 428779efd5Sopenharmony_ci Text('H') 438779efd5Sopenharmony_ci .fontSize($r('sys.float.ohos_id_text_size_body2')) 448779efd5Sopenharmony_ci .fontColor($r('sys.color.ohos_id_color_connected')) 458779efd5Sopenharmony_ci .textAlign(TextAlign.Center) 468779efd5Sopenharmony_ci .fontWeight(FontWeight.Regular) 478779efd5Sopenharmony_ci 488779efd5Sopenharmony_ci Text('ua ') 498779efd5Sopenharmony_ci .fontSize($r('sys.float.ohos_id_text_size_body2')) 508779efd5Sopenharmony_ci .fontColor($r('sys.color.ohos_id_color_text_tertiary')) 518779efd5Sopenharmony_ci .textAlign(TextAlign.Center) 528779efd5Sopenharmony_ci .fontWeight(FontWeight.Regular) 538779efd5Sopenharmony_ci 548779efd5Sopenharmony_ci Text('X') 558779efd5Sopenharmony_ci .fontSize($r('sys.float.ohos_id_text_size_body2')) 568779efd5Sopenharmony_ci .fontColor($r('sys.color.ohos_id_color_connected')) 578779efd5Sopenharmony_ci .textAlign(TextAlign.Center) 588779efd5Sopenharmony_ci .fontWeight(FontWeight.Regular) 598779efd5Sopenharmony_ci 608779efd5Sopenharmony_ci Text('iao ') 618779efd5Sopenharmony_ci .fontSize($r('sys.float.ohos_id_text_size_body2')) 628779efd5Sopenharmony_ci .fontColor($r('sys.color.ohos_id_color_text_tertiary')) 638779efd5Sopenharmony_ci .textAlign(TextAlign.Center) 648779efd5Sopenharmony_ci .fontWeight(FontWeight.Regular) 658779efd5Sopenharmony_ci 668779efd5Sopenharmony_ci Text('F') 678779efd5Sopenharmony_ci .fontSize($r('sys.float.ohos_id_text_size_body2')) 688779efd5Sopenharmony_ci .fontColor($r('sys.color.ohos_id_color_connected')) 698779efd5Sopenharmony_ci .textAlign(TextAlign.Center) 708779efd5Sopenharmony_ci .fontWeight(FontWeight.Regular) 718779efd5Sopenharmony_ci 728779efd5Sopenharmony_ci Text($r('app.string.you_can_enter')) 738779efd5Sopenharmony_ci .fontSize($r('sys.float.ohos_id_text_size_body2')) 748779efd5Sopenharmony_ci .fontColor($r('sys.color.ohos_id_color_text_tertiary')) 758779efd5Sopenharmony_ci .textAlign(TextAlign.Center) 768779efd5Sopenharmony_ci .fontWeight(FontWeight.Regular) 778779efd5Sopenharmony_ci } 788779efd5Sopenharmony_ci .margin({ bottom: $r('app.float.id_card_margin_xxl') }) 798779efd5Sopenharmony_ci 808779efd5Sopenharmony_ci Flex({ direction: FlexDirection.Row, 818779efd5Sopenharmony_ci justifyContent: FlexAlign.SpaceEvenly, 828779efd5Sopenharmony_ci alignItems: ItemAlign.Start }) { 838779efd5Sopenharmony_ci Column() { 848779efd5Sopenharmony_ci Text('4') 858779efd5Sopenharmony_ci .fontSize($r('sys.float.ohos_id_text_size_headline8')) 868779efd5Sopenharmony_ci .fontColor($r('sys.color.ohos_id_color_text_secondary')) 878779efd5Sopenharmony_ci .fontWeight(FontWeight.Regular) 888779efd5Sopenharmony_ci 898779efd5Sopenharmony_ci Row() { 908779efd5Sopenharmony_ci Text('G') 918779efd5Sopenharmony_ci .fontSize($r('sys.float.ohos_id_text_size_body2')) 928779efd5Sopenharmony_ci .fontColor($r('sys.color.ohos_id_color_text_tertiary')) 938779efd5Sopenharmony_ci .fontWeight(FontWeight.Regular) 948779efd5Sopenharmony_ci 958779efd5Sopenharmony_ci Text('H') 968779efd5Sopenharmony_ci .fontSize($r('sys.float.ohos_id_text_size_body2')) 978779efd5Sopenharmony_ci .fontColor($r('sys.color.ohos_id_color_connected')) 988779efd5Sopenharmony_ci .fontWeight(FontWeight.Regular) 998779efd5Sopenharmony_ci 1008779efd5Sopenharmony_ci Text('I') 1018779efd5Sopenharmony_ci .fontSize($r('sys.float.ohos_id_text_size_body2')) 1028779efd5Sopenharmony_ci .fontColor($r('sys.color.ohos_id_color_text_tertiary')) 1038779efd5Sopenharmony_ci .fontWeight(FontWeight.Regular) 1048779efd5Sopenharmony_ci } 1058779efd5Sopenharmony_ci } 1068779efd5Sopenharmony_ci 1078779efd5Sopenharmony_ci Text('+') 1088779efd5Sopenharmony_ci .fontSize($r('sys.float.ohos_id_text_size_body1')) 1098779efd5Sopenharmony_ci .fontColor($r('sys.color.ohos_id_color_text_secondary')) 1108779efd5Sopenharmony_ci .fontWeight(FontWeight.Regular) 1118779efd5Sopenharmony_ci 1128779efd5Sopenharmony_ci Column() { 1138779efd5Sopenharmony_ci Text('9') 1148779efd5Sopenharmony_ci .fontSize($r('sys.float.ohos_id_text_size_headline8')) 1158779efd5Sopenharmony_ci .fontColor($r('sys.color.ohos_id_color_text_secondary')) 1168779efd5Sopenharmony_ci .fontWeight(FontWeight.Regular) 1178779efd5Sopenharmony_ci 1188779efd5Sopenharmony_ci Row() { 1198779efd5Sopenharmony_ci Text('W') 1208779efd5Sopenharmony_ci .fontSize($r('sys.float.ohos_id_text_size_body2')) 1218779efd5Sopenharmony_ci .fontColor($r('sys.color.ohos_id_color_text_tertiary')) 1228779efd5Sopenharmony_ci .fontWeight(FontWeight.Regular) 1238779efd5Sopenharmony_ci 1248779efd5Sopenharmony_ci Text('X') 1258779efd5Sopenharmony_ci .fontSize($r('sys.float.ohos_id_text_size_body2')) 1268779efd5Sopenharmony_ci .fontColor($r('sys.color.ohos_id_color_connected')) 1278779efd5Sopenharmony_ci .fontWeight(FontWeight.Regular) 1288779efd5Sopenharmony_ci 1298779efd5Sopenharmony_ci Text('YZ') 1308779efd5Sopenharmony_ci .fontSize($r('sys.float.ohos_id_text_size_body2')) 1318779efd5Sopenharmony_ci .fontColor($r('sys.color.ohos_id_color_text_tertiary')) 1328779efd5Sopenharmony_ci .fontWeight(FontWeight.Regular) 1338779efd5Sopenharmony_ci } 1348779efd5Sopenharmony_ci } 1358779efd5Sopenharmony_ci 1368779efd5Sopenharmony_ci Text('+') 1378779efd5Sopenharmony_ci .fontSize($r('sys.float.ohos_id_text_size_body1')) 1388779efd5Sopenharmony_ci .fontColor($r('sys.color.ohos_id_color_text_secondary')) 1398779efd5Sopenharmony_ci .fontWeight(FontWeight.Regular) 1408779efd5Sopenharmony_ci 1418779efd5Sopenharmony_ci Column() { 1428779efd5Sopenharmony_ci Text('3') 1438779efd5Sopenharmony_ci .fontSize($r('sys.float.ohos_id_text_size_headline8')) 1448779efd5Sopenharmony_ci .fontColor($r('sys.color.ohos_id_color_text_secondary')) 1458779efd5Sopenharmony_ci .fontWeight(FontWeight.Regular) 1468779efd5Sopenharmony_ci 1478779efd5Sopenharmony_ci Row() { 1488779efd5Sopenharmony_ci Text('DE') 1498779efd5Sopenharmony_ci .fontSize($r('sys.float.ohos_id_text_size_body2')) 1508779efd5Sopenharmony_ci .fontColor($r('sys.color.ohos_id_color_text_tertiary')) 1518779efd5Sopenharmony_ci .fontWeight(FontWeight.Regular) 1528779efd5Sopenharmony_ci 1538779efd5Sopenharmony_ci Text('F') 1548779efd5Sopenharmony_ci .fontSize($r('sys.float.ohos_id_text_size_body2')) 1558779efd5Sopenharmony_ci .fontColor($r('sys.color.ohos_id_color_connected')) 1568779efd5Sopenharmony_ci .fontWeight(FontWeight.Regular) 1578779efd5Sopenharmony_ci } 1588779efd5Sopenharmony_ci } 1598779efd5Sopenharmony_ci } 1608779efd5Sopenharmony_ci .padding({ left: $r('app.float.id_item_height_max'), right: $r('app.float.id_item_height_max') }) 1618779efd5Sopenharmony_ci } 1628779efd5Sopenharmony_ci .width('100%') 1638779efd5Sopenharmony_ci .height('100%') 1648779efd5Sopenharmony_ci .alignItems(HorizontalAlign.Center) 1658779efd5Sopenharmony_ci .backgroundColor($r('sys.color.ohos_id_color_primary_contrary')) 1668779efd5Sopenharmony_ci .markAnchor({ x: 0, y: 60 }) 1678779efd5Sopenharmony_ci .position({ x: 0, y: '40%' }) 1688779efd5Sopenharmony_ci } 1698779efd5Sopenharmony_ci}