aboutSuggestionCtrl.js 999 B

123456789101112131415161718192021222324252627
  1. angular.module('push')
  2. .controller('aboutSuggestionCtrl', function ($scope, CommentService, UtilService, $timeout,CommonService) {
  3. $scope.message = {
  4. content: "",//问题描述
  5. contact: ""//联系方式
  6. };
  7. //提交反馈建议
  8. $scope.submitSuggestion = function () {
  9. $scope.showLoadingToast();
  10. CommentService.submitSuggestion($scope.message).then(function (response) {
  11. // console.log(response);
  12. if($scope.app){
  13. UtilService.showMess("亲!你好,非常感谢您的关注与支持,您反馈的宝贵建议我们会及时处理,感谢反馈!");
  14. }else{
  15. CommonService.showMessage("亲!你好,非常感谢您的关注与支持,您反馈的宝贵建议我们会及时处理,感谢反馈!",$scope);
  16. }
  17. $scope.hideLoadingToast();
  18. $timeout(function () {
  19. $scope.goback();
  20. }, 1500);
  21. }, function () {
  22. $scope.hideLoadingToast();
  23. })
  24. };
  25. });