fix 同步商户自助申请填写法人信息

master
luoyang 5 years ago
parent d28a4741be
commit 665623698a

@ -98,6 +98,9 @@ define(['angular', 'decimal', 'uiRouter', 'ngBootSwitch', 'ngFileUpload', 'uiBoo
$scope.checkboxOnclick = function () {
$scope.partner.sameAsContactPerson = !($scope.partner.sameAsContactPerson);
if ($scope.partner.sameAsContactPerson) {
if ($scope.partner.representativeInfo == null) {
$scope.partner.representativeInfo = {};
}
$scope.partner.representativeInfo.representative_person = $scope.partner.contact_person;
$scope.partner.representativeInfo.phone = $scope.partner.contact_phone.substring(1, $scope.partner.contact_phone.length);
$scope.partner.representativeInfo.email = $scope.partner.contact_email;
@ -108,6 +111,9 @@ define(['angular', 'decimal', 'uiRouter', 'ngBootSwitch', 'ngFileUpload', 'uiBoo
$scope.sameAddress = function (){
$scope.partner.sameAsAddress = !($scope.partner.sameAsAddress);
if($scope.partner.sameAsAddress){
if ($scope.partner.representativeInfo == null) {
$scope.partner.representativeInfo = {};
}
$scope.partner.representativeInfo.address = $scope.partner.address;
$scope.partner.representativeInfo.suburb = $scope.partner.suburb;
$scope.partner.representativeInfo.postcode = $scope.partner.postcode;

Loading…
Cancel
Save