更新
This commit is contained in:
parent
b4dc952e1b
commit
5f8a4ee660
@ -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
@ -29,9 +29,6 @@ function themeInit($self)
|
||||
Helper::options()->commentsRequireURL = false;
|
||||
/* 强制用户开启评论回复 */
|
||||
Helper::options()->commentsThreaded = true;
|
||||
/* 强制显示一页12篇文章 */
|
||||
$self->parameter->pageSize = 12;
|
||||
|
||||
/* 主题开放API 路由规则 */
|
||||
$path_info = $self->request->getPathinfo();
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
/* 获取主题当前版本号 */
|
||||
function _getVersion()
|
||||
{
|
||||
return "6.3.6";
|
||||
return "6.3.7";
|
||||
};
|
||||
|
||||
/* 判断是否是手机 */
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "typecho-joe-next",
|
||||
"version": "6.3.6",
|
||||
"version": "6.3.7",
|
||||
"description": "A Theme Of Typecho",
|
||||
"main": "index.php",
|
||||
"keywords": [
|
||||
|
@ -24,7 +24,8 @@
|
||||
DOCUMENT_TITLE: `<?php $this->options->JDocumentTitle() ?>`,
|
||||
LAZY_LOAD: `<?php _getLazyload() ?>`,
|
||||
BIRTHDAY: `<?php $this->options->JBirthDay() ?>`,
|
||||
MOTTO: `<?php _getAsideAuthorMotto() ?>`
|
||||
MOTTO: `<?php _getAsideAuthorMotto() ?>`,
|
||||
PAGE_SIZE: `<?php $this->parameter->pageSize() ?>`
|
||||
}
|
||||
</script>
|
||||
<?php
|
||||
|
Loading…
Reference in New Issue
Block a user