Showing
1 changed file
with
7 additions
and
4 deletions
| @@ -101,14 +101,17 @@ export struct MinePageComponent { | @@ -101,14 +101,17 @@ export struct MinePageComponent { | ||
| 101 | * @param statusValue | 101 | * @param statusValue |
| 102 | */ | 102 | */ |
| 103 | changeTopStatusBarColor(statusValue: number) { | 103 | changeTopStatusBarColor(statusValue: number) { |
| 104 | - if (statusValue === 1) { // 黑色状态栏 | 104 | + if (statusValue === 0) {//白色状态栏 |
| 105 | + WindowModel.shared.setWindowSystemBarProperties({ | ||
| 106 | + statusBarContentColor: '#ffffff', | ||
| 107 | + }) | ||
| 108 | + } else if (statusValue === 1) { // 黑色状态栏 | ||
| 105 | WindowModel.shared.setWindowSystemBarProperties({ | 109 | WindowModel.shared.setWindowSystemBarProperties({ |
| 106 | statusBarContentColor: '#000000', | 110 | statusBarContentColor: '#000000', |
| 107 | - | ||
| 108 | }) | 111 | }) |
| 109 | - } else { //白色状态栏 | 112 | + }else { |
| 110 | WindowModel.shared.setWindowSystemBarProperties({ | 113 | WindowModel.shared.setWindowSystemBarProperties({ |
| 111 | - statusBarContentColor: '#ffffff', | 114 | + statusBarContentColor: '#000000', |
| 112 | }) | 115 | }) |
| 113 | } | 116 | } |
| 114 | } | 117 | } |
-
Please register or login to post a comment