From 38bf5b0367e159dff3a5e1105dcc8cdbcbc9b8c8 Mon Sep 17 00:00:00 2001 From: zhouhao <787329763@qq.com> Date: Mon, 10 Jan 2022 15:05:30 +0800 Subject: [PATCH] 合同预览 --- src/api/index.js | 4 ++++ src/views/main/addBankcard.vue | 7 +++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/api/index.js b/src/api/index.js index a726c98..5d0f94d 100644 --- a/src/api/index.js +++ b/src/api/index.js @@ -58,6 +58,10 @@ signContInfo(data) { return $http.post('/inside/signContInfo', data); }, + //合同预览 + getContInfo(data) { + return $http.post('/inside/getContInfo', data); + }, // ======================================== } diff --git a/src/views/main/addBankcard.vue b/src/views/main/addBankcard.vue index da68f11..ccddbae 100644 --- a/src/views/main/addBankcard.vue +++ b/src/views/main/addBankcard.vue @@ -261,10 +261,13 @@ objUrl = `${window.location.origin}` } this.contractUrl=[] - this.contractUrl =this.dataForm.contractUrl.map(element => { + this.$api.getContInfo({bizId: this.bizId, bizType: this.bizType}).then(res=>{ + this.contractUrl =res.body.contractUrl.map(element => { return element = objUrl+element }) - ImagePreview(this.dataForm.contractUrl); + ImagePreview(this.contractUrl); + }) + }, //图片click imgClick: function () { -- Gitblit v1.8.0