12345678910111213141516171819202122232425262728293031323334353637383940 |
- angular.module('push')
- .controller('successIdentifyCtrl', function ($scope, AccountService) {
- if($scope.app){
- $scope.setStatusBar(0);
- }
- $scope.defaultLan = UserService.defaultLan;
- $scope.doctype3 = false;
- $scope.doctype4 = false;
- $scope.doctype5 = false;
- $scope.authenstatus = -1;// 认证状态:0未认证 1认证中 2已认证 3认证失败
- var getAuthInfo = function () {
- $scope.showLoadingToast();
- AccountService.getAuthInfo(0).then(function (response) {
- console.log(response);
- if (angular.isDefined(response.info)) {
- $scope.person = response.info;
- // 遍历找出身份证正反面
- if (angular.isDefined(response.info.imagelist) && response.info.imagelist.length > 0) {
- // doctype: 3在职证明 4组织机构代码 5营业执照
- angular.forEach(response.info.imagelist, function (val, ind) {
- if (val.doctype == 3) {
- $scope.doctype3 = true;
- }
- if (val.doctype == 4) {
- $scope.doctype4 = true;
- }
- if (val.doctype == 5) {
- $scope.doctype5 = true;
- }
- })
- }
- }
- $scope.hideLoadingToast();
- }, function () {
- $scope.hideLoadingToast();
- })
- };
- getAuthInfo();
- });
|