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
0a34e26f952a3db069b2f8ad042f6d9c749ff0cf
1 parent
7bb95644
gulp ge
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
53 additions
and
51 deletions
static/dist/myohobuy/1.3.23/index-debug.js
static/dist/myohobuy/1.3.23/index.css
static/dist/myohobuy/1.3.23/index.js
static/dist/myohobuy/1.3.23/index-debug.js
View file @
0a34e26
...
...
@@ -8491,7 +8491,8 @@ var $subNav = $('.home-sub-nav'),
$dgc
=
$
(
$goodsChildren
.
get
(
2
)),
shopId
=
$
(
'input[name="shop_id"]'
).
val
(),
appVersion
=
$
(
'input[name="app_version"]'
).
val
(),
brand
=
$
(
'input[name="brand"]'
).
val
();
brand
=
$
(
'input[name="brand"]'
).
val
(),
favId
=
$
(
'input[name="favId"]'
).
val
();
var
winH
=
$
(
window
).
height
(),
noResult
=
'<p class="no-result">未找到相关搜索结果</p>'
;
...
...
@@ -8604,13 +8605,13 @@ function getPageGoods(info) {
}
function
getParam
(
req
)
{
if
(
shopId
)
{
req
.
data
.
shop_id
=
shopId
;
}
if
(
brand
)
{
req
.
data
.
brand
=
brand
;
}
if
(
shopId
)
{
req
.
data
.
shop_id
=
shopId
;
}
}
function
newData
(
callback
)
{
...
...
@@ -8852,49 +8853,51 @@ function search(opt) {
}
}
switch
(
opt
.
type
)
{
case
'shop_id'
:
ext
=
{
shop_id
:
opt
.
id
};
break
;
case
'gender'
:
ext
=
{
gender
:
opt
.
id
};
break
;
case
'brand'
:
ext
=
{
brand
:
opt
.
id
};
break
;
case
'sort'
:
ext
=
{
sort
:
opt
.
id
};
break
;
case
'color'
:
ext
=
{
color
:
opt
.
id
};
break
;
case
'size'
:
ext
=
{
size
:
opt
.
id
};
break
;
case
'price'
:
ext
=
{
price
:
opt
.
id
};
break
;
case
'discount'
:
ext
=
{
discount
:
opt
.
id
};
break
;
if
(
opt
.
id
)
{
switch
(
opt
.
type
)
{
case
'shop_id'
:
ext
=
{
shop_id
:
opt
.
id
};
break
;
case
'gender'
:
ext
=
{
gender
:
opt
.
id
};
break
;
case
'brand'
:
ext
=
{
brand
:
opt
.
id
};
break
;
case
'sort'
:
ext
=
{
sort
:
opt
.
id
};
break
;
case
'color'
:
ext
=
{
color
:
opt
.
id
};
break
;
case
'size'
:
ext
=
{
size
:
opt
.
id
};
break
;
case
'price'
:
ext
=
{
price
:
opt
.
id
};
break
;
case
'discount'
:
ext
=
{
discount
:
opt
.
id
};
break
;
}
$
.
extend
(
defaultOpt
,
ext
);
//扩展筛选项
}
$
.
extend
(
defaultOpt
,
ext
);
//扩展筛选项
}
//导航类别
...
...
@@ -8924,7 +8927,6 @@ function search(opt) {
if
(
brand
)
{
setting
.
brand
=
brand
;
}
if
(
shopId
)
{
setting
.
shop_id
=
shopId
;
}
...
...
@@ -8996,7 +8998,7 @@ $.ajax({
type
:
'GET'
,
url
:
'/search/filter'
,
data
:
{
shop_id
:
shopId
,
shop_id
:
brand
?
''
:
shopId
,
brand
:
brand
},
success
:
function
(
data
)
{
...
...
@@ -9279,7 +9281,7 @@ function collectShop() {
qew
.
url
=
'/product/index/shopFav'
;
qew
.
data
=
{
shop_id
:
shopId
,
shop_id
:
favId
?
favId
:
shopId
,
app_version
:
appVersion
};
postCollect
(
qew
);
...
...
@@ -9290,7 +9292,7 @@ function cancelShop() {
qew
.
url
=
'/product/index/cancelShopFav'
;
qew
.
data
=
{
shop_id
:
shopId
,
shop_id
:
favId
?
favId
:
shopId
,
app_version
:
appVersion
};
postCollect
(
qew
);
...
...
static/dist/myohobuy/1.3.23/index.css
View file @
0a34e26
This diff could not be displayed because it is too large.
static/dist/myohobuy/1.3.23/index.js
View file @
0a34e26
This diff could not be displayed because it is too large.
Please
register
or
login
to post a comment