...
|
...
|
@@ -48,11 +48,11 @@ exports.init = function() { |
|
|
len = data.length,
|
|
|
item = '';
|
|
|
for (var i = 0; i < len; i++) {
|
|
|
if (data[i].magazineType == 2 && data[i].isH5 === 1) {
|
|
|
if (data[i].magazineType == 4 && data[i].isH5 == 1) {
|
|
|
item += '<li class="swiper-slide"><a class="magazine-special" href="' + data[i].mobileUrl + '" title="' + data[i].releaseDate + '"><img class="swiper-lazy" data-src="' + data[i].cover + '" alt="" /><div class="swiper-lazy-preloader"></div></a><time>' + data[i].releaseDate + '</time></li>';
|
|
|
} else if (data[i].magazineType !== 2 && data[i].isH5 === 1) {
|
|
|
} else if (data[i].magazineType != 4 && data[i].isH5 == 1) {
|
|
|
item += '<li class="swiper-slide"><a href="' + data[i].mobileUrl + '" title="' + data[i].releaseDate + '"><img class="swiper-lazy" data-src="' + data[i].cover + '" alt="" /><div class="swiper-lazy-preloader"></div></a><time>' + data[i].releaseDate + '</time></li>';
|
|
|
} else if (data[i].magazineType === 2 && data[i].isH5 !== 1) {
|
|
|
} else if (data[i].magazineType == 4 && data[i].isH5 != 1) {
|
|
|
item += '<li class="swiper-slide"><a class="magazine-special" href="' + data[i].pcUrl + '" title="' + data[i].releaseDate + '"><img class="swiper-lazy" data-src="' + data[i].cover + '" alt="" /><div class="swiper-lazy-preloader"></div></a><time>' + data[i].releaseDate + '</time></li>';
|
|
|
} else {
|
|
|
item += '<li class="swiper-slide"><a href="' + data[i].pcUrl + '" title="' + data[i].releaseDate + '"><img class="swiper-lazy" data-src="' + data[i].cover + '" alt="" /><div class="swiper-lazy-preloader"></div></a><time>' + data[i].releaseDate + '</time></li>';
|
...
|
...
|
|