fix 优化前端代码

master
luoyang 5 years ago
parent eca84799a1
commit 801aab3d83

@ -4,11 +4,11 @@ define(['angular', 'static/commons/commons', 'uiBootstrap', 'uiRouter', 'ngBootS
app.config(['$stateProvider', function ($stateProvider) {
$stateProvider.state('partnerKYCProgress', {
url: '/partners/partnerKYCProgress',
templateUrl: 'static/payment/kyc/templates/partner_kyc_progress.html',
templateUrl: 'static/payment/kyc/templates/bd_client_progress.html',
controller: 'partnerKYCProgressCtrl'
}).state('partnerKYCProgress.bdHelpKycProgress', {
url: '/{clientMoniker}/bdHelpKycProgress',
templateUrl: 'static/payment/kyc/templates/bd_kyc_progress.html',
templateUrl: 'static/payment/kyc/templates/bd_help_client_progress.html',
controller: 'bdHelpKYCProgressCtrl',
resolve: {
file: ['$http','$stateParams',function ($http, $stateParams) {
@ -17,7 +17,7 @@ define(['angular', 'static/commons/commons', 'uiBootstrap', 'uiRouter', 'ngBootS
}
}).state('partnerKYCProgress.partner_detail', {
url: '/{clientMoniker}/partner_detail',
templateUrl: '/static/payment/kyc/templates/bd_kyc_partner_detail.html',
templateUrl: '/static/payment/kyc/templates/bd_help_client_detail.html',
controller: 'partnerDetailForBDHelpCtrl',
resolve: {
partner: ['$http', '$stateParams', function ($http, $stateParams) {

@ -4,7 +4,7 @@ define(['angular', 'static/commons/commons', 'uiBootstrap', 'uiRouter', 'ngBootS
app.config(['$stateProvider', function ($stateProvider) {
$stateProvider.state('kyc_files_perfect', {
url: '/kyc_files_perfect',
templateUrl: '/static/payment/kyc/templates/client_kyc_files_complete.html',
templateUrl: '/static/payment/kyc/templates/client_kyc_files_progress.html',
controller: 'clientCommitToKycFilesCtrl',
resolve: {
file: ['$http', function ($http) {

@ -105,15 +105,13 @@ define(['angular', 'static/commons/commons', 'uiBootstrap', 'uiRouter', 'ngBootS
title: 'Confirm!',
content: '确认是否通过商户合规文件?'
}).then(function () {
$http.put('/compliance/audit/'+$scope.file.client.client_id+'/pass/complianceFile',{}).then(function (resp) {
$http.put('/compliance/audit/' + $scope.file.client.client_id + '/pass/complianceFile', {}).then(function (resp) {
$state.reload();
}, function (resp) {
commonDialog.alert({title: 'Error', content: resp.data.message, type: 'error'});
})
})
}
};
$scope.refusePartnerComplianceFiles = function (obj) {
var partner = angular.copy(obj);
$uibModal.open({

Loading…
Cancel
Save