12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- angular.module('push')
- .controller('accountQualifyContentCtrl', function ($scope, $stateParams, AccountService, UtilService) {
- if($scope.app){
- $scope.setStatusBar(0);
- }
- //获取认证信息
- var getQualifyInfo = function () {
- $scope.showLoadingToast();
- AccountService.getSysUsersAuthen($stateParams.messageid).then(function (response) {
- // console.log(response);
- angular.forEach(response, function (value) {
- if (value.info.type == 1) {
- $scope.identify = value.info;
- }
- if (value.info.type == 2) {
- $scope.job = value.info;
- }
- if (value.info.type == 3) {
- $scope.company = value.info;
- }
- });
- $scope.hideLoadingToast();
- }, function () {
- $scope.hideLoadingToast();
- })
- };
- getQualifyInfo();
- $scope.goUnitIdentify = function () {
- if (angular.isUndefined($scope.identify) || $scope.identify.authenstatus == 0) {
- UtilService.showMess("身份证认证通过后,方可进行单位证明认证");
- return;
- }
- if (angular.isDefined($scope.company) && $scope.company.authenstatus == 1) {
- UtilService.showMess("单位信息已在审核中...");
- return;
- }
- $scope.go("unitIdentify", {company: angular.toJson($scope.company)});
- };
- $scope.goPersonIdentify = function () {
- if (angular.isDefined($scope.identify) && $scope.identify.authenstatus == 1) {
- UtilService.showMess("身份证信息已在审核中...");
- return;
- }
- $scope.go("personIdentify", {identify: angular.toJson($scope.identify)});
- };
- $scope.goJobIdentify = function () {
- if (angular.isUndefined($scope.identify) || $scope.identify.authenstatus == 0) {
- UtilService.showMess("身份证认证通过后,方可进行在职证明认证");
- return;
- }
- if (angular.isDefined($scope.job) && $scope.job.authenstatus == 1) {
- UtilService.showMess("在职信息已在审核中...");
- return;
- }
- $scope.go("jobIdentify", {job: angular.toJson($scope.job)});
- };
- });
|