result.js 638 B

12345678910111213141516171819202122
  1. app.controller('VoideResultCtrl', [ '$rootScope', '$scope', '$stateParams', '$timeout', function($rootScope, $scope, $stateParams, $timeout) {
  2. $scope.showcheckin=false;
  3. if ($stateParams == undefined || $stateParams.enrol_id == undefined) {
  4. $.alert('参数错误,无法获取报考详细信息', function() {
  5. $rootScope.goWechat();
  6. });
  7. return;
  8. }
  9. $scope.getEnrol = function(autopay) {
  10. $rootScope.ajaxRequest({
  11. url : '../enrol/std/enrol/find.htm',
  12. data : {
  13. enrol_id : $stateParams.enrol_id,
  14. aspect_batch : 1
  15. }
  16. }, function(response) {
  17. $scope.EnrolMap = response.map;
  18. });
  19. }
  20. $scope.getEnrol ();
  21. } ])