wangyong_wd

头图卡样式优化

1 import { CompDTO } from 'wdBean'; 1 import { CompDTO } from 'wdBean';
2 import { CommonConstants } from 'wdConstant'; 2 import { CommonConstants } from 'wdConstant';
3 -import { CompUtils } from '../../utils/CompUtils';  
4 3
5 @Component 4 @Component
6 export struct HeadPictureCardComponent { 5 export struct HeadPictureCardComponent {
@@ -16,7 +15,6 @@ export struct HeadPictureCardComponent { @@ -16,7 +15,6 @@ export struct HeadPictureCardComponent {
16 Row() 15 Row()
17 .width(CommonConstants.FULL_WIDTH) 16 .width(CommonConstants.FULL_WIDTH)
18 .height(59) 17 .height(59)
19 - .backgroundColor(Color.Red)  
20 .linearGradient({ 18 .linearGradient({
21 colors: [ 19 colors: [
22 ['rgba(0, 0, 0, 0.0)', 0.0], ['rgba(0, 0, 0, 0.3)', 1.0] 20 ['rgba(0, 0, 0, 0.0)', 0.0], ['rgba(0, 0, 0, 0.3)', 1.0]