opt: 移除回复点赞冗余加载提示

This commit is contained in:
orz12
2023-12-21 21:06:35 +08:00
parent 9676d7d165
commit 6fa4f69af5

View File

@ -24,7 +24,7 @@ class _ZanButtonState extends State<ZanButton> {
// 评论点赞 // 评论点赞
onLikeReply() async { onLikeReply() async {
feedBack(); feedBack();
SmartDialog.showLoading(msg: 'pilipala ...'); // SmartDialog.showLoading(msg: 'pilipala ...');
ReplyItemModel replyItem = widget.replyItem!; ReplyItemModel replyItem = widget.replyItem!;
int oid = replyItem.oid!; int oid = replyItem.oid!;
int rpid = replyItem.rpid!; int rpid = replyItem.rpid!;
@ -32,7 +32,7 @@ class _ZanButtonState extends State<ZanButton> {
int action = replyItem.action == 0 ? 1 : 0; int action = replyItem.action == 0 ? 1 : 0;
var res = await ReplyHttp.likeReply( var res = await ReplyHttp.likeReply(
type: widget.replyType!.index, oid: oid, rpid: rpid, action: action); type: widget.replyType!.index, oid: oid, rpid: rpid, action: action);
SmartDialog.dismiss(); // SmartDialog.dismiss();
if (res['status']) { if (res['status']) {
SmartDialog.showToast(replyItem.action == 0 ? '点赞成功 👍' : '取消赞 💔'); SmartDialog.showToast(replyItem.action == 0 ? '点赞成功 👍' : '取消赞 💔');
if (action == 1) { if (action == 1) {