daijian_wd

fix: 解决收藏bug2

1 import { ToastUtils, Logger, NumberFormatterUtils, SPHelper } from 'wdKit'; 1 import { ToastUtils, Logger, NumberFormatterUtils, SPHelper } from 'wdKit';
  2 +import promptAction from '@ohos.promptAction';
2 import { 3 import {
3 InputMethodProperty, 4 InputMethodProperty,
4 batchLikeAndCollectResult, 5 batchLikeAndCollectResult,
@@ -272,6 +273,9 @@ export struct OperRowListView { @@ -272,6 +273,9 @@ export struct OperRowListView {
272 PageRepository.postExecuteCollectRecord(params).then(res => { 273 PageRepository.postExecuteCollectRecord(params).then(res => {
273 if (this.newsStatusOfUser) { 274 if (this.newsStatusOfUser) {
274 this.newsStatusOfUser.collectStatus = this.newsStatusOfUser?.collectStatus === 1 ? 0 : 1 275 this.newsStatusOfUser.collectStatus = this.newsStatusOfUser?.collectStatus === 1 ? 0 : 1
  276 + if(this.newsStatusOfUser.collectStatus === 1){
  277 + promptAction.showToast({ message: '收藏成功' })
  278 + }
275 this.queryContentInteractCount() 279 this.queryContentInteractCount()
276 } 280 }
277 }) 281 })