Showing
4 changed files
with
22 additions
and
16 deletions
| @@ -701,15 +701,23 @@ export struct TopNavigationComponentNew { | @@ -701,15 +701,23 @@ export struct TopNavigationComponentNew { | ||
| 701 | } else { | 701 | } else { |
| 702 | ToastUtils.showToast('暂无早晚报信息', 1000) | 702 | ToastUtils.showToast('暂无早晚报信息', 1000) |
| 703 | } | 703 | } |
| 704 | - | 704 | + let timer = setInterval(() => { |
| 705 | this.isClickMorningEveningPaper = false | 705 | this.isClickMorningEveningPaper = false |
| 706 | + clearInterval(timer); | ||
| 707 | + }, 1000); | ||
| 706 | }).catch((err: string) => { | 708 | }).catch((err: string) => { |
| 707 | ToastUtils.showToast('暂无早晚报信息', 1000) | 709 | ToastUtils.showToast('暂无早晚报信息', 1000) |
| 710 | + let timer = setInterval(() => { | ||
| 708 | this.isClickMorningEveningPaper = false | 711 | this.isClickMorningEveningPaper = false |
| 712 | + clearInterval(timer); | ||
| 713 | + }, 1000); | ||
| 709 | }) | 714 | }) |
| 710 | } else { | 715 | } else { |
| 711 | ToastUtils.showToast('网络出小差了,请检查网络后重试', 1000) | 716 | ToastUtils.showToast('网络出小差了,请检查网络后重试', 1000) |
| 717 | + let timer = setInterval(() => { | ||
| 712 | this.isClickMorningEveningPaper = false | 718 | this.isClickMorningEveningPaper = false |
| 719 | + clearInterval(timer); | ||
| 720 | + }, 1000); | ||
| 713 | } | 721 | } |
| 714 | } | 722 | } |
| 715 | 723 |
| @@ -120,15 +120,15 @@ export struct PeopleShipHomePageNavComponent { | @@ -120,15 +120,15 @@ export struct PeopleShipHomePageNavComponent { | ||
| 120 | } | 120 | } |
| 121 | .height('100%') | 121 | .height('100%') |
| 122 | Blank() | 122 | Blank() |
| 123 | - // 分享 | ||
| 124 | - Image((this.topOpacity > 0.5 ? $r('app.media.icon_forward') : $r('app.media.icon_share'))) | ||
| 125 | - .width('24vp') | ||
| 126 | - .height('24vp') | ||
| 127 | - .objectFit(ImageFit.Auto) | ||
| 128 | - .margin({ right: '10vp' }) | ||
| 129 | - .onClick(() => { | ||
| 130 | - ToastUtils.showToast('分享为公共方法,待开发', 1000); | ||
| 131 | - }) | 123 | + // 分享 分享暂不展示 |
| 124 | + // Image((this.topOpacity > 0.5 ? $r('app.media.icon_forward') : $r('app.media.icon_share'))) | ||
| 125 | + // .width('24vp') | ||
| 126 | + // .height('24vp') | ||
| 127 | + // .objectFit(ImageFit.Auto) | ||
| 128 | + // .margin({ right: '10vp' }) | ||
| 129 | + // .onClick(() => { | ||
| 130 | + // ToastUtils.showToast('分享为公共方法,待开发', 1000); | ||
| 131 | + // }) | ||
| 132 | } | 132 | } |
| 133 | .width('100%') | 133 | .width('100%') |
| 134 | .height('100%') | 134 | .height('100%') |
| @@ -33,13 +33,11 @@ struct LoginProtocolWebview { | @@ -33,13 +33,11 @@ struct LoginProtocolWebview { | ||
| 33 | this.contentID = params.contentID | 33 | this.contentID = params.contentID |
| 34 | } | 34 | } |
| 35 | if (params.contentID == "1") { //"人民日报客户端网络服务使用协议" | 35 | if (params.contentID == "1") { //"人民日报客户端网络服务使用协议" |
| 36 | - this.webUrl = this.userProtocol | ||
| 37 | - this.webUrl = await SPHelper.default.get(SpConstants.NET_SERVICE_PROTOCOL, this.userProtocol) as string | 36 | + this.webUrl = SPHelper.default.getSync(SpConstants.NET_SERVICE_PROTOCOL, this.userProtocol) as string |
| 38 | } else if(params.contentID == "2"){ //"人民日报客户端用户隐私协议" | 37 | } else if(params.contentID == "2"){ //"人民日报客户端用户隐私协议" |
| 39 | - this.webUrl = this.privateProtocol | ||
| 40 | - this.webUrl = await SPHelper.default.get(SpConstants.PRIVATE_PROTOCOL, this.privateProtocol) as string | 38 | + this.webUrl = SPHelper.default.getSync(SpConstants.PRIVATE_PROTOCOL, this.privateProtocol) as string |
| 41 | }else if(params.contentID == "3"){ //注销协议 | 39 | }else if(params.contentID == "3"){ //注销协议 |
| 42 | - this.webUrl = await SPHelper.default.get(SpConstants.LOGOUT_PROTOCOL, this.logoutProtocol) as string | 40 | + this.webUrl = SPHelper.default.getSync(SpConstants.LOGOUT_PROTOCOL, this.logoutProtocol) as string |
| 43 | } else if(params.contentID == "4"){ //华为用户认证协议 | 41 | } else if(params.contentID == "4"){ //华为用户认证协议 |
| 44 | this.webUrl = this.huaweiAuthProtocol | 42 | this.webUrl = this.huaweiAuthProtocol |
| 45 | } else if(params.contentID == "5"){ //收集个人信息明示清单 | 43 | } else if(params.contentID == "5"){ //收集个人信息明示清单 |
| @@ -21,7 +21,7 @@ export class PublicParams { | @@ -21,7 +21,7 @@ export class PublicParams { | ||
| 21 | "isSign": AccountManagerUtils.isLoginSync() ? "1" : "0", | 21 | "isSign": AccountManagerUtils.isLoginSync() ? "1" : "0", |
| 22 | "environment": PublicParams.getEnv(), | 22 | "environment": PublicParams.getEnv(), |
| 23 | "os": AppUtils.getOSName(), | 23 | "os": AppUtils.getOSName(), |
| 24 | - "actionTime": new Date().getTime() * 0.001, | 24 | + "actionTime": Math.log(new Date().getTime() / 1000), |
| 25 | "channel": AppUtils.getAppChannel(), | 25 | "channel": AppUtils.getAppChannel(), |
| 26 | "version": AppUtils.getAppVersionName(), | 26 | "version": AppUtils.getAppVersionName(), |
| 27 | "deviceId": DeviceUtil.clientId(), | 27 | "deviceId": DeviceUtil.clientId(), |
-
Please register or login to post a comment