|
@@ -330,6 +330,34 @@
|
|
});
|
|
});
|
|
};
|
|
};
|
|
|
|
|
|
|
|
+ // 举报或拉黑
|
|
|
|
+ $scope.report = function(ev,dream_id,interaction_id,user_id){
|
|
|
|
+ ev.stopPropagation();
|
|
|
|
+ msg.confirm('举报或拉黑','','举报','拉黑').then(function(result){
|
|
|
|
+ if(result==true){
|
|
|
|
+ msg.confirm('确定拉黑?').then(function(result){
|
|
|
|
+ if(result==true){
|
|
|
|
+ homeService.report(dream_id,interaction_id,user_id).then(function(result){
|
|
|
|
+ if(result.data.status_code==0){
|
|
|
|
+ msg.text('已拉黑');
|
|
|
|
+ $scope.load(dream_id);
|
|
|
|
+ }
|
|
|
|
+ },function(error){
|
|
|
|
+
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ else {
|
|
|
|
+ msg.confirm('确定举报?').then(function(result){
|
|
|
|
+ if(result==true){
|
|
|
|
+ $state.go('app.homeContact');
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ };
|
|
|
|
+
|
|
$scope.load = function (id,dream_user_id,interaction_id) {
|
|
$scope.load = function (id,dream_user_id,interaction_id) {
|
|
homeService.dreamDetail(id,dream_user_id,interaction_id).then(function (result) {
|
|
homeService.dreamDetail(id,dream_user_id,interaction_id).then(function (result) {
|
|
console.log(result);
|
|
console.log(result);
|
|
@@ -607,6 +635,7 @@
|
|
$scope.vm.comment='';
|
|
$scope.vm.comment='';
|
|
};
|
|
};
|
|
$scope.replayOther = function ($event, name, to_userid, index,currentindex) {
|
|
$scope.replayOther = function ($event, name, to_userid, index,currentindex) {
|
|
|
|
+ debugger;
|
|
$event.stopPropagation();
|
|
$event.stopPropagation();
|
|
if($scope.dream.interactions[index].comments[currentindex].user_id!=$scope.user.id){
|
|
if($scope.dream.interactions[index].comments[currentindex].user_id!=$scope.user.id){
|
|
$scope.input.focus = true;
|
|
$scope.input.focus = true;
|