| xqd
@@ -467,17 +467,22 @@
|
|
|
$scope.dream.interactions[index].showmore = true;
|
|
|
}
|
|
|
}
|
|
|
- $scope.replay = function ($event, name, index) {
|
|
|
-
|
|
|
+ $scope.replay = function ($event, name, index,currentindex) {
|
|
|
$event.stopPropagation();
|
|
|
- $scope.input.focus = true;
|
|
|
- $scope.input.show = true;
|
|
|
- angular.forEach($scope.dream.interactions, function (item) {
|
|
|
- item.show = false;
|
|
|
- })
|
|
|
- $scope.dream.interactions[index].show = true;
|
|
|
- $scope.input.placeholder = "评论" + name+":";
|
|
|
- $scope.vm.title='';
|
|
|
+ if($scope.dream.interactions[index].comments[currentindex].user_id!=$scope.user.id){
|
|
|
+ $scope.input.focus = true;
|
|
|
+ $scope.input.show = true;
|
|
|
+ angular.forEach($scope.dream.interactions, function (item) {
|
|
|
+ item.show = false;
|
|
|
+ })
|
|
|
+ $scope.dream.interactions[index].show = true;
|
|
|
+ $scope.input.placeholder = "评论" + name+":";
|
|
|
+ $scope.vm.title='';
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ msg.alert("评论","是否删除评论");
|
|
|
+ }
|
|
|
+
|
|
|
};
|
|
|
|
|
|
$scope.submitComment = function (index) {
|