|
|
@ -560,7 +560,7 @@ define(['angular', 'decimal', 'uiRouter', 'ngBootSwitch', 'ngFileUpload'], funct
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}]);
|
|
|
|
}]);
|
|
|
|
|
|
|
|
|
|
|
|
app.controller('clientPaymentInfoCtrl', ['$scope', '$http', 'commonDialog', function ($scope, $http, commonDialog) {
|
|
|
|
app.controller('clientPaymentInfoCtrl', ['$scope', '$http', '$state', 'commonDialog', function ($scope, $http, $state, commonDialog) {
|
|
|
|
$scope.paymentInfo = $scope.partner;
|
|
|
|
$scope.paymentInfo = $scope.partner;
|
|
|
|
$scope.old_customer_surcharge_rate = angular.copy($scope.partner.customer_surcharge_rate);
|
|
|
|
$scope.old_customer_surcharge_rate = angular.copy($scope.partner.customer_surcharge_rate);
|
|
|
|
$scope.qrConfig = {currency: 'AUD'};
|
|
|
|
$scope.qrConfig = {currency: 'AUD'};
|
|
|
@ -829,7 +829,25 @@ define(['angular', 'decimal', 'uiRouter', 'ngBootSwitch', 'ngFileUpload'], funct
|
|
|
|
$scope.bankshow = false;
|
|
|
|
$scope.bankshow = false;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 新增需求,商户端刷新支付秘钥
|
|
|
|
|
|
|
|
$scope.refreshCredential = function () {
|
|
|
|
|
|
|
|
commonDialog.confirm({
|
|
|
|
|
|
|
|
title: 'Warning',
|
|
|
|
|
|
|
|
content: 'Refresh Credential will expire the current one, ' +
|
|
|
|
|
|
|
|
'which will cause the current payment service disabled. ' +
|
|
|
|
|
|
|
|
'Are you sure going on?'
|
|
|
|
|
|
|
|
}).then(function () {
|
|
|
|
|
|
|
|
$http.put('/sys/partners/' + $scope.partner.client_moniker + '/credential_code').then(function () {
|
|
|
|
|
|
|
|
$state.reload();
|
|
|
|
|
|
|
|
}, function (resp) {
|
|
|
|
|
|
|
|
commonDialog.alert({
|
|
|
|
|
|
|
|
title: 'Error',
|
|
|
|
|
|
|
|
content: resp.data.message,
|
|
|
|
|
|
|
|
type: 'error'
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
}]);
|
|
|
|
}]);
|
|
|
|
app.controller('clientPaymentMaterialCtrl', ['$scope', '$http', 'partner', function ($scope, $http, partner) {
|
|
|
|
app.controller('clientPaymentMaterialCtrl', ['$scope', '$http', 'partner', function ($scope, $http, partner) {
|
|
|
|