!112 master --- issue 收件人未清空、删除置灰

Merge pull request !112 from zhouhongli2023/master
This commit is contained in:
openharmony_ci 2024-03-19 09:20:37 +00:00 committed by Gitee
commit a45a350009
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
4 changed files with 22 additions and 1 deletions

View File

@ -40,7 +40,7 @@ export default struct ConversationList {
action: () => {
this.mConListCtrl.showMultipleSelectView();
},
enabled: true
enabled: this.mConListCtrl.conversationListDataSource.totalCount() == 0 ? false : true
},
{
value: $r("app.string.markAllAsRead"),

View File

@ -410,6 +410,7 @@ export default class ConversationListController {
}
this.setConversationCheckAll(common.int.CHECKBOX_SELECT_ALL);
}
this.conversationListDataSource.notifyDataReload();
}
clickConversationDelete() {

View File

@ -14,6 +14,9 @@
*/
import ReceiveController from "./receiveController"
import ConversationController from "../../pages/conversation/conversationController"
import HiLog from "../../utils/HiLog";
const TAG = "Receive";
@Component
export struct Receive {
@ -26,6 +29,11 @@ export struct Receive {
})
}
aboutToDisappear() {
HiLog.i(TAG,"aboutToDisappear")
this.mReceiveController.onBackPress();
}
build() {
Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Start }) {
Flex({ alignItems: ItemAlign.Center, justifyContent: FlexAlign.SpaceBetween }) {

View File

@ -71,6 +71,18 @@ export default class ReceiveController {
this.refresh = !this.refresh;
}
onBackPress() {
this.InputTextClear();
return true;
}
InputTextClear() {
this.myText = "";
this.setInputStatus(true);
this.commonCtrl.paramContact.transmitContacts = [];
HiLog.i(TAG,"InputTextClear")
}
requestItem() {
let count = this.page * this.limit;
if (this.page === 0) {