Showing
1 changed file
with
1 additions
and
3 deletions
| @@ -11,7 +11,6 @@ import { SpConstants } from 'wdConstant'; | @@ -11,7 +11,6 @@ import { SpConstants } from 'wdConstant'; | ||
| 11 | import { WdWebLocalComponent } from 'wdWebComponent'; | 11 | import { WdWebLocalComponent } from 'wdWebComponent'; |
| 12 | import { NativeCallH5Type } from 'wdWebComponent/src/main/ets/pages/NativeCallH5Type'; | 12 | import { NativeCallH5Type } from 'wdWebComponent/src/main/ets/pages/NativeCallH5Type'; |
| 13 | import { BridgeWebViewControl } from 'wdJsBridge/Index'; | 13 | import { BridgeWebViewControl } from 'wdJsBridge/Index'; |
| 14 | -import json from '@ohos.util.json'; | ||
| 15 | 14 | ||
| 16 | const TAG: string = 'ImageAndTextWebComponent' | 15 | const TAG: string = 'ImageAndTextWebComponent' |
| 17 | @Component | 16 | @Component |
| @@ -81,7 +80,6 @@ export struct ImageAndTextWebComponent { | @@ -81,7 +80,6 @@ export struct ImageAndTextWebComponent { | ||
| 81 | h5ReceiveDataJsonBean.netError = '0' | 80 | h5ReceiveDataJsonBean.netError = '0' |
| 82 | let response: ResponseBean = {} as ResponseBean | 81 | let response: ResponseBean = {} as ResponseBean |
| 83 | response.data = this.contentDetailData | 82 | response.data = this.contentDetailData |
| 84 | - Logger.debug('ImageAndTextWebComponent', 'newsContent111111:',this.contentDetailData[0].newsContent); | ||
| 85 | // Logger.debug('ImageAndTextWebComponent', 'newsContent111111:',this.contentDetailData[0].newsContent); | 83 | // Logger.debug('ImageAndTextWebComponent', 'newsContent111111:',this.contentDetailData[0].newsContent); |
| 86 | response.code = 200 | 84 | response.code = 200 |
| 87 | response.success = true | 85 | response.success = true |
| @@ -115,7 +113,7 @@ export struct ImageAndTextWebComponent { | @@ -115,7 +113,7 @@ export struct ImageAndTextWebComponent { | ||
| 115 | this.sendContentData2H5(this.h5ReceiveAppData) | 113 | this.sendContentData2H5(this.h5ReceiveAppData) |
| 116 | } | 114 | } |
| 117 | 115 | ||
| 118 | - private onWebPrepared() {608 | 116 | + private onWebPrepared() { |
| 119 | this.webPrepared = true | 117 | this.webPrepared = true |
| 120 | this.trySendData2H5() | 118 | this.trySendData2H5() |
| 121 | } | 119 | } |
-
Please register or login to post a comment