From c777ace0ea7f2f380a2fded65a1f1d7515b98298 Mon Sep 17 00:00:00 2001 From: sugar1569 Date: Sat, 3 Nov 2018 15:51:01 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=90=8E=E5=8F=B0=E9=80=89?= =?UTF-8?q?=E6=8B=A9=E5=9B=BE=E7=89=87=E4=B8=BA=E7=9B=B8=E5=AF=B9=E8=B7=AF?= =?UTF-8?q?=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/system/module/widget/images.js | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/public/system/module/widget/images.js b/public/system/module/widget/images.js index 9d3af9ef..7fec3247 100644 --- a/public/system/module/widget/images.js +++ b/public/system/module/widget/images.js @@ -30,16 +30,7 @@ layui.use(['layer','upload'], function() { } }); - //关闭窗口 - $("#close").on('click',function (e) { - if(parent.$f){ - parent.$f.closeModal(); - }else{ - var index = parent.layer.getFrameIndex(window.name); - parent.layer.close(index); - } - }); //确定选择 $("#ConfirmChoices").on('click',function (e) { if(parent.$f){ @@ -49,7 +40,8 @@ layui.use(['layer','upload'], function() { var images = Array.from(self.document.getElementsByTagName('img')); images.forEach(function (image) { if(Array.from(image.parentNode.classList).indexOf('on') !== -1 && value.indexOf(image.src) == -1){ - list.push(image.src); + // list.push(image.src); + list.push(image.getAttribute("src")); } }); parent.$f.changeField(parentinputname,list); @@ -59,7 +51,8 @@ layui.use(['layer','upload'], function() { var images = Array.from(self.document.getElementsByTagName('img')); images.forEach(function (image) { if(Array.from(image.parentNode.classList).indexOf('on') !== -1 ){ - parent.changeIMG(parentinputname,image.src); + // parent.changeIMG(parentinputname,image.src); + parent.changeIMG(parentinputname,image.getAttribute("src")); } }); var index = parent.layer.getFrameIndex(window.name);