Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuywap-node
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
张孝茹
2017-12-28 09:48:01 +0800
Commit
79012390e9b176523d52d7b4ec7a4cb579d41a12
1 parent
e1449eaa
浏览记录翻页
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletions
apps/home/models/index.js
public/js/home/browse-record.page.js
apps/home/models/index.js
View file @
7901239
...
...
@@ -307,6 +307,10 @@ module.exports = class extends global.yoho.BaseModel {
return
resu
;
}
if
(
page
>
result
.
data
.
page_total
)
{
return
[];
}
if
(
list
.
data
&&
list
.
data
.
product_list
)
{
resu
=
{
browseRecord
:
[]
...
...
public/js/home/browse-record.page.js
View file @
7901239
...
...
@@ -52,7 +52,7 @@ function moreRecord(cb) {
page
:
page
+
1
},
success
:
function
(
data
)
{
if
(
!
data
)
{
if
(
!
data
||
data
===
''
)
{
end
=
true
;
$more
.
addClass
(
'hide'
);
$noMore
.
removeClass
(
'hide'
);
...
...
Please
register
or
login
to post a comment