|
|
@ -15,7 +15,6 @@ define(['angular', 'angularSanitize', 'angularAnimate', 'angularMessages', 'uiRo
|
|
|
|
}]);
|
|
|
|
}]);
|
|
|
|
app.controller('indexCtrl', ['$scope', '$rootScope', '$http', '$log', '$timeout', '$interval', '$q', '$uibModal', 'commonDialog', 'myLoginLogView',
|
|
|
|
app.controller('indexCtrl', ['$scope', '$rootScope', '$http', '$log', '$timeout', '$interval', '$q', '$uibModal', 'commonDialog', 'myLoginLogView',
|
|
|
|
function ($scope, $rootScope, $http, $log, $timeout, $interval, $q, $uibModal, commonDialog, myLoginLogView) {
|
|
|
|
function ($scope, $rootScope, $http, $log, $timeout, $interval, $q, $uibModal, commonDialog, myLoginLogView) {
|
|
|
|
|
|
|
|
|
|
|
|
var stompClient = null;
|
|
|
|
var stompClient = null;
|
|
|
|
var newPartnerGuide_counts = 0;
|
|
|
|
var newPartnerGuide_counts = 0;
|
|
|
|
var pwdcount = 0;
|
|
|
|
var pwdcount = 0;
|
|
|
@ -44,15 +43,42 @@ define(['angular', 'angularSanitize', 'angularAnimate', 'angularMessages', 'uiRo
|
|
|
|
})
|
|
|
|
})
|
|
|
|
pwdcount++;
|
|
|
|
pwdcount++;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$http.get("/client/partner_info/PINE/aps_kyc").then(function (resp) {
|
|
|
|
|
|
|
|
if (resp.data != null && resp.data != "") {
|
|
|
|
|
|
|
|
$uibModal.open({
|
|
|
|
|
|
|
|
templateUrl: '/static/payment/partner/templates/aps_kyc.html',
|
|
|
|
|
|
|
|
size: 'lg',
|
|
|
|
|
|
|
|
backdrop: false,
|
|
|
|
|
|
|
|
controller: ['$http', '$scope', function ($http, $scope) {
|
|
|
|
|
|
|
|
$http.get("/client/partner_info/PINE/aps_kyc").then(function (resp) {
|
|
|
|
|
|
|
|
$scope.item = resp.data
|
|
|
|
|
|
|
|
document.getElementById("aps_kyc_info").innerHTML = resp.data.content
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
$scope.updateApsKyc = function (status) {
|
|
|
|
|
|
|
|
var item = {};
|
|
|
|
|
|
|
|
item.id = $scope.item.id;
|
|
|
|
|
|
|
|
item.status = status;
|
|
|
|
|
|
|
|
$http.put("/client/partner_info/aps_kyc", item).then(function () {
|
|
|
|
|
|
|
|
$scope.$close();
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}],
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
console.log("wuwuwuuwuw:", resp.data)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
$scope.ComplianceToperfect = function () {
|
|
|
|
$scope.ComplianceToperfect = function () {
|
|
|
|
$uibModal.open({
|
|
|
|
$uibModal.open({
|
|
|
|
templateUrl: '/static/payment/partner/templates/compliance_files_advice.html',
|
|
|
|
templateUrl: '/static/payment/partner/templates/compliance_files_advice.html',
|
|
|
|
size: 'lg',
|
|
|
|
size: 'lg',
|
|
|
|
controller: 'partnerFilesCtrl',
|
|
|
|
controller: 'partnerFilesCtrl',
|
|
|
|
resolve: {
|
|
|
|
resolve: {
|
|
|
|
file: ['$http', function ($http) {
|
|
|
|
file: ['$http', function ($http) {
|
|
|
|
return $http.get('/client/partner_info/compliance/clientViewFiles');
|
|
|
|
return $http.get('/client/partner_info/compliance/clientViewFiles');
|
|
|
|
}],
|
|
|
|
}],
|
|
|
|
kycFile: ['$http', function ($http) {
|
|
|
|
kycFile: ['$http', function ($http) {
|
|
|
|
return $http.get('/client/partner_info/kyc/clientViewFiles');
|
|
|
|
return $http.get('/client/partner_info/kyc/clientViewFiles');
|
|
|
|
}]
|
|
|
|
}]
|
|
|
@ -61,7 +87,7 @@ define(['angular', 'angularSanitize', 'angularAnimate', 'angularMessages', 'uiRo
|
|
|
|
|
|
|
|
|
|
|
|
})
|
|
|
|
})
|
|
|
|
};
|
|
|
|
};
|
|
|
|
if(($scope.currentUser.lessComplianceFiles ||$scope.currentUser.lessKycFiles) && complianceNoticeCount==0 && $scope.currentUser.role!=3) {
|
|
|
|
if (($scope.currentUser.lessComplianceFiles || $scope.currentUser.lessKycFiles) && complianceNoticeCount == 0 && $scope.currentUser.role != 3) {
|
|
|
|
$scope.ComplianceToperfect();
|
|
|
|
$scope.ComplianceToperfect();
|
|
|
|
complianceNoticeCount++;
|
|
|
|
complianceNoticeCount++;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -478,7 +504,7 @@ define(['angular', 'angularSanitize', 'angularAnimate', 'angularMessages', 'uiRo
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}]);
|
|
|
|
}]);
|
|
|
|
app.controller('partnerFilesCtrl', ['$scope', '$http', '$sce', 'file', 'kycFile', function ($scope, $http, $sce, file , kycFile) {
|
|
|
|
app.controller('partnerFilesCtrl', ['$scope', '$http', '$sce', 'file', 'kycFile', function ($scope, $http, $sce, file, kycFile) {
|
|
|
|
$scope.file = angular.copy(file.data);
|
|
|
|
$scope.file = angular.copy(file.data);
|
|
|
|
$scope.kycFile = angular.copy(kycFile.data);
|
|
|
|
$scope.kycFile = angular.copy(kycFile.data);
|
|
|
|
var lang = navigator.language || navigator.userLanguage; //常规浏览器语言和IE浏览器
|
|
|
|
var lang = navigator.language || navigator.userLanguage; //常规浏览器语言和IE浏览器
|
|
|
|