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
毕凯
9 years ago
Commit
85ce72e28809b7555b6a4c1151334f8a8fece02c
1 parent
ad19a270
店铺首页 请求地址修改
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
7 deletions
static/dist/.DS_Store
static/dist/myohobuy/.DS_Store
static/js/product/shop.js
static/dist/.DS_Store
View file @
85ce72e
No preview for this file type
static/dist/myohobuy/.DS_Store
View file @
85ce72e
No preview for this file type
static/js/product/shop.js
View file @
85ce72e
...
...
@@ -177,7 +177,7 @@ function getParam(req) {
function
newData
(
callback
)
{
var
req
=
{};
req
.
url
=
'
/index/search/search'
;
req
.
url
=
location
.
protocol
+
'//m.yohobuy.com
/index/search/search'
;
req
.
data
=
{
type
:
'newest'
,
order
:
'1'
,
...
...
@@ -202,7 +202,7 @@ function newData(callback) {
function
hotData
(
callback
)
{
var
req
=
{};
req
.
url
=
'
/index/search/search'
;
req
.
url
=
location
.
protocol
+
'//m.yohobuy.com
/index/search/search'
;
req
.
data
=
{
type
:
'hot'
,
order
:
'1'
,
...
...
@@ -404,7 +404,7 @@ function search(opt) {
}
if
(
!
opt
.
url
)
{
opt
.
url
=
'
/index/search/search'
;
opt
.
url
=
location
.
protocol
+
'//m.yohobuy.com
/index/search/search'
;
}
if
(
!
opt
.
nextPage
)
{
...
...
@@ -578,7 +578,7 @@ function getQueryString(name) {
$
.
ajax
({
type
:
'GET'
,
url
:
'
/search/filter'
,
url
:
location
.
protocol
+
'//m.yohobuy.com
/search/filter'
,
data
:
{
shop_id
:
brand
?
''
:
shopId
,
brand
:
brand
,
...
...
@@ -728,7 +728,7 @@ $subNav.on('touchend touchcancel', function(e) {
type
:
'shop_id'
,
id
:
shopId
,
brand
:
brand
,
url
:
'
/index/search/search'
,
url
:
location
.
protocol
+
'//m.yohobuy.com
/index/search/search'
,
nextPage
:
false
});
}
...
...
@@ -749,7 +749,7 @@ function scrollHandler() {
type
:
'shop_id'
,
id
:
shopId
,
brand
:
brand
,
url
:
'
/index/search/search'
,
url
:
location
.
protocol
+
'//m.yohobuy.com
/index/search/search'
,
nextPage
:
true
});
}
...
...
@@ -767,7 +767,7 @@ search({
type
:
'shop_id'
,
id
:
shopId
,
brand
:
brand
,
url
:
'
/index/search/search'
,
url
:
location
.
protocol
+
'//m.yohobuy.com
/index/search/search'
,
nextPage
:
false
});
...
...
Please
register
or
login
to post a comment