Showing
2 changed files
with
5 additions
and
22 deletions
| @@ -13,7 +13,10 @@ const DiyCloseTipsString = '关闭后,将不会使用你的偏好进行内容 | @@ -13,7 +13,10 @@ const DiyCloseTipsString = '关闭后,将不会使用你的偏好进行内容 | ||
| 13 | @Entry | 13 | @Entry |
| 14 | @Component | 14 | @Component |
| 15 | export struct PrivacySettingPage { | 15 | export struct PrivacySettingPage { |
| 16 | - @State listData: Array<PrivacySettingModel> = [new PrivacySettingModel(DiyString, false, 'ohos.permission.READ_IMAGEVIDEO'), new PrivacySettingModel('相册权限', false, 'ohos.permission.READ_IMAGEVIDEO'), new PrivacySettingModel('相机权限', false, 'ohos.permission.CAMERA'), new PrivacySettingModel('定位权限', false, 'ohos.permission.APPROXIMATELY_LOCATION'), new PrivacySettingModel('麦克风权限', false, 'ohos.permission.MICROPHONE')]; | 16 | + // @State listData: Array<PrivacySettingModel> = [new PrivacySettingModel(DiyString, false, 'ohos.permission.READ_IMAGEVIDEO'), new PrivacySettingModel('相册权限', false, 'ohos.permission.READ_IMAGEVIDEO'), new PrivacySettingModel('相机权限', false, 'ohos.permission.CAMERA'), new PrivacySettingModel('定位权限', false, 'ohos.permission.APPROXIMATELY_LOCATION'), new PrivacySettingModel('麦克风权限', false, 'ohos.permission.MICROPHONE')]; |
| 17 | + | ||
| 18 | + @State listData: Array<PrivacySettingModel> = [new PrivacySettingModel(DiyString, false, 'ohos.permission.READ_IMAGEVIDEO'), new PrivacySettingModel('定位权限', false, 'ohos.permission.APPROXIMATELY_LOCATION'), new PrivacySettingModel('麦克风权限', false, 'ohos.permission.MICROPHONE')]; | ||
| 19 | + | ||
| 17 | tips: string = '设置前可查阅' | 20 | tips: string = '设置前可查阅' |
| 18 | privacyTips: string = '《隐私政策》' | 21 | privacyTips: string = '《隐私政策》' |
| 19 | tipsEnd = '中相应权限使用规则' | 22 | tipsEnd = '中相应权限使用规则' |
| @@ -79,7 +82,7 @@ export struct PrivacySettingPage { | @@ -79,7 +82,7 @@ export struct PrivacySettingPage { | ||
| 79 | build() { | 82 | build() { |
| 80 | Column(){ | 83 | Column(){ |
| 81 | Column(){ | 84 | Column(){ |
| 82 | - TitleBackComponent({title:"隐私设置"}) | 85 | + TitleBackComponent({title:"隐私设置"}).backgroundColor(Color.White) |
| 83 | 86 | ||
| 84 | //滑动区域 | 87 | //滑动区域 |
| 85 | this.PrivacySettingComponentsUI() | 88 | this.PrivacySettingComponentsUI() |
| @@ -184,26 +184,6 @@ | @@ -184,26 +184,6 @@ | ||
| 184 | ], | 184 | ], |
| 185 | "requestPermissions": [ | 185 | "requestPermissions": [ |
| 186 | { | 186 | { |
| 187 | - "name": "ohos.permission.READ_MEDIA", | ||
| 188 | - "reason": "$string:permission_photo_tip", | ||
| 189 | - "usedScene": { | ||
| 190 | - "abilities": [ | ||
| 191 | - "FormAbility" | ||
| 192 | - ], | ||
| 193 | - "when": "inuse" | ||
| 194 | - } | ||
| 195 | - }, | ||
| 196 | - { | ||
| 197 | - "name": "ohos.permission.WRITE_MEDIA", | ||
| 198 | - "reason": "$string:permission_photo_tip", | ||
| 199 | - "usedScene": { | ||
| 200 | - "abilities": [ | ||
| 201 | - "FormAbility" | ||
| 202 | - ], | ||
| 203 | - "when": "inuse" | ||
| 204 | - } | ||
| 205 | - }, | ||
| 206 | - { | ||
| 207 | "name": "ohos.permission.APPROXIMATELY_LOCATION", | 187 | "name": "ohos.permission.APPROXIMATELY_LOCATION", |
| 208 | "reason": "$string:permission_location_tip", | 188 | "reason": "$string:permission_location_tip", |
| 209 | "usedScene": { | 189 | "usedScene": { |
-
Please register or login to post a comment