Showing
2 changed files
with
7 additions
and
4 deletions
| @@ -4,6 +4,8 @@ import { SPHelper, StringUtils, UserDataLocal } from 'wdKit' | @@ -4,6 +4,8 @@ import { SPHelper, StringUtils, UserDataLocal } from 'wdKit' | ||
| 4 | import { WDRouterPage, WDRouterRule } from 'wdRouter' | 4 | import { WDRouterPage, WDRouterRule } from 'wdRouter' |
| 5 | import { TrackingButton, TrackConstants } from 'wdTracking/Index' | 5 | import { TrackingButton, TrackConstants } from 'wdTracking/Index' |
| 6 | import MinePageDatasModel from '../../model/MinePageDatasModel' | 6 | import MinePageDatasModel from '../../model/MinePageDatasModel' |
| 7 | +import { ColorUtils } from '../../utils/ColorUtils' | ||
| 8 | + | ||
| 7 | const TAG = "MinePageUserSimpleInfoUI" | 9 | const TAG = "MinePageUserSimpleInfoUI" |
| 8 | 10 | ||
| 9 | 11 | ||
| @@ -74,7 +76,7 @@ export default struct MinePageUserSimpleInfoUI { | @@ -74,7 +76,7 @@ export default struct MinePageUserSimpleInfoUI { | ||
| 74 | Image($r('app.media.mine_user_edit')) | 76 | Image($r('app.media.mine_user_edit')) |
| 75 | .width(`${this.calcHeight(27)}lpx`) | 77 | .width(`${this.calcHeight(27)}lpx`) |
| 76 | .height(`${this.calcHeight(27)}lpx`) | 78 | .height(`${this.calcHeight(27)}lpx`) |
| 77 | - .colorBlend(this.navItem?.homePageColor.length > 0?this.navItem?.homePageColor:null) | 79 | + .colorFilter(ColorUtils.getDrawingColorFilter(this.navItem?.homePageColor.length > 0?this.navItem?.homePageColor:'')) |
| 78 | .margin({left:`${this.calcHeight(15)}lpx`}) | 80 | .margin({left:`${this.calcHeight(15)}lpx`}) |
| 79 | .objectFit(ImageFit.Cover) | 81 | .objectFit(ImageFit.Cover) |
| 80 | Blank() | 82 | Blank() |
| @@ -96,10 +98,10 @@ export default struct MinePageUserSimpleInfoUI { | @@ -96,10 +98,10 @@ export default struct MinePageUserSimpleInfoUI { | ||
| 96 | .fontSize(`${this.calcHeight(19)}lpx`) | 98 | .fontSize(`${this.calcHeight(19)}lpx`) |
| 97 | .width(this.levelId>9?`${this.calcHeight(69)}lpx`:`${this.calcHeight(50)}lpx`) | 99 | .width(this.levelId>9?`${this.calcHeight(69)}lpx`:`${this.calcHeight(50)}lpx`) |
| 98 | .height(`${this.calcHeight(29)}lpx`) | 100 | .height(`${this.calcHeight(29)}lpx`) |
| 99 | - }.margin({top:'`${this.calcHeight(15)}lpx`'}) | 101 | + }.margin({top:`${this.calcHeight(15)}lpx`}) |
| 100 | } | 102 | } |
| 101 | }.alignItems(HorizontalAlign.Start) | 103 | }.alignItems(HorizontalAlign.Start) |
| 102 | - .margin({top:`${this.calcHeight(12)}lpx`,left:`${this.calcHeight(4)}lpx`}) | 104 | + .margin({top:`${this.calcHeight(5)}lpx`,left:`${this.calcHeight(4)}lpx`}) |
| 103 | .width(`${this.calcHeight(352)}lpx`) | 105 | .width(`${this.calcHeight(352)}lpx`) |
| 104 | }else{ | 106 | }else{ |
| 105 | Row(){ | 107 | Row(){ |
| 1 | import { BottomNavDTO } from 'wdBean/Index' | 1 | import { BottomNavDTO } from 'wdBean/Index' |
| 2 | +import { ColorUtils } from '../../utils/ColorUtils' | ||
| 2 | import MinePagePersonalFunctionsItem from '../../viewmodel/MinePagePersonalFunctionsItem' | 3 | import MinePagePersonalFunctionsItem from '../../viewmodel/MinePagePersonalFunctionsItem' |
| 3 | 4 | ||
| 4 | @Component | 5 | @Component |
| @@ -12,7 +13,7 @@ export struct PagePersonFunction{ | @@ -12,7 +13,7 @@ export struct PagePersonFunction{ | ||
| 12 | Column(){ | 13 | Column(){ |
| 13 | Stack({ alignContent: Alignment.TopEnd }){ | 14 | Stack({ alignContent: Alignment.TopEnd }){ |
| 14 | Image(this.item.imgSrc) | 15 | Image(this.item.imgSrc) |
| 15 | - .colorBlend(this.navItem?.homePageColor.length > 0?this.navItem.homePageColor:null) | 16 | + .colorFilter(ColorUtils.getDrawingColorFilter(this.navItem?.homePageColor.length > 0?this.navItem?.homePageColor:'')) |
| 16 | .objectFit(ImageFit.Auto) | 17 | .objectFit(ImageFit.Auto) |
| 17 | .interpolation(ImageInterpolation.High) | 18 | .interpolation(ImageInterpolation.High) |
| 18 | if (this.item.isShowRedPoint) { | 19 | if (this.item.isShowRedPoint) { |
-
Please register or login to post a comment