wangliang_wd

feat:优化断网点击操作逻辑

... ... @@ -258,7 +258,10 @@ export struct H5NewsWebPageComponent {
// 初次进入详情页偶现获取失败,重新获取newsStatusOfUser对象
this.getInteractDataStatus()
}
}).catch((error:Error) =>{
ToastUtils.showToast(error.message, 1000);
})
}
/**
... ...
... ... @@ -465,7 +465,10 @@ export struct ImageAndTextPageComponent {
// 初次进入详情页偶现获取失败,重新获取newsStatusOfUser对象
this.getInteractDataStatus()
}
}).catch((error:Error) =>{
ToastUtils.showToast(error.message, 1000);
})
}
/**
... ...
... ... @@ -537,6 +537,8 @@ export struct OperRowListView {
this.queryContentInteractCount()
}
console.log(TAG, '收藏点击 this.newsStatusOfUser', JSON.stringify(this.newsStatusOfUser))
}).catch((error:Error) =>{
ToastUtils.showToast(error.message, 1000);
})
}
... ...
... ... @@ -90,7 +90,10 @@ export struct OperationListView {
// console.log('点赞、取消点赞==', this.newsStatusOfUser?.likeStatus, this.interactData?.likeNum)
// this.queryContentInteractCount()
}
}).catch((error:Error) =>{
ToastUtils.showToast(error.message, 1000);
})
}
/**
... ... @@ -124,8 +127,11 @@ export struct OperationListView {
}
// console.log('收藏、取消收藏==', this.newsStatusOfUser?.collectStatus, this.interactData?.collectNum)
}
}).catch((error:Error) =>{
ToastUtils.showToast(error.message, 1000);
})
}
/**
... ...
... ... @@ -114,7 +114,10 @@ export struct PlayerRightView {
// this.queryContentInteractCount()
}
}).catch((error:Error) =>{
ToastUtils.showToast(error.message, 1000);
})
}
/**
... ... @@ -152,8 +155,11 @@ export struct PlayerRightView {
}
// console.log(TAG, '收藏、取消收藏==', this.newsStatusOfUser?.collectStatus, this.interactData?.collectNum)
}
}).catch((error:Error) =>{
ToastUtils.showToast(error.message, 1000);
})
}
/**
... ...