From 512f7e60d55800b913e37e8dd4afc6eeb7ec10b0 Mon Sep 17 00:00:00 2001 From: liyufan Date: Thu, 18 Apr 2024 19:44:25 +0800 Subject: [PATCH] del unusing code Signed-off-by: liyufan --- entry/src/main/ets/pages/index.ets | 1 - entry/src/main/ets/utils/DateUtil.ets | 2 -- entry/src/main/ets/views/MmsListItem.ets | 2 -- entry/src/main/ets/views/receive/receive.ets | 7 ------- entry/src/main/ets/views/receive/receiveController.ets | 4 ---- 5 files changed, 16 deletions(-) diff --git a/entry/src/main/ets/pages/index.ets b/entry/src/main/ets/pages/index.ets index 6a3760c..4889cfa 100644 --- a/entry/src/main/ets/pages/index.ets +++ b/entry/src/main/ets/pages/index.ets @@ -131,7 +131,6 @@ struct Index { } } .height('100%') -// .margin({ left: this.gridMargin, right: this.gridMargin }) } .padding({ left: this.gridMargin, right: this.gridMargin }) .width("100%") diff --git a/entry/src/main/ets/utils/DateUtil.ets b/entry/src/main/ets/utils/DateUtil.ets index e2eb120..067963b 100644 --- a/entry/src/main/ets/utils/DateUtil.ets +++ b/entry/src/main/ets/utils/DateUtil.ets @@ -225,8 +225,6 @@ export default { let dayOfSms = sms.getDate(); let weekOfSms = sms.getDay(); date = $r("app.string.yearMonthDayDate", yearOfSms, monthOfSms, dayOfSms, ''); - // let time = this.convertTimeStampTime(timeStampFromDb, false); - // return date + " " + time; return date; }, diff --git a/entry/src/main/ets/views/MmsListItem.ets b/entry/src/main/ets/views/MmsListItem.ets index 8b35d90..6da6939 100644 --- a/entry/src/main/ets/views/MmsListItem.ets +++ b/entry/src/main/ets/views/MmsListItem.ets @@ -163,8 +163,6 @@ export struct MmsListItem { .height("20vp") .selectedColor($r("sys.color.ohos_id_color_activated")) .hitTestBehavior(HitTestMode.None) - // .enabled(false) - // .margin({ right: -14 }) } } .alignItems(VerticalAlign.Center) diff --git a/entry/src/main/ets/views/receive/receive.ets b/entry/src/main/ets/views/receive/receive.ets index 54a4631..ac4b8ba 100644 --- a/entry/src/main/ets/views/receive/receive.ets +++ b/entry/src/main/ets/views/receive/receive.ets @@ -154,13 +154,6 @@ export struct Receive { Column() { // Indicates whether to display the recent contact list. if (this.mReceiveController.isShowSearch && this.mReceiveController.contacts.length > 0) { - // Flex({ alignItems: ItemAlign.Center, justifyContent: FlexAlign.Start }) { - // Text("最近联系人") - // .fontSize(16) - // .fontColor($r("sys.color.ohos_id_color_text_tertiary")) - // .fontWeight(FontWeight.Regular) - // } - // .height(48) // List area List({ space: 0, initialIndex: 0 }) { ForEach(this.mReceiveController.contacts, (item, index) => { diff --git a/entry/src/main/ets/views/receive/receiveController.ets b/entry/src/main/ets/views/receive/receiveController.ets index 380c8b3..22c471a 100644 --- a/entry/src/main/ets/views/receive/receiveController.ets +++ b/entry/src/main/ets/views/receive/receiveController.ets @@ -57,7 +57,6 @@ export default class ReceiveController { onInit(call) { HiLog.i(TAG, "onInit()") - // this.$watch("paramContact", "onPropertyChange"); this.selectContacts = this.commonCtrl.paramContact.transmitContacts; if (this.selectContacts.length > 0) { let that = this; @@ -244,9 +243,6 @@ export default class ReceiveController { dealSearchData() { if (this.myText.trim() == "") { this.contacts = this.contactsTemp.slice(0); - // this.$element("receiveTxt").focus({ - // focus: true - // }); } else { let textValue = this.myText.trim().toLowerCase(); // Filtering logic