Merge branch 'main' of http://192.168.1.42/developOne/harmonyPool
Showing
3 changed files
with
25 additions
and
10 deletions
| @@ -98,6 +98,7 @@ export struct OtherHomePageBottomCommentComponent { | @@ -98,6 +98,7 @@ export struct OtherHomePageBottomCommentComponent { | ||
| 98 | }).onVisibleAreaChange([0.0, 1.0], (isVisible: boolean, currentRatio: number) => { | 98 | }).onVisibleAreaChange([0.0, 1.0], (isVisible: boolean, currentRatio: number) => { |
| 99 | if (isVisible) { | 99 | if (isVisible) { |
| 100 | let contentDTO = getParams(item) | 100 | let contentDTO = getParams(item) |
| 101 | + //埋点crash 后面看看 | ||
| 101 | TrackingContent.common(TrackConstants.EventType.Show, TrackConstants.PageName.Customer_Personal,TrackConstants.PageName.Customer_Personal, TrackParamConvert.program(contentDTO)) | 102 | TrackingContent.common(TrackConstants.EventType.Show, TrackConstants.PageName.Customer_Personal,TrackConstants.PageName.Customer_Personal, TrackParamConvert.program(contentDTO)) |
| 102 | } | 103 | } |
| 103 | }) | 104 | }) |
| @@ -110,13 +111,6 @@ export struct OtherHomePageBottomCommentComponent { | @@ -110,13 +111,6 @@ export struct OtherHomePageBottomCommentComponent { | ||
| 110 | } | 111 | } |
| 111 | } | 112 | } |
| 112 | } | 113 | } |
| 113 | - // .onReachEnd(()=>{ | ||
| 114 | - // if (!this.isLoading) { | ||
| 115 | - // this.isLoading = true | ||
| 116 | - // //加载分页数据 | ||
| 117 | - // this.getNewPageData() | ||
| 118 | - // } | ||
| 119 | - // }) | ||
| 120 | .cachedCount(5) | 114 | .cachedCount(5) |
| 121 | .layoutWeight(1) | 115 | .layoutWeight(1) |
| 122 | .scrollBar(BarState.Off) | 116 | .scrollBar(BarState.Off) |
| @@ -63,6 +63,7 @@ struct OtherNormalUserHomePage { | @@ -63,6 +63,7 @@ struct OtherNormalUserHomePage { | ||
| 63 | 63 | ||
| 64 | 64 | ||
| 65 | build() { | 65 | build() { |
| 66 | + Column(){ | ||
| 66 | if(this.isConnectNetwork){ | 67 | if(this.isConnectNetwork){ |
| 67 | Stack({ alignContent: Alignment.Top }){ | 68 | Stack({ alignContent: Alignment.Top }){ |
| 68 | Stack({ alignContent: Alignment.Top }){ | 69 | Stack({ alignContent: Alignment.Top }){ |
| @@ -269,7 +270,7 @@ struct OtherNormalUserHomePage { | @@ -269,7 +270,7 @@ struct OtherNormalUserHomePage { | ||
| 269 | .width('100%') | 270 | .width('100%') |
| 270 | } | 271 | } |
| 271 | } | 272 | } |
| 272 | - | 273 | + }.padding({bottom:px2vp(this.bottomSafeHeight)}) |
| 273 | } | 274 | } |
| 274 | @Builder MineHomeTitleTransparent() { | 275 | @Builder MineHomeTitleTransparent() { |
| 275 | RelativeContainer() { | 276 | RelativeContainer() { |
| @@ -2,7 +2,7 @@ import { Logger } from 'wdKit/Index'; | @@ -2,7 +2,7 @@ import { Logger } from 'wdKit/Index'; | ||
| 2 | import { TrackingModule } from '../TrackingModule'; | 2 | import { TrackingModule } from '../TrackingModule'; |
| 3 | import sensors from '@sensorsdata/analytics'; | 3 | import sensors from '@sensorsdata/analytics'; |
| 4 | import { ParamType, PublicParams } from '../common/PublicParams'; | 4 | import { ParamType, PublicParams } from '../common/PublicParams'; |
| 5 | -import { HashMap } from '@kit.ArkTS'; | 5 | +import { taskpool } from '@kit.ArkTS'; |
| 6 | import { TrackConstants } from '../common/TrackConstants'; | 6 | import { TrackConstants } from '../common/TrackConstants'; |
| 7 | 7 | ||
| 8 | const TAG = "WDTracking" | 8 | const TAG = "WDTracking" |
| @@ -18,7 +18,28 @@ export class Tracking { | @@ -18,7 +18,28 @@ export class Tracking { | ||
| 18 | } | 18 | } |
| 19 | 19 | ||
| 20 | //TODO: 添加运行单独线程? | 20 | //TODO: 添加运行单独线程? |
| 21 | + taskpool.execute(doTrack, eventId, params).then(() => { | ||
| 22 | + Logger.error('yyyy','event track success') | ||
| 23 | + }).catch(()=>{ | ||
| 24 | + Logger.error('yyyy','event track failed') | ||
| 25 | + }) | ||
| 21 | 26 | ||
| 27 | + // let publicParams = new PublicParams() | ||
| 28 | + // publicParams.getPublicParams().then((pubParams) => { | ||
| 29 | + // | ||
| 30 | + // if (params) { | ||
| 31 | + // for (const obj of Object.entries(params)) { | ||
| 32 | + // // Logger.info(TAG, ` ${obj[0]} => ` + `${obj[1]}`); | ||
| 33 | + // pubParams[obj[0]] = obj[1] | ||
| 34 | + // } | ||
| 35 | + // } | ||
| 36 | + // sensors.track(eventId, pubParams) | ||
| 37 | + // }) | ||
| 38 | + } | ||
| 39 | +} | ||
| 40 | + | ||
| 41 | +@Concurrent | ||
| 42 | +function doTrack(eventId: string, params?: ParamType): void { | ||
| 22 | let publicParams = new PublicParams() | 43 | let publicParams = new PublicParams() |
| 23 | publicParams.getPublicParams().then((pubParams) => { | 44 | publicParams.getPublicParams().then((pubParams) => { |
| 24 | 45 | ||
| @@ -30,5 +51,4 @@ export class Tracking { | @@ -30,5 +51,4 @@ export class Tracking { | ||
| 30 | } | 51 | } |
| 31 | sensors.track(eventId, pubParams) | 52 | sensors.track(eventId, pubParams) |
| 32 | }) | 53 | }) |
| 33 | - } | ||
| 34 | } | 54 | } |
-
Please register or login to post a comment