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
yangyang
9 years ago
Commit
bd968043268b56f3535b195d390a7547d6322f6e
1 parent
29189382
修改每页显示个数为59
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
yohobuy/www.yohobuy.com/application/modules/Product/controllers/Index.php
yohobuy/www.yohobuy.com/application/modules/Product/controllers/Index.php
View file @
bd96804
...
...
@@ -60,11 +60,11 @@ class IndexController extends WebAction
//每页显示商品数
if
(
!
isset
(
$condition
[
'viewNum'
])
||
empty
(
$condition
[
'viewNum'
])){
$condition
[
'viewNum'
]
=
60
;
$condition
[
'viewNum'
]
=
59
;
}
$view_num_arr
=
array
(
60
,
100
,
200
);
if
(
!
in_array
(
$condition
[
'viewNum'
],
$view_num_arr
))
{
$condition
[
'viewNum'
]
=
60
;
$condition
[
'viewNum'
]
=
59
;
}
//每行显示的商品数量
if
(
!
isset
(
$condition
[
'rowNum'
])
||
empty
(
$condition
[
'rowNum'
])){
...
...
@@ -87,7 +87,7 @@ class IndexController extends WebAction
'gender'
=>
$gender
,
'needPd'
=>
'Y'
,
'rowNum'
=>
$condition
[
'rowNum'
],
'viewNum'
=>
$condition
[
'viewNum'
],
'viewNum'
=>
$condition
[
'viewNum'
]
-
1
,
);
$params
=
$condition
+
$_GET
;
...
...
Please
register
or
login
to post a comment