优化 layer 的 photos 层对 lay-src 属性的支持

This commit is contained in:
贤心
2023-03-29 12:14:15 +08:00
parent aad6bca9df
commit af58394bf9

View File

@@ -1351,7 +1351,7 @@ layer.photos = function(options, loop, key){
data.push({
alt: othis.attr('alt'),
pid: othis.attr('layer-pid'),
src: othis.attr('layer-src') || othis.attr('src'),
src: othis.attr('lay-src') || othis.attr('layer-src') || othis.attr('src'),
thumb: othis.attr('src')
});
});