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
Plain Diff
Browse Files
Authored by
whb
9 years ago
Commit
5d209fdb43e3a70a614c25071765594a203ff4f2
2 parents
70d87277
1e94476e
Merge branch 'develop' of
http://git.dev.yoho.cn/web/yohobuy
into develop
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
9 deletions
library/WebPlugin/HelperSearch.php
web-static/js/product/product.js
yohobuy/www.yohobuy.com/application/modules/Product/controllers/List.php
library/WebPlugin/HelperSearch.php
View file @
5d209fd
...
...
@@ -1248,7 +1248,7 @@ class HelperSearch
$result
[
$key
][
'isVedio'
]
=
true
;
$result
[
$key
][
'src'
]
=
$vo
;
}
else{
$result[$key]['href']
=
$href[1][$key]
;
$result[$key]['href']
=
isset(
$href[1][$key]
) ?
$href[1][$key]
: ''
;
$result[$key]['src']
=
$vo
;
}
}
...
...
web-static/js/product/product.js
View file @
5d209fd
...
...
@@ -97,8 +97,9 @@ exports.init = function(num) {
$
.
ajax
({
type
:
'POST'
,
url
:
'/product/list/getProductPic'
,
dataType
:
'json'
,
url
:
'http://list.yohobuy.com/product/list/getProductPic'
,
dataType
:
'jsonp'
,
jsonp
:
'callback'
,
data
:
{
skn
:
event
.
target
.
attr
(
'data-skn'
)
}
...
...
yohobuy/www.yohobuy.com/application/modules/Product/controllers/List.php
View file @
5d209fd
...
...
@@ -95,17 +95,16 @@ class ListController extends WebAction
*/
public
function
getProductPicAction
()
{
$res
=
array
(
'code'
=>
400
);
$res
=
array
();
$callback
=
$this
->
post
(
'callback'
);
if
(
!
$this
->
isAjax
())
{
$this
->
echoJson
(
$res
);
$this
->
helpJsonCallbackResult
(
$callback
,
400
,
'Not a Ajax request'
);
return
;
}
$productSkn
=
$this
->
post
(
'skn'
);
$uid
=
$this
->
getUid
();
if
(
!
$productSkn
)
{
$this
->
echoJson
(
$res
);
$this
->
helpJsonCallbackResult
(
$callback
,
412
,
'商品skn为空'
);
return
;
}
$rowNum
=
$this
->
post
(
'rowNum'
);
...
...
@@ -131,7 +130,7 @@ class ListController extends WebAction
}
$options
[
'isFavorite'
]
=
$isFavorite
;
$res
=
SearchModel
::
getProductPic
(
$productSkn
,
$options
);
$this
->
echoJson
(
$res
);
$this
->
helpJsonCallbackResult
(
$callback
,
200
,
'success'
,
$res
);
}
/**
...
...
Please
register
or
login
to post a comment