123456789101112131415161718192021222324252627 |
- angular.module('push')
- .controller('aboutSuggestionCtrl', function ($scope, CommentService, UtilService, $timeout,CommonService) {
- $scope.message = {
- content: "",//问题描述
- contact: ""//联系方式
- };
- //提交反馈建议
- $scope.submitSuggestion = function () {
- $scope.showLoadingToast();
- CommentService.submitSuggestion($scope.message).then(function (response) {
- // console.log(response);
- if($scope.app){
- UtilService.showMess("亲!你好,非常感谢您的关注与支持,您反馈的宝贵建议我们会及时处理,感谢反馈!");
- }else{
- CommonService.showMessage("亲!你好,非常感谢您的关注与支持,您反馈的宝贵建议我们会及时处理,感谢反馈!",$scope);
- }
- $scope.hideLoadingToast();
- $timeout(function () {
- $scope.goback();
- }, 1500);
- }, function () {
- $scope.hideLoadingToast();
- })
- };
- });
|