yangsunyue_wd

desc:隐私政策页面BUG修复

... ... @@ -220,7 +220,7 @@ struct ChildCommentItem {
Span(this.item.fromUserName)
if (this.item.toUserName) {
Span(' ')
ImageSpan($r('app.media.comment_reply')).size({ width: 6, height: 9 }).offset({ y: -2.5 })
ImageSpan($r('app.media.comment_reply')).size({ width: 6, height: 9 }).offset({ y: -2.7 })
Span(' ')
Span(this.item.toUserName)
}
... ...
... ... @@ -7,6 +7,7 @@ import { CustomTitleUI } from '../../reusable/CustomTitleUI'
import { MyCommentDataSource } from '../model/MyCommentDataSource'
import { HttpUtils } from 'wdNetwork/src/main/ets/utils/HttpUtils'
import { HttpUrlUtils } from 'wdNetwork/Index'
import PageModel from '../../../viewmodel/PageModel'
const TAG = 'QualityCommentsComponent';
... ... @@ -14,12 +15,14 @@ const TAG = 'QualityCommentsComponent';
@Preview
@Component
export struct QualityCommentsComponent {
@State private browSingModel: PageModel = new PageModel()
isloading : boolean = false
@State tileOpacity: number = 0;
firstPositionY: number = 0;
bottomSafeHeight: string = AppStorage.get<number>('bottomSafeHeight') + 'px';
topSafeHeight: number = AppStorage.get<number>('topSafeHeight') as number;
// @State private browSingModel: commentListModel = new commentListModel()
isloading: boolean = false
lastWindowColor: string = '#ffffff'
currentWindowColor: string = '#FF4202'
@State allDatas: MyCommentDataSource = new MyCommentDataSource();
... ...
... ... @@ -5,6 +5,7 @@ import hilog from '@ohos.hilog';
import { PrivacySettingModel } from '../../model/PrivacySettingModel'
import { Params } from 'wdBean';
import { WDRouterPage, WDRouterRule } from 'wdRouter';
import { HttpUrlUtils } from 'wdNetwork/Index';
const TAG = 'PrivacySettingPage';
const DiyString = '开启个性化推荐'
... ... @@ -23,6 +24,9 @@ export struct PrivacySettingPage {
}
aboutToAppear() {
if (!HttpUrlUtils.getUserId()) {
this.listData.splice(0, 1);
}
// 获取权限=
// SPHelper.default.save('sdf','sdf');
// this.initListData();
... ... @@ -60,7 +64,7 @@ export struct PrivacySettingPage {
List({ space: '23lpx' }) {
ForEach(this.listData, (item: PrivacySettingModel, index:number) => {
ListItem() {
if (index == 0) {
if (item.privacyName == DiyString) {
getTuiJianCell({ item:item, index:index });
} else {
getArrowCell({ item:item, index:index });
... ... @@ -73,6 +77,8 @@ export struct PrivacySettingPage {
PermissionUtil.reqPermissionsFromUser([item.permissionKey], this).then((res)=>{
item.permission = res;
});
}else{
PermissionUtil.openPermissionsInSystemSettings(this);
}
}
})
... ...