mirror of
https://gitee.com/openharmony/applications_mms
synced 2024-11-26 17:30:42 +00:00
!112 master --- issue 收件人未清空、删除置灰
Merge pull request !112 from zhouhongli2023/master
This commit is contained in:
commit
a45a350009
@ -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"),
|
||||
|
@ -410,6 +410,7 @@ export default class ConversationListController {
|
||||
}
|
||||
this.setConversationCheckAll(common.int.CHECKBOX_SELECT_ALL);
|
||||
}
|
||||
this.conversationListDataSource.notifyDataReload();
|
||||
}
|
||||
|
||||
clickConversationDelete() {
|
||||
|
@ -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 }) {
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user