Showing
2 changed files
with
7 additions
and
17 deletions
| @@ -155,11 +155,12 @@ export class ProcessUtils { | @@ -155,11 +155,12 @@ export class ProcessUtils { | ||
| 155 | return; | 155 | return; |
| 156 | } | 156 | } |
| 157 | // 网络出小差了,请检查网络后重试 | 157 | // 网络出小差了,请检查网络后重试 |
| 158 | - let netStatus = NetworkUtil.isNetConnected() | ||
| 159 | - if(!netStatus){ | ||
| 160 | - ToastUtils.shortToast('网络出小差了,请检查网络后重试') | ||
| 161 | - return | ||
| 162 | - } | 158 | + |
| 159 | + // let netStatus = NetworkUtil.isNetConnected() | ||
| 160 | + // if(!netStatus){ | ||
| 161 | + // ToastUtils.shortToast('网络出小差了,请检查网络后重试') | ||
| 162 | + // return | ||
| 163 | + // } | ||
| 163 | 164 | ||
| 164 | let type = content.objectType; | 165 | let type = content.objectType; |
| 165 | if (typeof type == "number") { | 166 | if (typeof type == "number") { |
| @@ -228,18 +228,7 @@ export struct DetailVideoListPage { | @@ -228,18 +228,7 @@ export struct DetailVideoListPage { | ||
| 228 | } | 228 | } |
| 229 | 229 | ||
| 230 | build() { | 230 | build() { |
| 231 | - if (this.netStatus !== undefined) { | ||
| 232 | - EmptyComponent({ | ||
| 233 | - emptyType: 1, emptyButton: true, isBlack: true, retry: () => { | ||
| 234 | - this.getContentDetail(this.contentId, this.relId, this.relType) | ||
| 235 | - } | ||
| 236 | - }) | ||
| 237 | - .id('e_empty_content') | ||
| 238 | - .alignRules({ | ||
| 239 | - center: { anchor: "__container__", align: VerticalAlign.Center }, | ||
| 240 | - middle: { anchor: "__container__", align: HorizontalAlign.Center } | ||
| 241 | - }) | ||
| 242 | - } else if (this.isOffLine) { | 231 | + if (this.netStatus !== undefined || this.isOffLine) { |
| 243 | EmptyComponent({ | 232 | EmptyComponent({ |
| 244 | emptyType: 15, emptyButton: true, retry: () => { | 233 | emptyType: 15, emptyButton: true, retry: () => { |
| 245 | this.getContentDetail(this.contentId, this.relId, this.relType) | 234 | this.getContentDetail(this.contentId, this.relId, this.relType) |
-
Please register or login to post a comment