|
|
|
@ -1888,6 +1888,7 @@ define(['angular', 'decimal', 'static/commons/commons', 'uiBootstrap', 'uiRouter
|
|
|
|
|
$scope.rate.bestpay_rate_value = parseFloat($scope.sysRateConfig.t1.Bestpay);
|
|
|
|
|
$scope.rate.jd_rate_value = parseFloat($scope.sysRateConfig.t1.JDpay);
|
|
|
|
|
$scope.rate.hf_rate_value = parseFloat($scope.sysRateConfig.t1.HFpay);
|
|
|
|
|
$scope.rate.Rpay_rate_value = parseFloat($scope.sysRateConfig.t1.Rpay);
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
case '2': {
|
|
|
|
@ -1897,6 +1898,7 @@ define(['angular', 'decimal', 'static/commons/commons', 'uiBootstrap', 'uiRouter
|
|
|
|
|
$scope.rate.alipayonline_rate_value = parseFloat($scope.sysRateConfig.t2.AlipayOnline);
|
|
|
|
|
$scope.rate.jd_rate_value = parseFloat($scope.sysRateConfig.t2.JDpay);
|
|
|
|
|
$scope.rate.hf_rate_value = parseFloat($scope.sysRateConfig.t2.HFpay);
|
|
|
|
|
$scope.rate.Rpay_rate_value = parseFloat($scope.sysRateConfig.t2.Rpay);
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
case '3': {
|
|
|
|
@ -1906,6 +1908,7 @@ define(['angular', 'decimal', 'static/commons/commons', 'uiBootstrap', 'uiRouter
|
|
|
|
|
$scope.rate.alipayonline_rate_value = parseFloat($scope.sysRateConfig.t3.AlipayOnline);
|
|
|
|
|
$scope.rate.jd_rate_value = parseFloat($scope.sysRateConfig.t3.JDpay);
|
|
|
|
|
$scope.rate.hf_rate_value = parseFloat($scope.sysRateConfig.t3.HFpay);
|
|
|
|
|
$scope.rate.Rpay_rate_value = parseFloat($scope.sysRateConfig.t3.Rpay);
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -3094,10 +3097,10 @@ define(['angular', 'decimal', 'static/commons/commons', 'uiBootstrap', 'uiRouter
|
|
|
|
|
commonDialog.alert({title: 'Error', content: resp.data.message, type: 'error'})
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
$scope.applySubMerchantId = function () {
|
|
|
|
|
$scope.applyWxSubMerchantId = function () {
|
|
|
|
|
$uibModal.open({
|
|
|
|
|
templateUrl: '/static/payment/partner/templates/apply_sub_merchant_id.html',
|
|
|
|
|
controller: 'applySubMerchantIdCtrl',
|
|
|
|
|
templateUrl: '/static/payment/partner/templates/apply_wx_sub_merchant_id.html',
|
|
|
|
|
controller: 'applyWxSubMerchantIdCtrl',
|
|
|
|
|
resolve: {
|
|
|
|
|
subMerchantInfo: function () {
|
|
|
|
|
return $scope.partner;
|
|
|
|
@ -3109,10 +3112,26 @@ define(['angular', 'decimal', 'static/commons/commons', 'uiBootstrap', 'uiRouter
|
|
|
|
|
}).result.then(function () {
|
|
|
|
|
$scope.loadSubMerchantInfos();
|
|
|
|
|
})
|
|
|
|
|
};
|
|
|
|
|
$scope.applyRpaySubMerchantId = function () {
|
|
|
|
|
$http.post('/sys/partners/' + $scope.partner.client_moniker + '/registRpaySubMerchantId').then(function (resp) {
|
|
|
|
|
commonDialog.alert({
|
|
|
|
|
title: 'Success',
|
|
|
|
|
content: 'Modify Wechat Sub Merchant ID successfully',
|
|
|
|
|
type: 'success'
|
|
|
|
|
});
|
|
|
|
|
$state.reload();
|
|
|
|
|
}, function (resp) {
|
|
|
|
|
commonDialog.alert({title: 'Error', content: resp.data.message, type: 'error'})
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
$scope.loadSubMerchantInfos();
|
|
|
|
|
}]);
|
|
|
|
|
app.controller('applySubMerchantIdCtrl', ['$scope', '$http', '$uibModal', '$state', 'subMerchantInfo', '$filter', 'merchantIds', 'commonDialog', function ($scope, $http, $uibModal, $state, subMerchantInfo, $filter, merchantIds, commonDialog) {
|
|
|
|
|
app.controller('applyWxSubMerchantIdCtrl', ['$scope', '$http', '$uibModal', '$state', 'subMerchantInfo', '$filter', 'merchantIds', 'commonDialog', function ($scope, $http, $uibModal, $state, subMerchantInfo, $filter, merchantIds, commonDialog) {
|
|
|
|
|
$scope.wxIndustries = angular.copy(wxMerchantIndustries);
|
|
|
|
|
$scope.subMerchantInfo = angular.copy(subMerchantInfo);
|
|
|
|
|
$scope.merchantIds = merchantIds.data;
|
|
|
|
|