chenquansheng

fix |> 临时屏蔽

... ... @@ -33,6 +33,7 @@ export struct WdWebLocalComponent {
@State progressOpacity: number = 1
@State durationStringTime: string = '';
private progressTimerNumber: number = 0
private webIsLoaded:boolean = false
@State isPause: boolean = true;
controller: VideoController = new VideoController()
@StorageProp('currentBreakpoint') @Watch("currentChanged")currentBreakpoint: string = 'sm';
... ... @@ -197,6 +198,7 @@ export struct WdWebLocalComponent {
Logger.debug(TAG, 'onPageEnd');
this.onWebPrepared()
this.isPageEnd = true
this.webIsLoaded = true
}
onLoadIntercept: (url?: string) => boolean = () => {
Logger.debug(TAG, 'onLoadIntercept return false');
... ... @@ -231,14 +233,16 @@ export struct WdWebLocalComponent {
}
aboutToAppear(): void {
this.webIsLoaded = false
EmitterUtils.receiveEvent(EmitterEventId.APP_PAGE_SHOW, () => {
let params = {'event':NativeCallH5Event.NativeCallH5EventPageWillAppear} as eventParams;
let jsonString = JSON.stringify(params);
if (this.isPageEnd) {
this.webviewControl.callHandle(NativeCallH5Type.jsCall_appNotifyEvent, jsonString, (data: string) => {
Logger.debug(TAG, "from js data = " + data);
})
}
Logger.debug(TAG, 'APP_PAGE_SHOW'+this.webIsLoaded);
// if (this.webIsLoaded) {
// this.webviewControl.callHandle(NativeCallH5Type.jsCall_appNotifyEvent, jsonString, (data: string) => {
// Logger.debug(TAG, "from js data = " + data);
// })
// }
})
}
... ...
... ... @@ -98,7 +98,7 @@ export struct ImageAndTextPageComponent {
setTimeout(()=>{
this.pageScrollToCommonent()
},
900)
800)
}
}
... ...