fix 自助申请

master
luoyang 5 years ago
parent f5a1de1d33
commit 2cb35958f1

@ -342,6 +342,9 @@ angular.module('applyPartnerApp', ['ngMessages']).controller('applyPartnerCtrl',
return;
}
if ($scope.partner.client_pay_type.indexOf('1') >= 0 && $scope.partner.client_pay_type.indexOf('2') >= 0) {
if (!($scope.partner.client_pay_desc instanceof Array)) {
$scope.partner.client_pay_desc = $scope.partner.client_pay_desc.split(',');
}
var fristDesc = $scope.partner.client_pay_desc[0];
var lastDesc = $scope.partner.client_pay_desc[($scope.partner.client_pay_desc.length - 1)];
if (parseInt(fristDesc) > 5 || parseInt(lastDesc) < 6) {
@ -356,7 +359,7 @@ angular.module('applyPartnerApp', ['ngMessages']).controller('applyPartnerCtrl',
return;
}
}
if ($scope.partner.client_pay_type instanceof Array) {
if ($scope.partner.client_pay_type instanceof Array || $scope.partner.client_pay_desc instanceof Array) {
$scope.partner.client_pay_type = $scope.partner.client_pay_type.join(',');
$scope.partner.client_pay_desc = $scope.partner.client_pay_desc.join(',');
}

Loading…
Cancel
Save