mirror of
https://dl.bcrjl.com/ghg/HaoOuBa/Joe.git
synced 2026-02-18 01:20:04 +08:00
更新
This commit is contained in:
@@ -344,7 +344,4 @@ document.addEventListener('DOMContentLoaded', () => {
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
/* 懒加载 */
|
||||
new LazyLoad('.lazyload');
|
||||
});
|
||||
|
||||
@@ -49,7 +49,7 @@ document.addEventListener('DOMContentLoaded', () => {
|
||||
<li class="joe_list__item wow">
|
||||
<div class="line"></div>
|
||||
<a href="${_.permalink}" class="thumbnail" title="${_.title}">
|
||||
<img onerror="javascript: this.src='${_.lazyload}';" class="list_lazyload" src="${_.lazyload}" data-original="${_.image}" alt="${_.title}" />
|
||||
<img class="lazyload" src="${_.lazyload}" data-src="${_.image}" onerror="javascript: this.src='${_.lazyload}';" alt="${_.title}" />
|
||||
<time datetime="${_.time}">${_.time}</time>
|
||||
<svg viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" width="20" height="20">
|
||||
<path d="M903.93077753 107.30625876H115.78633587C64.57261118 107.30625876 22.58166006 149.81138495 22.58166006 201.02510964v624.26547214c0 51.7240923 41.99095114 93.71694641 93.71694641 93.7169464h788.14444164c51.7202834 0 93.71694641-41.99285557 93.71694642-93.7169464v-624.26547214c-0.51227057-51.21372469-43.01739676-93.71885088-94.229217-93.71885088zM115.78633587 171.8333054h788.65671224c16.385041 0 29.70407483 13.31522639 29.70407484 29.70407482v390.22828696l-173.60830179-189.48107072c-12.80486025-13.82749697-30.21634542-21.50774542-48.14010264-19.97093513-17.92375723 1.02073227-34.82106734 10.75387344-46.60138495 26.11437327l-172.58185762 239.1598896-87.06123767-85.52061846c-12.28878076-11.78222353-27.65308802-17.92375723-44.03812902-17.92375577-16.3907529 0.50846167-31.75506163 7.67644101-43.52966736 20.48129978L86.59453164 821.70468765V202.04965083c-1.02454117-17.41529409 12.80486025-30.73052046 29.19180423-30.21634543zM903.93077753 855.50692718H141.90642105l222.25496164-245.81940722 87.0593347 86.03669649c12.80105134 12.80676323 30.21253651 18.95020139 47.11555999 17.4172 17.40958218-1.53871621 33.79652618-11.26614404 45.06267018-26.11818071l172.58376063-238.64762047 216.11152349 236.08817198 2.05098681-1.54062067v142.87778132c0.50846167 16.3907529-13.31522639 29.70597929-30.21444096 29.70597928z m0 0" p-id="1916"></path>
|
||||
@@ -83,7 +83,6 @@ document.addEventListener('DOMContentLoaded', () => {
|
||||
$('.joe_load').removeAttr('loading');
|
||||
$('.joe_load').html('查看更多');
|
||||
$('.joe_index__list .joe_list__loading').hide();
|
||||
new LazyLoad('.list_lazyload');
|
||||
reslove(res.data.length > 0 ? res.data.length - 1 : 0);
|
||||
}
|
||||
});
|
||||
|
||||
@@ -25,7 +25,7 @@ document.addEventListener('DOMContentLoaded', () => {
|
||||
renderLiveType();
|
||||
function renderLiveType() {
|
||||
$.ajax({
|
||||
url: '/usr/themes/joe/assets/json/joe.live.json',
|
||||
url: '/usr/themes/Joe/assets/json/joe.live.json',
|
||||
success(res) {
|
||||
const item = res[queryData.index];
|
||||
$('.joe_live__type-title .text').html(item.name);
|
||||
@@ -55,14 +55,14 @@ document.addEventListener('DOMContentLoaded', () => {
|
||||
<a target="_blank" rel="noopener noreferrer nofollow" class="joe_live__list-item animated bounceIn" href="${window.location.href + '?profileRoom=' + _.profileRoom + '&title=' + _.nick}">
|
||||
<div class="thumb">
|
||||
<i class="recommendTagName" style="display: ${_.recommendTagName ? '' : 'none'}">${_.recommendTagName}</i>
|
||||
<img class="screenshot screenshot_lazyload" onerror="javascript: this.src = '${Joe.LAZY_LOAD}';" src="${Joe.LAZY_LOAD}" data-original="${_.screenshot}" alt="${_.introduction}" />
|
||||
<img class="screenshot lazyload" src="${Joe.LAZY_LOAD}" data-src="${_.screenshot}" onerror="javascript: this.src = '${Joe.LAZY_LOAD}';" alt="${_.introduction}" />
|
||||
</div>
|
||||
<div class="description">
|
||||
<div class="avatar">
|
||||
<svg class="icon" viewBox="0 0 76 31" version="1.1" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M57.7,11.4c-1.4-1.4-2.7-2.9-4.1-4.4c-0.2-0.3-0.5-0.5-0.8-0.8c-0.2-0.2-0.3-0.3-0.5-0.5l0,0C48.6,2.2,43.5,0,38,0S27.4,2.2,23.6,5.7l0,0c-0.2,0.2-0.3,0.3-0.5,0.5c-0.3,0.3-0.5,0.5-0.8,0.8c-1.4,1.5-2.7,3-4.1,4.4c-5,5.1-11.7,6.1-18.3,6.3V31h9.4h8.9h39.4h4.9H76V17.6C69.4,17.4,62.7,16.5,57.7,11.4z"></path>
|
||||
</svg>
|
||||
<img src="${_.avatar180}" alt="${_.nick}"/>
|
||||
<img class="lazyload" src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" data-src="${_.avatar180}" onerror="javascript: this.src = 'data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==';" alt="${_.nick}"/>
|
||||
</div>
|
||||
<div class="nick">${_.nick}</div>
|
||||
<p class="introduction">${_.introduction}</p>
|
||||
@@ -78,7 +78,6 @@ document.addEventListener('DOMContentLoaded', () => {
|
||||
`;
|
||||
});
|
||||
$('.joe_live__list').html(htmlStr);
|
||||
new LazyLoad('.screenshot_lazyload');
|
||||
queryData.totalPage = res.data.totalPage;
|
||||
initPagination();
|
||||
},
|
||||
|
||||
@@ -52,13 +52,12 @@ document.addEventListener('DOMContentLoaded', () => {
|
||||
<a class="item animated bounceIn" href="${window.location.href + '?vod_id=' + _.vod_id}" target="_blank" rel="noopener noreferrer nofollow">
|
||||
<i class="year" style="display: ${_.vod_year && _.vod_year != 0 ? 'block' : 'none'}">${_.vod_year}</i>
|
||||
<div class="thumb">
|
||||
<img onerror="javascript: this.src = '${Joe.LAZY_LOAD}'" class="pic video_lazyload" src="${Joe.LAZY_LOAD}" data-original="${_.vod_pic}" alt="${_.vod_name}">
|
||||
<img class="pic lazyload" src="${Joe.LAZY_LOAD}" data-src="${_.vod_pic}" onerror="javascript: this.src = '${Joe.LAZY_LOAD}'" alt="${_.vod_name}">
|
||||
</div>
|
||||
<p class="title">${_.vod_name}</p>
|
||||
</a>`;
|
||||
});
|
||||
$('.joe_video__list-item').html(htmlStr);
|
||||
new LazyLoad('.video_lazyload');
|
||||
}
|
||||
pagecount = res.data.pagecount;
|
||||
initPagination();
|
||||
@@ -131,7 +130,7 @@ document.addEventListener('DOMContentLoaded', () => {
|
||||
/* 设置视频详情 */
|
||||
$('.joe_video__detail-info').html(`
|
||||
<div class="thumbnail">
|
||||
<img class="pic video_lazyload" onerror="javascript: this.src = '${Joe.LAZY_LOAD}'" src="${Joe.LAZY_LOAD}" data-original="${item.vod_pic}" alt="${item.vod_name}">
|
||||
<img class="pic lazyload" src="${Joe.LAZY_LOAD}" data-src="${item.vod_pic}" onerror="javascript: this.src = '${Joe.LAZY_LOAD}'" alt="${item.vod_name}">
|
||||
<i class="year" style="display: ${item.vod_year && item.vod_year != 0 ? 'block' : 'none'}">${item.vod_year}</i>
|
||||
</div>
|
||||
<dl class="description">
|
||||
@@ -142,7 +141,6 @@ document.addEventListener('DOMContentLoaded', () => {
|
||||
<dd><span class="muted">简介:</span><p class="text">${getContent(item)}</p></dd>
|
||||
</dl>
|
||||
`);
|
||||
new LazyLoad('.video_lazyload');
|
||||
/* 设置视频播放标题 */
|
||||
$('.joe_video__player .joe_video__contain-title').html('正在播放:' + item.vod_name);
|
||||
/* 设置播放链接 */
|
||||
|
||||
@@ -40,10 +40,12 @@ document.addEventListener('DOMContentLoaded', () => {
|
||||
if (res.code !== 1) return;
|
||||
let htmlStr = '';
|
||||
res.data.forEach(_ => {
|
||||
htmlStr += `<a class="item animated bounceIn" data-fancybox="gallery" href="${_.url}"><img onerror="javascript: this.src = '${Joe.LAZY_LOAD}'" class="wallpaper_lazyload" src="${Joe.LAZY_LOAD}" data-original="${_.img_1024_768 || _.url}" alt="壁纸"></a>`;
|
||||
htmlStr += `
|
||||
<a class="item animated bounceIn" data-fancybox="gallery" href="${_.url}">
|
||||
<img class="lazyload" src="${Joe.LAZY_LOAD}" data-src="${_.img_1024_768 || _.url}" onerror="javascript: this.src = '${Joe.LAZY_LOAD}'" alt="壁纸">
|
||||
</a>`;
|
||||
});
|
||||
$('.joe_wallpaper__list').html(htmlStr);
|
||||
new LazyLoad('.wallpaper_lazyload');
|
||||
total = res.total;
|
||||
initPagination();
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user