|
@@ -158,6 +158,7 @@
|
|
|
}
|
|
|
}
|
|
|
this.$nextTick(() => {
|
|
|
+ this.$forceUpdate();
|
|
|
that.mescroll.endBySize(curPageLen, totalPage)
|
|
|
});
|
|
|
uni.hideLoading()
|
|
@@ -238,7 +239,7 @@
|
|
|
title: '点赞成功!',
|
|
|
duration: 2000
|
|
|
});
|
|
|
- this.loadData()
|
|
|
+ that.loadData()
|
|
|
})
|
|
|
} else {
|
|
|
this.$request.baseRequest('admin.unimall.circleFriendsDetail', 'cancelLike', {
|
|
@@ -259,15 +260,17 @@
|
|
|
title: '取消成功!',
|
|
|
duration: 2000
|
|
|
});
|
|
|
- this.loadData()
|
|
|
+ that.loadData()
|
|
|
})
|
|
|
}
|
|
|
},
|
|
|
|
|
|
- doComment(item, comment) {debugger
|
|
|
+ doComment(item, comment) {
|
|
|
this.selectedComment = comment;
|
|
|
if(!this.selectedComment){
|
|
|
- this.selectedComment.id = ''
|
|
|
+ this.selectedComment = {
|
|
|
+ id:''
|
|
|
+ }
|
|
|
}
|
|
|
this.selectedCircle = item;
|
|
|
if (comment != null && comment.userId == this.userInfo.id) {
|
|
@@ -280,22 +283,32 @@
|
|
|
},
|
|
|
|
|
|
async submitComment() {
|
|
|
- debugger
|
|
|
// if (!this.commentValue) {
|
|
|
// uni.$u.toast('请输入内容');
|
|
|
// return;
|
|
|
// }
|
|
|
-
|
|
|
- this.formData = {
|
|
|
- circleFriendsId: this.selectedCircle.id,
|
|
|
- commonId: this.userInfo.id,
|
|
|
- head: this.userInfo.head,
|
|
|
- nickname: this.userInfo.nickname,
|
|
|
- commentContent:this.commentValue,
|
|
|
- commentId:this.selectedComment.id,
|
|
|
- commentName:this.selectedComment.nickname,
|
|
|
+ if(this.selectedComment.id){
|
|
|
+ this.formData = {
|
|
|
+ circleFriendsId: this.selectedCircle.id,
|
|
|
+ commonId: this.userInfo.id,
|
|
|
+ head: this.userInfo.head,
|
|
|
+ nickname: this.userInfo.nickname,
|
|
|
+ commentContent:this.commentValue,
|
|
|
+ commentId:this.selectedComment.id,
|
|
|
+ commentName:this.selectedComment.nickname,
|
|
|
+ }
|
|
|
+ }else{
|
|
|
+ this.formData = {
|
|
|
+ circleFriendsId: this.selectedCircle.id,
|
|
|
+ commonId: this.userInfo.id,
|
|
|
+ head: this.userInfo.head,
|
|
|
+ nickname: this.userInfo.nickname,
|
|
|
+ commentContent:this.commentValue,
|
|
|
+ commentName:this.selectedComment.nickname,
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
+
|
|
|
this.formData.interactionFlag = 2
|
|
|
this.$request.baseRequest('admin.unimall.circleFriendsDetail', 'add', {
|
|
|
circleFriendsDetail: JSON.stringify(this.formData)
|
|
@@ -314,6 +327,7 @@
|
|
|
title: '评论成功!',
|
|
|
duration: 2000
|
|
|
});
|
|
|
+ this.showInput =false
|
|
|
this.loadData()
|
|
|
})
|
|
|
|