mirror of
https://github.com/crmeb/CRMEB.git
synced 2026-02-08 07:15:35 +00:00
修复后台选择图片为相对路径
This commit is contained in:
parent
fbbce1bda7
commit
c777ace0ea
@ -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) {
|
$("#ConfirmChoices").on('click',function (e) {
|
||||||
if(parent.$f){
|
if(parent.$f){
|
||||||
@ -49,7 +40,8 @@ layui.use(['layer','upload'], function() {
|
|||||||
var images = Array.from(self.document.getElementsByTagName('img'));
|
var images = Array.from(self.document.getElementsByTagName('img'));
|
||||||
images.forEach(function (image) {
|
images.forEach(function (image) {
|
||||||
if(Array.from(image.parentNode.classList).indexOf('on') !== -1 && value.indexOf(image.src) == -1){
|
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);
|
parent.$f.changeField(parentinputname,list);
|
||||||
@ -59,7 +51,8 @@ layui.use(['layer','upload'], function() {
|
|||||||
var images = Array.from(self.document.getElementsByTagName('img'));
|
var images = Array.from(self.document.getElementsByTagName('img'));
|
||||||
images.forEach(function (image) {
|
images.forEach(function (image) {
|
||||||
if(Array.from(image.parentNode.classList).indexOf('on') !== -1 ){
|
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);
|
var index = parent.layer.getFrameIndex(window.name);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user