Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYPC
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
2
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
xuqi
9 years ago
Commit
56778691a81aaea34adf096ae61049bc1ce5e0fa
1 parent
524110f1
expand load more url of guang info to unit js
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
4 deletions
static/js/guang/info.js
static/js/me/my-guang.js
static/js/guang/info.js
View file @
5677869
...
...
@@ -130,8 +130,11 @@ function initInfosEvt($container) {
/**
* 资讯LoadMore
* @param $container 资讯容器 jqyeryObject
* @param opt 请求参数
* @param url[可选], 扩展请求的url而不使用默认值
*/
function
loadMore
(
$container
,
opt
)
{
function
loadMore
(
$container
,
opt
,
url
)
{
var
num
;
if
(
searching
)
{
...
...
@@ -152,7 +155,7 @@ function loadMore($container, opt) {
searching
=
true
;
$
.
ajax
({
type
:
'GET'
,
url
:
' /guang/index/page'
,
url
:
url
?
url
:
'/guang/index/page'
,
//对于指定url的使用指定url(存在不同的控制器)
data
:
opt
,
success
:
function
(
data
)
{
var
$newItems
;
...
...
static/js/me/my-guang.js
View file @
5677869
...
...
@@ -18,10 +18,10 @@ var setting = {
end
:
false
};
info
.
initInfoEvt
(
$infoList
);
info
.
initInfo
s
Evt
(
$infoList
);
$
(
window
).
scroll
(
function
()
{
if
(
$
(
window
).
scrollTop
()
+
winH
>=
$
(
document
).
height
()
-
0.25
*
$infoList
.
height
())
{
loadMore
(
$infoList
,
setting
);
loadMore
(
$infoList
,
setting
,
'/home/myguang'
);
}
});
\ No newline at end of file
...
...
Please
register
or
login
to post a comment