|
|
@ -3815,6 +3815,7 @@ define(['angular', 'decimal', 'static/commons/commons', 'uiBootstrap', 'uiRouter
|
|
|
|
$scope.promotionalIsImage = true;
|
|
|
|
$scope.promotionalIsImage = true;
|
|
|
|
$scope.termsIsImage = true;
|
|
|
|
$scope.termsIsImage = true;
|
|
|
|
$scope.applicationIsImage = true;
|
|
|
|
$scope.applicationIsImage = true;
|
|
|
|
|
|
|
|
$scope.descIsImage = true;
|
|
|
|
if ($scope.file.client_bank_file && $scope.file.client_bank_file.endsWith('pdf')) {
|
|
|
|
if ($scope.file.client_bank_file && $scope.file.client_bank_file.endsWith('pdf')) {
|
|
|
|
$scope.bankIsImage = false;
|
|
|
|
$scope.bankIsImage = false;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -3848,6 +3849,9 @@ define(['angular', 'decimal', 'static/commons/commons', 'uiBootstrap', 'uiRouter
|
|
|
|
if ($scope.file.upay_application_form && $scope.file.upay_application_form.endsWith('pdf')) {
|
|
|
|
if ($scope.file.upay_application_form && $scope.file.upay_application_form.endsWith('pdf')) {
|
|
|
|
$scope.applicationIsImage = false;
|
|
|
|
$scope.applicationIsImage = false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if ($scope.file.upay_desc_file && $scope.file.upay_desc_file.endsWith('pdf')) {
|
|
|
|
|
|
|
|
$scope.descIsImage = false;
|
|
|
|
|
|
|
|
}
|
|
|
|
$scope.uploadApplicationFile = function (file) {
|
|
|
|
$scope.uploadApplicationFile = function (file) {
|
|
|
|
if (file != null) {
|
|
|
|
if (file != null) {
|
|
|
|
if (file.size > 3 * 1024 * 1024) {
|
|
|
|
if (file.size > 3 * 1024 * 1024) {
|
|
|
@ -4167,6 +4171,35 @@ define(['angular', 'decimal', 'static/commons/commons', 'uiBootstrap', 'uiRouter
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
$scope.uploadDescFile = function (file) {
|
|
|
|
|
|
|
|
if (file != null) {
|
|
|
|
|
|
|
|
if (file.size > 3 * 1024 * 1024) {
|
|
|
|
|
|
|
|
commonDialog.alert({title: 'Error', content: '文件大小不能超过3MB,请压缩后重试', type: 'error'})
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
$scope.descFileProgress = {value: 0};
|
|
|
|
|
|
|
|
Upload.upload({
|
|
|
|
|
|
|
|
url: '/attachment/files',
|
|
|
|
|
|
|
|
data: {file: file}
|
|
|
|
|
|
|
|
}).then(function (resp) {
|
|
|
|
|
|
|
|
$scope.uploadFile = {};
|
|
|
|
|
|
|
|
delete $scope.descFileProgress;
|
|
|
|
|
|
|
|
$scope.file.upay_desc_file = resp.data.url;
|
|
|
|
|
|
|
|
$scope.uploadFile.upay_desc_file = resp.data.url;
|
|
|
|
|
|
|
|
$scope.updateFile();
|
|
|
|
|
|
|
|
if ($scope.file.upay_desc_file.endsWith('pdf')) {
|
|
|
|
|
|
|
|
$scope.descIsImage = false;
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
$scope.descIsImage = true;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}, function (resp) {
|
|
|
|
|
|
|
|
delete $scope.descFileProgress;
|
|
|
|
|
|
|
|
commonDialog.alert({title: 'Upload Failed', content: resp.data.message, type: 'error'})
|
|
|
|
|
|
|
|
}, function (evt) {
|
|
|
|
|
|
|
|
$scope.descFileProgress.value = parseInt(100 * evt.loaded / evt.total);
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
$scope.saveIdInfo = function () {
|
|
|
|
$scope.saveIdInfo = function () {
|
|
|
|
if (!$scope.file.upay_risk_level) {
|
|
|
|
if (!$scope.file.upay_risk_level) {
|
|
|
|