图片路径修改
This commit is contained in:
parent
b3cf9f9151
commit
49f174514a
|
|
@ -323,7 +323,7 @@
|
|||
if (response.data.img && JSON.parse(response.data.img).length > 0) {
|
||||
JSON.parse(response.data.img).forEach(item => {
|
||||
imgData.push({
|
||||
url: process.env.VUE_APP_BASE_API + item.url,
|
||||
url: item.url,
|
||||
});
|
||||
});
|
||||
}
|
||||
|
|
@ -334,7 +334,7 @@
|
|||
if (response.data.zgImg) {
|
||||
JSON.parse(response.data.zgImg).forEach(item => {
|
||||
this.templateList.push({
|
||||
url: process.env.VUE_APP_BASE_API + item.url,
|
||||
url: item.url,
|
||||
fileName: item.url,
|
||||
});
|
||||
});
|
||||
|
|
@ -358,7 +358,7 @@
|
|||
if (response.data.img && JSON.parse(response.data.img).length > 0) {
|
||||
JSON.parse(response.data.img).forEach(item => {
|
||||
imgData.push({
|
||||
url: process.env.VUE_APP_BASE_API + item.url,
|
||||
url: item.url,
|
||||
});
|
||||
});
|
||||
}
|
||||
|
|
@ -369,7 +369,7 @@
|
|||
if (response.data.zgImg) {
|
||||
JSON.parse(response.data.zgImg).forEach(item => {
|
||||
this.templateList.push({
|
||||
url: process.env.VUE_APP_BASE_API + item.url,
|
||||
url:item.url,
|
||||
fileName: item.url,
|
||||
});
|
||||
});
|
||||
|
|
|
|||
|
|
@ -627,42 +627,42 @@ function setData(data) {
|
|||
$("#preview1").css("display","");
|
||||
var demo1 = $("#demo1");
|
||||
var html = '';
|
||||
html += '<img src="' + path1 + '" id="1" name="1" ondblclick="delPhoto(1)" style="height: 80px;width: 80px;margin-right: 10px" class="layui-upload-img ">';
|
||||
html += '<img src="' + data.businessURL + '" id="1" name="1" ondblclick="delPhoto(1)" style="height: 80px;width: 80px;margin-right: 10px" class="layui-upload-img ">';
|
||||
demo1.append(html);
|
||||
|
||||
var path2 = smz_ht_url +"/"+data.sealURL;
|
||||
$("#preview2").css("display","");
|
||||
var demo2 = $("#demo2");
|
||||
var html = '';
|
||||
html += '<img src="' + path2 + '" id="2" name="2" ondblclick="delPhoto(2)" style="height: 80px;width: 80px;margin-right: 10px" class="layui-upload-img ">';
|
||||
html += '<img src="' + data.sealURL + '" id="2" name="2" ondblclick="delPhoto(2)" style="height: 80px;width: 80px;margin-right: 10px" class="layui-upload-img ">';
|
||||
demo2.append(html);
|
||||
|
||||
var path3 = smz_ht_url +"/"+data.signatureURL;
|
||||
$("#preview3").css("display","");
|
||||
var demo3 = $("#demo3");
|
||||
var html = '';
|
||||
html += '<img src="' + path3 + '" id="3" name="3" ondblclick="delPhoto(3)" style="height: 80px;width: 80px;margin-right: 10px" class="layui-upload-img ">';
|
||||
html += '<img src="' + data.signatureURL + '" id="3" name="3" ondblclick="delPhoto(3)" style="height: 80px;width: 80px;margin-right: 10px" class="layui-upload-img ">';
|
||||
demo3.append(html);
|
||||
|
||||
var path4 = smz_ht_url +"/"+data.safetyURL;
|
||||
$("#preview4").css("display","");
|
||||
var demo4 = $("#demo4");
|
||||
var html = '';
|
||||
html += '<img src="' + path4 + '" id="4" name="4" ondblclick="delPhoto(4)" style="height: 80px;width: 80px;margin-right: 10px" class="layui-upload-img ">';
|
||||
html += '<img src="' + data.safetyURL + '" id="4" name="4" ondblclick="delPhoto(4)" style="height: 80px;width: 80px;margin-right: 10px" class="layui-upload-img ">';
|
||||
demo4.append(html);
|
||||
|
||||
var path5 = smz_ht_url +"/"+data.idCardJustURL;
|
||||
$("#preview5").css("display","");
|
||||
var demo5 = $("#demo5");
|
||||
var html = '';
|
||||
html += '<img src="' + path5 + '" id="5" name="5" ondblclick="delPhoto(5)" style="height: 80px;width: 80px;margin-right: 10px" class="layui-upload-img ">';
|
||||
html += '<img src="' + data.idCardJustURL + '" id="5" name="5" ondblclick="delPhoto(5)" style="height: 80px;width: 80px;margin-right: 10px" class="layui-upload-img ">';
|
||||
demo5.append(html);
|
||||
|
||||
var path6 = smz_ht_url +"/"+data.idCardBackURL;
|
||||
$("#preview6").css("display","");
|
||||
var demo6 = $("#demo6");
|
||||
var html = '';
|
||||
html += '<img src="' + path6 + '" id="6" name="6" ondblclick="delPhoto(6)" style="height: 80px;width: 80px;margin-right: 10px" class="layui-upload-img ">';
|
||||
html += '<img src="' + data.idCardBackURL + '" id="6" name="6" ondblclick="delPhoto(6)" style="height: 80px;width: 80px;margin-right: 10px" class="layui-upload-img ">';
|
||||
demo6.append(html);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -282,14 +282,14 @@ function setData(data) {
|
|||
$("#preview1").css("display","");
|
||||
var demo1 = $("#demo1");
|
||||
var html = '';
|
||||
html += '<img src="' + path1 + '" id="1" name="1" ondblclick="delPhoto(1)" style="height: 80px;width: 80px;margin-right: 10px" class="layui-upload-img ">';
|
||||
html += '<img src="' + data.electronicSeal + '" id="1" name="1" ondblclick="delPhoto(1)" style="height: 80px;width: 80px;margin-right: 10px" class="layui-upload-img ">';
|
||||
demo1.append(html);
|
||||
|
||||
var path2 = smz_ht_url +"/"+data.legalPersonSeal;
|
||||
$("#preview2").css("display","");
|
||||
var demo2 = $("#demo2");
|
||||
var html = '';
|
||||
html += '<img src="' + path2 + '" id="2" name="2" ondblclick="delPhoto(2)" style="height: 80px;width: 80px;margin-right: 10px" class="layui-upload-img ">';
|
||||
html += '<img src="' + data.legalPersonSeal + '" id="2" name="2" ondblclick="delPhoto(2)" style="height: 80px;width: 80px;margin-right: 10px" class="layui-upload-img ">';
|
||||
demo2.append(html);
|
||||
|
||||
};
|
||||
|
|
|
|||
|
|
@ -102,7 +102,7 @@ function setParam(urlParam){
|
|||
getDownloadState()
|
||||
filePath = urlParam;
|
||||
if(filePath.indexOf("http") != -1){
|
||||
filePreviewPath = filePreviewPathAll + "/" + filePath;
|
||||
filePreviewPath = filePath;
|
||||
}else{
|
||||
filePreviewPath = filePreviewPathAll + "/" + filePath;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -189,7 +189,7 @@ function setDatas(data) {
|
|||
$("#preview1").css("display","");
|
||||
var demo1 = $("#demo1");
|
||||
var html = '';
|
||||
html += '<img src="' + path1 + '" id="1" name="1" ondblclick="delPhoto(1)" style="height: 80px;width: 80px;margin-right: 10px" class="layui-upload-img ">';
|
||||
html += '<img src="' + data[0].filePath + '" id="1" name="1" ondblclick="delPhoto(1)" style="height: 80px;width: 80px;margin-right: 10px" class="layui-upload-img ">';
|
||||
demo1.append(html);
|
||||
|
||||
|
||||
|
|
@ -197,7 +197,7 @@ function setDatas(data) {
|
|||
$("#preview2").css("display","");
|
||||
var demo2 = $("#demo2");
|
||||
var html = '';
|
||||
html += '<img src="' + path2 + '" id="2" name="2" ondblclick="delPhoto(2)" style="height: 80px;width: 80px;margin-right: 10px" class="layui-upload-img ">';
|
||||
html += '<img src="' + data[1].filePath + '" id="2" name="2" ondblclick="delPhoto(2)" style="height: 80px;width: 80px;margin-right: 10px" class="layui-upload-img ">';
|
||||
demo2.append(html);
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -197,7 +197,7 @@ function setDatas(data) {
|
|||
$("#preview1").css("display","");
|
||||
var demo1 = $("#demo1");
|
||||
var html = '';
|
||||
html += '<img src="' + path1 + '" id="1" name="1" ondblclick="delPhoto(1)" style="height: 80px;width: 80px;margin-right: 10px" class="layui-upload-img ">';
|
||||
html += '<img src="' + data.filePath + '" id="1" name="1" ondblclick="delPhoto(1)" style="height: 80px;width: 80px;margin-right: 10px" class="layui-upload-img ">';
|
||||
demo1.append(html);
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -192,8 +192,6 @@ function electronicContractView(id,contractType,idNumber,url){
|
|||
localStorage.setItem("idNumber", idNumber);
|
||||
localStorage.setItem("recordurl", url);
|
||||
localStorage.setItem("contractId", id);
|
||||
|
||||
|
||||
let layerIndex = parent.layer.open({
|
||||
id: 'layer-electronicContract',
|
||||
title: ['电子合同详情', 'color:#3B70A1;background-color:#E8ECEB;font-size:20px'],
|
||||
|
|
|
|||
|
|
@ -125,10 +125,10 @@ function initData() {
|
|||
$("#gw").val(gw=='null'?"":gw);
|
||||
|
||||
var partyA = document.getElementById('partyA');
|
||||
partyA.src = smz_ht_url + "/" + electronicSeal;
|
||||
partyA.src = electronicSeal;
|
||||
|
||||
var entrustedAgent = document.getElementById('entrustedAgent');
|
||||
entrustedAgent.src = smz_ht_url + "/" + legalPersonSeal;
|
||||
entrustedAgent.src = legalPersonSeal;
|
||||
}
|
||||
function inht() {
|
||||
$('#onht').attr('disabled','disabled');
|
||||
|
|
@ -148,8 +148,8 @@ function inht() {
|
|||
var idNumber=localStorage.getItem("htidNumber" );
|
||||
var lxdh=localStorage.getItem("htlxdh" );
|
||||
var legalPersonName=localStorage.getItem("htlegalPersonName" );
|
||||
var electronicSeal=smz_ht_url + "/" +localStorage.getItem("electronicSeal" );
|
||||
var legalPersonSeal=smz_ht_url + "/" +localStorage.getItem("legalPersonSeal" );
|
||||
var electronicSeal=localStorage.getItem("electronicSeal" );
|
||||
var legalPersonSeal=localStorage.getItem("legalPersonSeal" );
|
||||
localStorage.setItem("resByinht",0)
|
||||
if(startTime==null||startTime==""||endTime==null||endTime==""||wageCriterion==null||wageCriterion==""){
|
||||
layer.msg("请确保信息完整!");
|
||||
|
|
|
|||
Loading…
Reference in New Issue