Showing
2 changed files
with
10 additions
and
0 deletions
| @@ -51,6 +51,11 @@ export struct MinePageComponent { | @@ -51,6 +51,11 @@ export struct MinePageComponent { | ||
| 51 | alignment: DialogAlignment.Center, | 51 | alignment: DialogAlignment.Center, |
| 52 | autoCancel: false | 52 | autoCancel: false |
| 53 | }) | 53 | }) |
| 54 | + @Consume @Watch('pageShowForUpdateData') pageShow :number | ||
| 55 | + | ||
| 56 | + pageShowForUpdateData(): void { | ||
| 57 | + this.getMessageData() | ||
| 58 | + } | ||
| 54 | 59 | ||
| 55 | aboutToAppear(){ | 60 | aboutToAppear(){ |
| 56 | this.getUserLogin() | 61 | this.getUserLogin() |
| @@ -67,6 +72,11 @@ export struct MinePageComponent { | @@ -67,6 +72,11 @@ export struct MinePageComponent { | ||
| 67 | if(value.msg == "消息") | 72 | if(value.msg == "消息") |
| 68 | value.isShowRedPoint = true | 73 | value.isShowRedPoint = true |
| 69 | }) | 74 | }) |
| 75 | + }else { | ||
| 76 | + this.personalData.forEach((value) => { | ||
| 77 | + if(value.msg == "消息") | ||
| 78 | + value.isShowRedPoint = false | ||
| 79 | + }) | ||
| 70 | } | 80 | } |
| 71 | } | 81 | } |
| 72 | }).catch((err: Error) => { | 82 | }).catch((err: Error) => { |
-
Please register or login to post a comment