Showing
5 changed files
with
20 additions
and
0 deletions
| @@ -258,7 +258,10 @@ export struct H5NewsWebPageComponent { | @@ -258,7 +258,10 @@ export struct H5NewsWebPageComponent { | ||
| 258 | // 初次进入详情页偶现获取失败,重新获取newsStatusOfUser对象 | 258 | // 初次进入详情页偶现获取失败,重新获取newsStatusOfUser对象 |
| 259 | this.getInteractDataStatus() | 259 | this.getInteractDataStatus() |
| 260 | } | 260 | } |
| 261 | + }).catch((error:Error) =>{ | ||
| 262 | + ToastUtils.showToast(error.message, 1000); | ||
| 261 | }) | 263 | }) |
| 264 | + | ||
| 262 | } | 265 | } |
| 263 | 266 | ||
| 264 | /** | 267 | /** |
| @@ -465,7 +465,10 @@ export struct ImageAndTextPageComponent { | @@ -465,7 +465,10 @@ export struct ImageAndTextPageComponent { | ||
| 465 | // 初次进入详情页偶现获取失败,重新获取newsStatusOfUser对象 | 465 | // 初次进入详情页偶现获取失败,重新获取newsStatusOfUser对象 |
| 466 | this.getInteractDataStatus() | 466 | this.getInteractDataStatus() |
| 467 | } | 467 | } |
| 468 | + }).catch((error:Error) =>{ | ||
| 469 | + ToastUtils.showToast(error.message, 1000); | ||
| 468 | }) | 470 | }) |
| 471 | + | ||
| 469 | } | 472 | } |
| 470 | 473 | ||
| 471 | /** | 474 | /** |
| @@ -537,6 +537,8 @@ export struct OperRowListView { | @@ -537,6 +537,8 @@ export struct OperRowListView { | ||
| 537 | this.queryContentInteractCount() | 537 | this.queryContentInteractCount() |
| 538 | } | 538 | } |
| 539 | console.log(TAG, '收藏点击 this.newsStatusOfUser', JSON.stringify(this.newsStatusOfUser)) | 539 | console.log(TAG, '收藏点击 this.newsStatusOfUser', JSON.stringify(this.newsStatusOfUser)) |
| 540 | + }).catch((error:Error) =>{ | ||
| 541 | + ToastUtils.showToast(error.message, 1000); | ||
| 540 | }) | 542 | }) |
| 541 | } | 543 | } |
| 542 | 544 |
| @@ -90,7 +90,10 @@ export struct OperationListView { | @@ -90,7 +90,10 @@ export struct OperationListView { | ||
| 90 | // console.log('点赞、取消点赞==', this.newsStatusOfUser?.likeStatus, this.interactData?.likeNum) | 90 | // console.log('点赞、取消点赞==', this.newsStatusOfUser?.likeStatus, this.interactData?.likeNum) |
| 91 | // this.queryContentInteractCount() | 91 | // this.queryContentInteractCount() |
| 92 | } | 92 | } |
| 93 | + }).catch((error:Error) =>{ | ||
| 94 | + ToastUtils.showToast(error.message, 1000); | ||
| 93 | }) | 95 | }) |
| 96 | + | ||
| 94 | } | 97 | } |
| 95 | 98 | ||
| 96 | /** | 99 | /** |
| @@ -124,8 +127,11 @@ export struct OperationListView { | @@ -124,8 +127,11 @@ export struct OperationListView { | ||
| 124 | } | 127 | } |
| 125 | // console.log('收藏、取消收藏==', this.newsStatusOfUser?.collectStatus, this.interactData?.collectNum) | 128 | // console.log('收藏、取消收藏==', this.newsStatusOfUser?.collectStatus, this.interactData?.collectNum) |
| 126 | } | 129 | } |
| 130 | + }).catch((error:Error) =>{ | ||
| 131 | + ToastUtils.showToast(error.message, 1000); | ||
| 127 | }) | 132 | }) |
| 128 | 133 | ||
| 134 | + | ||
| 129 | } | 135 | } |
| 130 | 136 | ||
| 131 | /** | 137 | /** |
| @@ -114,7 +114,10 @@ export struct PlayerRightView { | @@ -114,7 +114,10 @@ export struct PlayerRightView { | ||
| 114 | // this.queryContentInteractCount() | 114 | // this.queryContentInteractCount() |
| 115 | } | 115 | } |
| 116 | 116 | ||
| 117 | + }).catch((error:Error) =>{ | ||
| 118 | + ToastUtils.showToast(error.message, 1000); | ||
| 117 | }) | 119 | }) |
| 120 | + | ||
| 118 | } | 121 | } |
| 119 | 122 | ||
| 120 | /** | 123 | /** |
| @@ -152,8 +155,11 @@ export struct PlayerRightView { | @@ -152,8 +155,11 @@ export struct PlayerRightView { | ||
| 152 | } | 155 | } |
| 153 | // console.log(TAG, '收藏、取消收藏==', this.newsStatusOfUser?.collectStatus, this.interactData?.collectNum) | 156 | // console.log(TAG, '收藏、取消收藏==', this.newsStatusOfUser?.collectStatus, this.interactData?.collectNum) |
| 154 | } | 157 | } |
| 158 | + }).catch((error:Error) =>{ | ||
| 159 | + ToastUtils.showToast(error.message, 1000); | ||
| 155 | }) | 160 | }) |
| 156 | 161 | ||
| 162 | + | ||
| 157 | } | 163 | } |
| 158 | 164 | ||
| 159 | /** | 165 | /** |
-
Please register or login to post a comment