王士厅
@@ -237,14 +237,13 @@ export struct MorningEveningPaperComponent { @@ -237,14 +237,13 @@ export struct MorningEveningPaperComponent {
237 if (imageSource) { 237 if (imageSource) {
238 const pixelMap: image.PixelMap = await imageNet2PixelMap(imageSource); 238 const pixelMap: image.PixelMap = await imageNet2PixelMap(imageSource);
239 effectKit.createColorPicker(pixelMap, (err, colorPicker) => { 239 effectKit.createColorPicker(pixelMap, (err, colorPicker) => {
240 - let color = colorPicker.getLargestProportionColor(); 240 + let color = colorPicker.getMainColorSync();
241 console.log(TAG, "compInfoBean compStyle = " + color) 241 console.log(TAG, "compInfoBean compStyle = " + color)
242 // color = ColorUtils.getMorningEveningPaperRgb({red:color.red,green:color.green,blue:color.blue,alpha:color.alpha}) 242 // color = ColorUtils.getMorningEveningPaperRgb({red:color.red,green:color.green,blue:color.blue,alpha:color.alpha})
243 // 将取色器选取的color示例转换为十六进制颜色代码 243 // 将取色器选取的color示例转换为十六进制颜色代码
244 this.mixedBgColor = "#" + color.alpha.toString(16) + color.red.toString(16) + color.green.toString(16) + color.blue.toString(16); 244 this.mixedBgColor = "#" + color.alpha.toString(16) + color.red.toString(16) + color.green.toString(16) + color.blue.toString(16);
245 console.log(TAG, "compInfoBean compStyle = " + this.mixedBgColor) 245 console.log(TAG, "compInfoBean compStyle = " + this.mixedBgColor)
246 }); 246 });
247 -  
248 } 247 }
249 } 248 }
250 249
@@ -98,18 +98,18 @@ export struct PaperTitleComponent { @@ -98,18 +98,18 @@ export struct PaperTitleComponent {
98 }) 98 })
99 .margin({ right: 16 }) 99 .margin({ right: 16 })
100 100
101 - Image($r('app.media.icon_share'))  
102 - .height($r('app.float.top_arrow_size'))  
103 - .width($r('app.float.top_arrow_size'))  
104 - .alignRules({  
105 - right: { anchor: "img_close", align: HorizontalAlign.Start },  
106 - center: { anchor: "__container__", align: VerticalAlign.Center }  
107 - })  
108 - .id('img_share')  
109 - .margin({ right: 16 })  
110 - .onClick(() => {  
111 - this.share()  
112 - }) 101 + // Image($r('app.media.icon_share'))
  102 + // .height($r('app.float.top_arrow_size'))
  103 + // .width($r('app.float.top_arrow_size'))
  104 + // .alignRules({
  105 + // right: { anchor: "img_close", align: HorizontalAlign.Start },
  106 + // center: { anchor: "__container__", align: VerticalAlign.Center }
  107 + // })
  108 + // .id('img_share')
  109 + // .margin({ right: 16 })
  110 + // .onClick(() => {
  111 + // this.share()
  112 + // })
113 } 113 }
114 // .margin({ left: 14, right: 14 }) 114 // .margin({ left: 14, right: 14 })
115 .height($r('app.float.top_bar_height')) 115 .height($r('app.float.top_bar_height'))
@@ -2,14 +2,15 @@ import { ENewspaperPageComponent } from 'wdComponent'; @@ -2,14 +2,15 @@ import { ENewspaperPageComponent } from 'wdComponent';
2 import { DateTimeUtils, Logger } from 'wdKit'; 2 import { DateTimeUtils, Logger } from 'wdKit';
3 import common from '@ohos.app.ability.common'; 3 import common from '@ohos.app.ability.common';
4 import window from '@ohos.window'; 4 import window from '@ohos.window';
5 -import { TrackingPageBrowse ,TrackConstants} from 'wdTracking/Index'; 5 +import { TrackingPageBrowse, TrackConstants } from 'wdTracking/Index';
6 6
7 const TAG = 'ENewspaper'; 7 const TAG = 'ENewspaper';
  8 +
8 //电子报主页面 9 //电子报主页面
9 @Entry 10 @Entry
10 @Component 11 @Component
11 struct ENewspaper { 12 struct ENewspaper {
12 - pageShowTime:number = 0; 13 + pageShowTime: number = 0;
13 // 获取UIAbility上下文 14 // 获取UIAbility上下文
14 context: common.UIAbilityContext = getContext(this) as common.UIAbilityContext 15 context: common.UIAbilityContext = getContext(this) as common.UIAbilityContext
15 16
@@ -49,15 +50,16 @@ struct ENewspaper { @@ -49,15 +50,16 @@ struct ENewspaper {
49 50
50 onPageShow() { 51 onPageShow() {
51 this.pageShowTime = DateTimeUtils.getTimeStamp() 52 this.pageShowTime = DateTimeUtils.getTimeStamp()
52 - this.setSystemBar('#80000000','#80000000', '#FFFFFFFF') 53 + this.setSystemBar('#00000000', '#00000000', '#FFFFFFFF')
53 Logger.info(TAG, 'onPageShow'); 54 Logger.info(TAG, 'onPageShow');
54 } 55 }
55 56
56 onPageHide() { 57 onPageHide() {
57 - this.setSystemBar('#FFFFFFFF','#00000000', '#000000') 58 + this.setSystemBar('#FFFFFFFF', '#00000000', '#000000')
58 Logger.info(TAG, 'onPageHide'); 59 Logger.info(TAG, 'onPageHide');
59 //页面浏览 60 //页面浏览
60 - TrackingPageBrowse.trackCommonPageExposureEnd(TrackConstants.PageName.NewsPaperPage,TrackConstants.PageName.NewsPaperPage,Math.floor((DateTimeUtils.getTimeStamp() - this.pageShowTime)/1000)) 61 + TrackingPageBrowse.trackCommonPageExposureEnd(TrackConstants.PageName.NewsPaperPage,
  62 + TrackConstants.PageName.NewsPaperPage, Math.floor((DateTimeUtils.getTimeStamp() - this.pageShowTime) / 1000))
61 } 63 }
62 64
63 onBackPress() { 65 onBackPress() {
@@ -14,6 +14,19 @@ @@ -14,6 +14,19 @@
14 } 14 }
15 }, 15 },
16 { 16 {
  17 + "intentName": "ViewColumn",
  18 + "domain": "",
  19 + "intentVersion": "1.0.1",
  20 + "srcEntry": "./ets/utils/InsightIntentExecutorImpl.ets",
  21 + "uiAbility": {
  22 + "ability": "EntryAbility",
  23 + "executeMode": [
  24 + "background",
  25 + "foreground"
  26 + ]
  27 + }
  28 + },
  29 + {
17 "intentName": "ViewColumnUpdate", 30 "intentName": "ViewColumnUpdate",
18 "domain": "", 31 "domain": "",
19 "intentVersion": "1.0.1", 32 "intentVersion": "1.0.1",