mirror of
https://dl.bcrjl.com/ghg/HaoOuBa/Joe.git
synced 2026-02-17 13:10:05 +08:00
更新
This commit is contained in:
@@ -141,7 +141,7 @@ document.addEventListener('DOMContentLoaded', () => {
|
||||
`;
|
||||
}
|
||||
};
|
||||
let queryData = { page: 1, pageSize: 12, type: 'created' };
|
||||
let queryData = { page: 1, pageSize: window.Joe.PAGE_SIZE, type: 'created' };
|
||||
const initDom = () => {
|
||||
$('.joe_index__list .joe_list').html('');
|
||||
$('.joe_load').show();
|
||||
@@ -179,14 +179,12 @@ document.addEventListener('DOMContentLoaded', () => {
|
||||
};
|
||||
initDom();
|
||||
pushDom();
|
||||
|
||||
$('.joe_index__title-title .item').on('click', async function () {
|
||||
if ($(this).attr('data-type') === queryData.type) return;
|
||||
queryData = { page: 1, pageSize: 12, type: $(this).attr('data-type') };
|
||||
queryData = { page: 1, pageSize: window.Joe.PAGE_SIZE, type: $(this).attr('data-type') };
|
||||
initDom();
|
||||
pushDom();
|
||||
});
|
||||
|
||||
$('.joe_load').on('click', async function () {
|
||||
if ($(this).attr('loading')) return;
|
||||
queryData.page++;
|
||||
|
||||
2
assets/js/joe.index.min.js
vendored
2
assets/js/joe.index.min.js
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user