|
|
@@ -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);
|