Showing
1 changed file
with
5 additions
and
0 deletions
| @@ -16,11 +16,15 @@ struct LoginProtocolWebview { | @@ -16,11 +16,15 @@ struct LoginProtocolWebview { | ||
| 16 | privateProtocol = 'https://cdnpeoplefrontuat.aikan.pdnews.cn/rmrb/rmrb-protocol-zh-web/0.0.1/app/protocol-1001.html' | 16 | privateProtocol = 'https://cdnpeoplefrontuat.aikan.pdnews.cn/rmrb/rmrb-protocol-zh-web/0.0.1/app/protocol-1001.html' |
| 17 | logoutProtocol = 'https://cdnpeoplefrontuat.aikan.pdnews.cn/rmrb/rmrb-protocol-zh-web/0.0.1/app/protocol-1003.html' | 17 | logoutProtocol = 'https://cdnpeoplefrontuat.aikan.pdnews.cn/rmrb/rmrb-protocol-zh-web/0.0.1/app/protocol-1003.html' |
| 18 | huaweiAuthProtocol = 'https://privacy.consumer.huawei.com/legal/id/authentication-terms.htm?code=CN&language=zh-CN' | 18 | huaweiAuthProtocol = 'https://privacy.consumer.huawei.com/legal/id/authentication-terms.htm?code=CN&language=zh-CN' |
| 19 | + @State contentID:string = "0" | ||
| 19 | 20 | ||
| 20 | async aboutToAppear() { | 21 | async aboutToAppear() { |
| 21 | if (router.getParams()) { | 22 | if (router.getParams()) { |
| 22 | let params = router.getParams() as Params | 23 | let params = router.getParams() as Params |
| 23 | Logger.info(TAG, 'params.contentID:' + params.contentID); | 24 | Logger.info(TAG, 'params.contentID:' + params.contentID); |
| 25 | + if(params.contentID != undefined){ | ||
| 26 | + this.contentID = params.contentID | ||
| 27 | + } | ||
| 24 | if (params.contentID == "1") { //"人民日报客户端网络服务使用协议" | 28 | if (params.contentID == "1") { //"人民日报客户端网络服务使用协议" |
| 25 | this.webUrl = await SPHelper.default.get(SpConstants.NET_SERVICE_PROTOCOL, this.userProtocol) as string | 29 | this.webUrl = await SPHelper.default.get(SpConstants.NET_SERVICE_PROTOCOL, this.userProtocol) as string |
| 26 | this.webviewController.loadUrl(this.webUrl) | 30 | this.webviewController.loadUrl(this.webUrl) |
| @@ -71,6 +75,7 @@ struct LoginProtocolWebview { | @@ -71,6 +75,7 @@ struct LoginProtocolWebview { | ||
| 71 | Logger.info(TAG, 'onHttpErrorReceive event.request.getRequestUrl:' + event?.request.getRequestUrl()); | 75 | Logger.info(TAG, 'onHttpErrorReceive event.request.getRequestUrl:' + event?.request.getRequestUrl()); |
| 72 | Logger.info(TAG, 'onHttpErrorReceive event.response.getResponseCode:' + event?.response.getResponseCode()); | 76 | Logger.info(TAG, 'onHttpErrorReceive event.response.getResponseCode:' + event?.response.getResponseCode()); |
| 73 | }) | 77 | }) |
| 78 | + .padding({bottom:this.contentID === "2" ? "40lpx" : 0 }) | ||
| 74 | } | 79 | } |
| 75 | } | 80 | } |
| 76 | } | 81 | } |
-
Please register or login to post a comment