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
Plain Diff
Browse Files
Authored by
毕凯
9 years ago
Commit
8a77c57468d8d7f17099064fc67b0d4d559a7e02
2 parents
c7cafb1f
a3a83c2b
Merge remote-tracking branch 'origin/hotfix/originallow'
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
static/js/product/list.js
yohobuy/m.yohobuy.com/application/controllers/Search.php
static/js/product/list.js
View file @
8a77c57
...
...
@@ -295,7 +295,7 @@ function search(opt) {
$
.
ajax
({
type
:
'GET'
,
url
:
'
/index/search/search'
,
url
:
location
.
protocol
+
'//m.yohobuy.com
/index/search/search'
,
data
:
setting
,
success
:
function
(
data
)
{
var
noResult
=
'<p class="no-result">未找到相关搜索结果</p>'
,
...
...
@@ -375,7 +375,7 @@ require('./suspend-cart'); //悬浮购物车
$
.
ajax
({
type
:
'GET'
,
url
:
'
/search/filter'
,
url
:
location
.
protocol
+
'//m.yohobuy.com
/search/filter'
,
data
:
defaultOpt
,
success
:
function
(
data
)
{
$goodsContainer
.
append
(
data
);
...
...
yohobuy/m.yohobuy.com/application/controllers/Search.php
View file @
8a77c57
...
...
@@ -233,6 +233,7 @@ class SearchController extends AbstractAction
*/
public
function
searchAction
()
{
header
(
'Access-Control-Allow-Origin:*'
);
$data
=
array
();
do
{
...
...
@@ -397,6 +398,7 @@ class SearchController extends AbstractAction
*/
public
function
filterAction
()
{
header
(
'Access-Control-Allow-Origin:*'
);
$data
=
array
();
if
(
$this
->
isAjax
())
{
...
...
Please
register
or
login
to post a comment