mirror of https://github.com/layui/layer
update
parent
e9d5d7dd10
commit
77ecf930e1
|
@ -865,7 +865,7 @@ layer.photos = function(options, loop, key){
|
||||||
var type = options.photos.constructor === Object;
|
var type = options.photos.constructor === Object;
|
||||||
var photos = type ? options.photos : {}, data = photos.data || [];
|
var photos = type ? options.photos : {}, data = photos.data || [];
|
||||||
var start = photos.start || 0;
|
var start = photos.start || 0;
|
||||||
dict.imgIndex = start + 1;
|
dict.imgIndex = (start|0) + 1;
|
||||||
|
|
||||||
options.img = options.img || 'img';
|
options.img = options.img || 'img';
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue