Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYWAP
·
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
Rock Zhang
10 years ago
Commit
2a45a49f85f538544335b561e5f857995f0407d4
1 parent
6b144b87
修复首页一些图片的大小,修改筛选参数的一些处理逻辑
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
41 deletions
library/LibModels/Wap/Product/NewsaleData.php
library/Plugin/DataProcess/FloorProcess.php
library/Plugin/DataProcess/ListProcess.php
yohobuy/m.yohobuy.com/application/modules/Product/controllers/Newsale.php
library/LibModels/Wap/Product/NewsaleData.php
View file @
2a45a49
...
...
@@ -113,7 +113,11 @@ class NewsaleData
});
$param
=
Yohobuy
::
param
();
$param
[
'method'
]
=
'app.search.newProduct'
;
if
(
!
is_null
(
$dayLimit
))
{
$param
[
'method'
]
=
'app.search.newProduct'
;
}
else
{
$param
[
'method'
]
=
'app.search.sales'
;
}
$param
[
'page'
]
=
$page
;
$param
[
'limit'
]
=
$limit
;
$param
[
'order'
]
=
$order
;
...
...
@@ -145,22 +149,7 @@ class NewsaleData
// 构建url地址列表
$urlList
=
array
();
$param
[
'p_d'
]
=
'0.1,0.3'
;
$param
[
'client_secret'
]
=
Sign
::
getSign
(
$param
);
$urlList
[
'1-3折'
]
=
Yohobuy
::
httpBuildQuery
(
Yohobuy
::
API_URL
,
$param
);
$param
[
'p_d'
]
=
'0.4,0.6'
;
unset
(
$param
[
'client_secret'
]);
$param
[
'client_secret'
]
=
Sign
::
getSign
(
$param
);
$urlList
[
'4-6折'
]
=
Yohobuy
::
httpBuildQuery
(
Yohobuy
::
API_URL
,
$param
);
$param
[
'p_d'
]
=
'0.7,0.9'
;
unset
(
$param
[
'client_secret'
]);
$param
[
'client_secret'
]
=
Sign
::
getSign
(
$param
);
$urlList
[
'7-9折'
]
=
Yohobuy
::
httpBuildQuery
(
Yohobuy
::
API_URL
,
$param
);
$param
[
'p_d'
]
=
'0.1,0.9'
;
unset
(
$param
[
'client_secret'
]);
$param
[
'client_secret'
]
=
Sign
::
getSign
(
$param
);
$urlList
[
'ALL'
]
=
Yohobuy
::
httpBuildQuery
(
Yohobuy
::
API_URL
,
$param
);
...
...
library/Plugin/DataProcess/FloorProcess.php
View file @
2a45a49
...
...
@@ -314,7 +314,7 @@ class FloorProcess
if
(
isset
(
$one
[
'url'
]))
{
$one
[
'url'
]
=
Helpers
::
getFilterUrl
(
$one
[
'url'
]);
}
$one
[
'img'
]
=
Helpers
::
getImageUrl
(
$one
[
'src'
],
640
,
40
0
);
$one
[
'img'
]
=
Helpers
::
getImageUrl
(
$one
[
'src'
],
640
,
40
3
);
unset
(
$one
[
'src'
]);
}
$data
[
'banner'
]
=
$data
[
'big_image'
];
...
...
@@ -324,7 +324,7 @@ class FloorProcess
if
(
isset
(
$one
[
'url'
]))
{
$one
[
'url'
]
=
Helpers
::
getFilterUrl
(
$one
[
'url'
]);
}
$one
[
'img'
]
=
Helpers
::
getImageUrl
(
$one
[
'src'
],
212
,
192
);
$one
[
'img'
]
=
Helpers
::
getImageUrl
(
$one
[
'src'
],
191
,
191
);
unset
(
$one
[
'src'
]);
}
$result
[
'creativeLife'
]
=
$data
;
...
...
library/Plugin/DataProcess/ListProcess.php
View file @
2a45a49
...
...
@@ -150,7 +150,7 @@ class ListProcess
'subs'
=>
array
(
array
(
'chosed'
=>
true
,
'dataId'
=>
0
,
'dataId'
=>
'0.1,0.9'
,
'name'
=>
'所有商品'
)
)
...
...
yohobuy/m.yohobuy.com/application/modules/Product/controllers/Newsale.php
View file @
2a45a49
...
...
@@ -60,7 +60,7 @@ class NewsaleController extends AbstractAction
$data
=
array
();
$data
[
'discount'
]
=
true
;
$data
[
'headerBanner'
]
=
\Product\NewsaleModel
::
getNewFocus
(
$channel
);
$goodsList
=
\Product\NewsaleModel
::
getSaleProducts
(
$channel
,
2
0
);
$goodsList
=
\Product\NewsaleModel
::
getSaleProducts
(
$channel
,
6
0
);
if
(
!
empty
(
$goodsList
))
{
$data
+=
$goodsList
;
}
...
...
@@ -72,26 +72,7 @@ class NewsaleController extends AbstractAction
'price'
=>
0
,
'size'
=>
0
,
'dayLimit'
=>
1
,
'discount'
=>
'0.1,0.3'
);
$data
[
'tabs'
]
=
array
(
array
(
'title'
=>
'1-3折'
,
'dataId'
=>
'0.1,0.3'
,
'focus'
=>
true
),
array
(
'title'
=>
'4-6折'
,
'dataId'
=>
'0.4,0.6'
,
),
array
(
'title'
=>
'7-9折'
,
'dataId'
=>
'0.7,0.9'
,
),
array
(
'title'
=>
'ALL'
,
'dataId'
=>
'0.1,0.9'
,
)
'discount'
=>
'0.1,0.9'
);
$this
->
_view
->
display
(
'sale'
,
$data
);
...
...
@@ -113,7 +94,7 @@ class NewsaleController extends AbstractAction
$price
=
$this
->
get
(
'price'
,
null
);
$p_d
=
$this
->
get
(
'discount'
,
null
);
$channel
=
$this
->
getCookie
(
'_Channel'
,
'boys'
);
$dayLimit
=
$this
->
get
(
'dayLimit'
,
'1'
);
$dayLimit
=
$this
->
get
(
'dayLimit'
,
null
);
$limit
=
$this
->
get
(
'limit'
,
60
);
$page
=
$this
->
get
(
'page'
,
1
);
...
...
Please
register
or
login
to post a comment