Showing
4 changed files
with
79 additions
and
9 deletions
| @@ -7,7 +7,17 @@ export namespace ErrorToastUtils { | @@ -7,7 +7,17 @@ export namespace ErrorToastUtils { | ||
| 7 | NET_CORE_PAGE_ERROR_NETWORK, //网络出小差了,请检查网络后重试 | 7 | NET_CORE_PAGE_ERROR_NETWORK, //网络出小差了,请检查网络后重试 |
| 8 | NET_CORE_LOAD_ERROR_NETWORK, //加载失败,请重试 | 8 | NET_CORE_LOAD_ERROR_NETWORK, //加载失败,请重试 |
| 9 | NET_CORE_ENTER_ERROR_NETWORK, //很抱歉,当前内容无法加载,请点击重试 | 9 | NET_CORE_ENTER_ERROR_NETWORK, //很抱歉,当前内容无法加载,请点击重试 |
| 10 | - LIVE_CORE_NO_NETWORK, //网络出小差了,请检查下网络 | 10 | + |
| 11 | + //直播异常 | ||
| 12 | + LIVE_CORE_NO_NETWORK, //直播 无网络 网络出小差了,请检查下网络 | ||
| 13 | + LIVE_CORE_WEAK_NETWORK, //直播 弱网 网络出小差了,请检查下网络 | ||
| 14 | + LIVE_CORE_IO_NETWORK, //直播 直播流异常 直播加载异常 | ||
| 15 | + LIVE_CORE_SERVICE_NETWORK, //直播 服务端接口异常 直播加载异常 | ||
| 16 | + LIVE_CORE_SWITCH_FLOW_NETWORK, //直播 网络切换到流量 正在使用流量,请注意流量使用 | ||
| 17 | + | ||
| 18 | + //审核后异常报错 | ||
| 19 | + AUDITING_CORE_CONTENT_DISTRIBUTE, //审核 内容分发下线规则 内容已下线 | ||
| 20 | + AUDITING_CORE_ACCOUNT_ERROR, //审核 账号有问题下线规则 内容已下线 | ||
| 11 | 21 | ||
| 12 | } | 22 | } |
| 13 | 23 | ||
| @@ -32,6 +42,27 @@ export namespace ErrorToastUtils { | @@ -32,6 +42,27 @@ export namespace ErrorToastUtils { | ||
| 32 | case ErrorType.LIVE_CORE_NO_NETWORK: | 42 | case ErrorType.LIVE_CORE_NO_NETWORK: |
| 33 | ToastUtils.shortToast($r('app.string.live_core_no_network')) | 43 | ToastUtils.shortToast($r('app.string.live_core_no_network')) |
| 34 | break | 44 | break |
| 45 | + case ErrorType.LIVE_CORE_WEAK_NETWORK: | ||
| 46 | + ToastUtils.shortToast($r('app.string.live_core_weak_network')) | ||
| 47 | + break | ||
| 48 | + case ErrorType.LIVE_CORE_IO_NETWORK: | ||
| 49 | + ToastUtils.shortToast($r('app.string.live_core_io_network')) | ||
| 50 | + break | ||
| 51 | + case ErrorType.LIVE_CORE_SERVICE_NETWORK: | ||
| 52 | + ToastUtils.shortToast($r('app.string.live_core_service_network')) | ||
| 53 | + break | ||
| 54 | + case ErrorType.LIVE_CORE_SWITCH_FLOW_NETWORK: | ||
| 55 | + ToastUtils.shortToast($r('app.string.live_core_switch_flow_network')) | ||
| 56 | + break | ||
| 57 | + case ErrorType.LIVE_CORE_SWITCH_FLOW_NETWORK: | ||
| 58 | + ToastUtils.shortToast($r('app.string.live_core_switch_flow_network')) | ||
| 59 | + break | ||
| 60 | + case ErrorType.AUDITING_CORE_CONTENT_DISTRIBUTE: | ||
| 61 | + ToastUtils.shortToast($r('app.string.auditing_core_error')) | ||
| 62 | + break | ||
| 63 | + case ErrorType.AUDITING_CORE_ACCOUNT_ERROR: | ||
| 64 | + ToastUtils.shortToast($r('app.string.auditing_core_error')) | ||
| 65 | + break | ||
| 35 | } | 66 | } |
| 36 | 67 | ||
| 37 | } | 68 | } |
| @@ -27,6 +27,26 @@ | @@ -27,6 +27,26 @@ | ||
| 27 | { | 27 | { |
| 28 | "name": "live_core_no_network", | 28 | "name": "live_core_no_network", |
| 29 | "value": "网络出小差了,请检查下网络" | 29 | "value": "网络出小差了,请检查下网络" |
| 30 | + }, | ||
| 31 | + { | ||
| 32 | + "name": "live_core_weak_network", | ||
| 33 | + "value": "网络出小差了,请检查下网络" | ||
| 34 | + }, | ||
| 35 | + { | ||
| 36 | + "name": "live_core_io_network", | ||
| 37 | + "value": "直播加载异常" | ||
| 38 | + }, | ||
| 39 | + { | ||
| 40 | + "name": "live_core_service_network", | ||
| 41 | + "value": "直播加载异常" | ||
| 42 | + }, | ||
| 43 | + { | ||
| 44 | + "name": "live_core_switch_flow_network", | ||
| 45 | + "value": "正在使用流量,请注意流量使用" | ||
| 46 | + }, | ||
| 47 | + { | ||
| 48 | + "name": "auditing_core_error", | ||
| 49 | + "value": "内容已下线" | ||
| 30 | } | 50 | } |
| 31 | ] | 51 | ] |
| 32 | } | 52 | } |
| @@ -17,7 +17,7 @@ export default struct CustomDialogComponent { | @@ -17,7 +17,7 @@ export default struct CustomDialogComponent { | ||
| 17 | Text($r('app.string.dialog_text_title')) | 17 | Text($r('app.string.dialog_text_title')) |
| 18 | .width("90%") | 18 | .width("90%") |
| 19 | .fontColor($r('app.color.dialog_text_color')) | 19 | .fontColor($r('app.color.dialog_text_color')) |
| 20 | - .fontSize($r('app.float.dialog_text_privacy_size')) | 20 | + .fontSize(18) |
| 21 | .textAlign(TextAlign.Center) | 21 | .textAlign(TextAlign.Center) |
| 22 | .fontWeight('500') | 22 | .fontWeight('500') |
| 23 | .margin({ | 23 | .margin({ |
| @@ -25,10 +25,25 @@ export default struct CustomDialogComponent { | @@ -25,10 +25,25 @@ export default struct CustomDialogComponent { | ||
| 25 | bottom: $r('app.float.dialog_text_privacy_bottom') | 25 | bottom: $r('app.float.dialog_text_privacy_bottom') |
| 26 | }) | 26 | }) |
| 27 | Text($r('app.string.dialog_text_subTitle')) | 27 | Text($r('app.string.dialog_text_subTitle')) |
| 28 | - .fontSize($r('app.float.dialog_common_text_size')) | 28 | + .fontSize(14) |
| 29 | + .fontColor($r('app.color.dialog_private_text_color')) | ||
| 29 | .width('90%') | 30 | .width('90%') |
| 30 | - Text($r('app.string.dialog_text_privacy_content')) | ||
| 31 | - .fontSize($r('app.float.dialog_common_text_size')) | 31 | + Text(){ |
| 32 | + Span('为了更好地为您提供阅读新闻、发布评论等相关服务,我们会根据您使用服务的具体功能需要,收集必要的用户信息。您可通过阅读') | ||
| 33 | + .fontSize(14).fontColor($r('app.color.dialog_private_text_color')) | ||
| 34 | + Span('《隐私政策》').fontSize(14).fontColor("#ED2800").onClick(()=>{ | ||
| 35 | + let bean={contentID:"2",pageID:""} as Params | ||
| 36 | + WDRouterRule.jumpWithPage(WDRouterPage.loginProtocolPage,bean) | ||
| 37 | + }) | ||
| 38 | + Span('和').fontSize(14).fontColor($r('app.color.dialog_private_text_color')).fontColor($r('app.color.dialog_private_text_color')) | ||
| 39 | + Span('《用户协议》').fontSize(14).fontColor("#ED2800").onClick(()=>{ | ||
| 40 | + let bean={contentID:"1",pageID:""} as Params | ||
| 41 | + WDRouterRule.jumpWithPage(WDRouterPage.loginProtocolPage,bean) | ||
| 42 | + }) | ||
| 43 | + Span('了解我们收集、使用、存储和共享个人信息的情况,以及对您个人隐私的保护措施。人民日报客户端深知个人信息对您的重要性,我们将以最高标准遵守法律法规要求,尽全力保护您的个人信息安全。') | ||
| 44 | + .fontSize(14) | ||
| 45 | + .fontColor($r('app.color.dialog_private_text_color')) | ||
| 46 | + } | ||
| 32 | .width('90%') | 47 | .width('90%') |
| 33 | Row(){ | 48 | Row(){ |
| 34 | 49 | ||
| @@ -115,11 +130,11 @@ export default struct CustomDialogComponent { | @@ -115,11 +130,11 @@ export default struct CustomDialogComponent { | ||
| 115 | .margin({ | 130 | .margin({ |
| 116 | top:'36lpx', | 131 | top:'36lpx', |
| 117 | bottom:'21lpx' | 132 | bottom:'21lpx' |
| 118 | - }) | 133 | + }).visibility(Visibility.None) |
| 119 | Text($r('app.string.dialog_text_privacy_statement')) | 134 | Text($r('app.string.dialog_text_privacy_statement')) |
| 120 | .width('90%') | 135 | .width('90%') |
| 121 | .fontColor($r('app.color.dialog_text_color')) | 136 | .fontColor($r('app.color.dialog_text_color')) |
| 122 | - .fontSize($r('app.float.dialog_common_text_size')) | 137 | + .fontSize(13).margin({top:20}) |
| 123 | Row() { | 138 | Row() { |
| 124 | Text($r('app.string.dialog_button_disagree')) | 139 | Text($r('app.string.dialog_button_disagree')) |
| 125 | .fancy() | 140 | .fancy() |
| @@ -154,7 +169,7 @@ export default struct CustomDialogComponent { | @@ -154,7 +169,7 @@ export default struct CustomDialogComponent { | ||
| 154 | // Common text styles. | 169 | // Common text styles. |
| 155 | @Extend(Text) function fancy () { | 170 | @Extend(Text) function fancy () { |
| 156 | .fontColor($r("app.color.dialog_fancy_text_left_color")) | 171 | .fontColor($r("app.color.dialog_fancy_text_left_color")) |
| 157 | - .fontSize($r("app.float.dialog_fancy_text_size")) | 172 | + .fontSize(16) |
| 158 | .textAlign(TextAlign.Center) | 173 | .textAlign(TextAlign.Center) |
| 159 | .fontWeight(FontWeight.Medium) | 174 | .fontWeight(FontWeight.Medium) |
| 160 | .layoutWeight('1') | 175 | .layoutWeight('1') |
| @@ -162,7 +177,7 @@ export default struct CustomDialogComponent { | @@ -162,7 +177,7 @@ export default struct CustomDialogComponent { | ||
| 162 | // Common text styles. | 177 | // Common text styles. |
| 163 | @Extend(Text) function fancyAgree () { | 178 | @Extend(Text) function fancyAgree () { |
| 164 | .fontColor($r("app.color.dialog_fancy_text_right_color")) | 179 | .fontColor($r("app.color.dialog_fancy_text_right_color")) |
| 165 | - .fontSize($r("app.float.dialog_fancy_text_size")) | 180 | + .fontSize(16) |
| 166 | .textAlign(TextAlign.Center) | 181 | .textAlign(TextAlign.Center) |
| 167 | .fontWeight(FontWeight.Medium) | 182 | .fontWeight(FontWeight.Medium) |
| 168 | .layoutWeight('1') | 183 | .layoutWeight('1') |
-
Please register or login to post a comment