12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- angular.module('push')
- .controller('activityCompanyViewFeedListDetailCtrl', function ($scope, $stateParams, ActivityService, UtilService) {
- /* $scope.setStatusBar(1);*/
- var folupid = $stateParams.folupid;
- var getFollowupDetail = function () {
- $scope.showLoadingToast();
- ActivityService.getFollowupDetail(folupid,2).then(function (response) {
- // console.log(response);
- $scope.followup = response;
- $scope.hideLoadingToast();
- }, function () {
- $scope.hideLoadingToast();
- })
- };
- getFollowupDetail();
- $scope.showCommentFloor = function () {
- $scope.showComment = false;
- };
- $scope.hiddenComment = function () {
- $scope.showComment = true;
- };
- //评分
- $scope.starnum = 0;
- $scope.evaluateNum = function (num) {
- $scope.starnum = num;
- };
- //详情页评论
- $scope.showComment = true;
- $scope.publishComment = function () {
- $scope.showComment = true;
- var content = $scope.comment.content;
- //提交评论信息
- $scope.showLoadingToast();
- CommentService.publishComment(0, infoid, infotype, "", "", content, infocomefrom, $scope.starnum).then(function () {
- UtilService.showMess("评论成功");
- $scope.comment.content = "";
- $scope.starnum = 0;
- $scope.hideLoadingToast();
- }, function () {
- $scope.hideLoadingToast();
- });
- };
- });
|