Merge remote-tracking branch 'origin/develop' into develop

master
dulingling 5 years ago
commit 47a2076268

@ -147,6 +147,7 @@ define(['angular', 'decimal', 'static/commons/commons', 'uiBootstrap', 'uiRouter
controller: 'partnerDeviceCtrl' controller: 'partnerDeviceCtrl'
}).state('partners.detail.files', { }).state('partners.detail.files', {
url: '/files', url: '/files',
params:{commitType:"cross-border"},
templateUrl: '/static/payment/partner/templates/partner_auth_files.html', templateUrl: '/static/payment/partner/templates/partner_auth_files.html',
controller: 'partnerAuthFileCtrl' controller: 'partnerAuthFileCtrl'
}).state('partners.detail.files.CP_files', { }).state('partners.detail.files.CP_files', {
@ -3532,7 +3533,7 @@ define(['angular', 'decimal', 'static/commons/commons', 'uiBootstrap', 'uiRouter
$scope.listRedpackLogs(1); $scope.listRedpackLogs(1);
}]); }]);
app.controller('partnerAuthFileCtrl', ['$scope', '$http', '$rootScope', 'commonDialog', '$state', function ($scope, $http, $rootScope, commonDialog, $state) { app.controller('partnerAuthFileCtrl', ['$scope', '$http', '$rootScope', 'commonDialog', '$state', function ($scope, $http, $rootScope, commonDialog, $state) {
if ($scope.partner.client_type=='card-payment'){ if ($state.params.commitType=='card-payment'){
$state.go('partners.detail.files.MW_files'); $state.go('partners.detail.files.MW_files');
}else { }else {
$state.go('partners.detail.files.CP_files'); $state.go('partners.detail.files.CP_files');
@ -4148,7 +4149,8 @@ define(['angular', 'decimal', 'static/commons/commons', 'uiBootstrap', 'uiRouter
content: 'Upload Successful', content: 'Upload Successful',
type: 'success' type: 'success'
}); });
$state.go('partners.detail.files.MW_files', {reload: true}); $state.go('partners.detail.files',{clientMoniker:$scope.partner.client_moniker,
commitType: "card-payment"}, {reload: true});
}, function (resp) { }, function (resp) {
commonDialog.alert({title: 'Error', content: resp.data.message, type: 'error'}); commonDialog.alert({title: 'Error', content: resp.data.message, type: 'error'});
}) })

Loading…
Cancel
Save