del unusing code

Signed-off-by: liyufan <liyufan5@huawei.com>
This commit is contained in:
liyufan 2024-04-18 19:44:25 +08:00
parent 00e0949746
commit 512f7e60d5
5 changed files with 0 additions and 16 deletions

View File

@ -131,7 +131,6 @@ struct Index {
}
}
.height('100%')
// .margin({ left: this.gridMargin, right: this.gridMargin })
}
.padding({ left: this.gridMargin, right: this.gridMargin })
.width("100%")

View File

@ -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;
},

View File

@ -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)

View File

@ -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) => {

View File

@ -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