Showing
4 changed files
with
8 additions
and
8 deletions
| @@ -11,8 +11,8 @@ export class SpConstants{ | @@ -11,8 +11,8 @@ export class SpConstants{ | ||
| 11 | static USER_TEMP_TOKEN="tempToken" | 11 | static USER_TEMP_TOKEN="tempToken" |
| 12 | static USER_PHONE = "user_phone" | 12 | static USER_PHONE = "user_phone" |
| 13 | //协议相关 | 13 | //协议相关 |
| 14 | - static USER_PROTOCOL = "user_protocol" //用户协议 | ||
| 15 | - static PRIVATE_PROTOCOL = "private_protocol" //隐私协议 | 14 | + static NET_SERVICE_PROTOCOL = "user_protocol" //人民日报客户端网络服务使用协议 |
| 15 | + static PRIVATE_PROTOCOL = "private_protocol" //人民日报客户端用户隐私协议 | ||
| 16 | static LOGOUT_PROTOCOL = "logout_protocol" //人民日报客户端app注销协议 | 16 | static LOGOUT_PROTOCOL = "logout_protocol" //人民日报客户端app注销协议 |
| 17 | static MESSAGE_BOARD_USER_PROTOCOL = "message_board_user_protocol" //"留言板-用户协议" | 17 | static MESSAGE_BOARD_USER_PROTOCOL = "message_board_user_protocol" //"留言板-用户协议" |
| 18 | static MESSAGE_BOARD_NOTICE_PROTOCOL = "message_board_notice_protocol" //留言板-留言须知 | 18 | static MESSAGE_BOARD_NOTICE_PROTOCOL = "message_board_notice_protocol" //留言板-留言须知 |
| @@ -67,10 +67,10 @@ export struct AboutPageUI { | @@ -67,10 +67,10 @@ export struct AboutPageUI { | ||
| 67 | this.getArrowCell(item, index) | 67 | this.getArrowCell(item, index) |
| 68 | }.onClick(() => { | 68 | }.onClick(() => { |
| 69 | if (index == 0) { | 69 | if (index == 0) { |
| 70 | - let bean = { contentId: "1", pageID: "" } as Params | 70 | + let bean = { contentID: "2", pageID: "" } as Params |
| 71 | WDRouterRule.jumpWithPage(WDRouterPage.loginProtocolPage, bean) | 71 | WDRouterRule.jumpWithPage(WDRouterPage.loginProtocolPage, bean) |
| 72 | } else { | 72 | } else { |
| 73 | - let bean = { contentId: "2", pageID: "" } as Params | 73 | + let bean = { contentID: "1", pageID: "" } as Params |
| 74 | WDRouterRule.jumpWithPage(WDRouterPage.loginProtocolPage, bean) | 74 | WDRouterRule.jumpWithPage(WDRouterPage.loginProtocolPage, bean) |
| 75 | } | 75 | } |
| 76 | }) | 76 | }) |
| @@ -20,11 +20,11 @@ struct LoginProtocolWebview { | @@ -20,11 +20,11 @@ struct LoginProtocolWebview { | ||
| 20 | if (router.getParams()) { | 20 | if (router.getParams()) { |
| 21 | let params = router.getParams() as Params | 21 | let params = router.getParams() as Params |
| 22 | Logger.info(TAG, 'params.contentID:' + params.contentID); | 22 | Logger.info(TAG, 'params.contentID:' + params.contentID); |
| 23 | - if (params.contentID == "1") { //用户协议 | ||
| 24 | - this.webUrl = await SPHelper.default.get(SpConstants.USER_PROTOCOL, this.userProtocol) as string | 23 | + if (params.contentID == "1") { //"人民日报客户端网络服务使用协议" |
| 24 | + this.webUrl = await SPHelper.default.get(SpConstants.NET_SERVICE_PROTOCOL, this.userProtocol) as string | ||
| 25 | this.webviewController.loadUrl(this.webUrl) | 25 | this.webviewController.loadUrl(this.webUrl) |
| 26 | 26 | ||
| 27 | - } else if(params.contentID == "2"){ //隐私协议 | 27 | + } else if(params.contentID == "2"){ //"人民日报客户端用户隐私协议" |
| 28 | this.webUrl = await SPHelper.default.get(SpConstants.PRIVATE_PROTOCOL, this.privateProtocol) as string | 28 | this.webUrl = await SPHelper.default.get(SpConstants.PRIVATE_PROTOCOL, this.privateProtocol) as string |
| 29 | this.webviewController.loadUrl(this.webUrl) | 29 | this.webviewController.loadUrl(this.webUrl) |
| 30 | }else if(params.contentID == "3"){ //注销协议 | 30 | }else if(params.contentID == "3"){ //注销协议 |
| @@ -23,7 +23,7 @@ export class LaunchModel { | @@ -23,7 +23,7 @@ export class LaunchModel { | ||
| 23 | //保存数据 | 23 | //保存数据 |
| 24 | for (let i = 0; i < data.data.length; i++) { | 24 | for (let i = 0; i < data.data.length; i++) { |
| 25 | if (data.data[i].type == 1) { | 25 | if (data.data[i].type == 1) { |
| 26 | - SPHelper.default.save(SpConstants.USER_PROTOCOL, data.data[i].linkUrl) | 26 | + SPHelper.default.save(SpConstants.NET_SERVICE_PROTOCOL, data.data[i].linkUrl) |
| 27 | } else if (data.data[i].type == 2) { | 27 | } else if (data.data[i].type == 2) { |
| 28 | SPHelper.default.save(SpConstants.PRIVATE_PROTOCOL, data.data[i].linkUrl) | 28 | SPHelper.default.save(SpConstants.PRIVATE_PROTOCOL, data.data[i].linkUrl) |
| 29 | }else if (data.data[i].type == 4) { | 29 | }else if (data.data[i].type == 4) { |
-
Please register or login to post a comment