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
c5f6e0dae19975121878bd393fbe6abc3d89b69c
1 parent
7ad69583
'gulpge'
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
53 additions
and
37 deletions
static/dist/myohobuy/4.9.01/index-debug.js
static/dist/myohobuy/4.9.01/index.css
static/dist/myohobuy/4.9.01/index.js
static/dist/myohobuy/4.9.01/index-debug.js
View file @
c5f6e0d
...
...
@@ -10199,48 +10199,64 @@ function queryString() {
return
vars
;
}
function
setFtle
(){
$
.
ajax
({
type
:
'GET'
,
url
:
location
.
protocol
+
'//m.yohobuy.com/search/filter'
,
data
:
{
shop_id
:
shopIdForFilter
?
shopIdForFilter
:
queryString
().
shop_id
,
brand
:
brand
?
brand
:
queryString
().
brand
,
gender
:
queryString
().
gender
,
channel
:
channel
?
channel
:
queryString
().
channel
},
success
:
function
(
data
)
{
$
(
"#filter"
).
html
(
data
);
// $goodsContainer.append(data);
//初始化filter&注册filter回调
filter
.
initFilter
({
fCbFn
:
function
(
opt
){
$listNav
.
find
(
".filter"
).
removeClass
(
"active"
);
search
(
opt
);
myScroll
&&
myScroll
.
enable
();
},
hCbFn
:
function
()
{
// function setFtle(){
// $.ajax({
// type: 'GET',
// url: location.protocol + '//m.yohobuy.com/search/filter',
// data: {
// shop_id: shopIdForFilter ? shopIdForFilter : queryString().shop_id,
// brand: brand ? brand : queryString().brand,
// gender: queryString().gender,
// channel: channel ? channel : queryString().channel
// },
// success: function(data) {
// $("#filter").html(data);
// // $goodsContainer.append(data);
// //初始化filter&注册filter回调
// filter.initFilter({
// fCbFn: function(opt){
// $listNav.find(".filter").removeClass("active");
// search(opt);
// myScroll && myScroll.enable();
// },
// hCbFn: function() {
// //切换active状态到$pre上
// $pre.addClass('active');
// $pre.siblings('.filter').removeClass('active');
// },
// missStatus: true,
// isScroll: true
// });
// setTimeout(function() {
// myScroll.refresh();
// }, 1000);
// }
// });
// }
//切换active状态到$pre上
$pre
.
addClass
(
'active'
);
$pre
.
siblings
(
'.filter'
).
removeClass
(
'active'
);
},
missStatus
:
true
,
isScroll
:
true
});
filter
.
initFilter
({
fCbFn
:
function
(
opt
){
$listNav
.
find
(
".filter"
).
removeClass
(
"active"
);
search
(
opt
);
myScroll
&&
myScroll
.
enable
();
},
hCbFn
:
function
()
{
setTimeout
(
function
()
{
myScroll
.
refresh
();
},
1000
);
}
//切换active状态到$pre上
$pre
.
addClass
(
'active'
);
$pre
.
siblings
(
'.filter'
).
removeClass
(
'active'
);
},
missStatus
:
true
,
isScroll
:
true
});
}
// setTimeout(function(){
// setFtle();
// },1000);
setTimeout
(
function
(){
setFtle
();
},
1000
);
$listNav
.
bind
(
'contextmenu'
,
function
(
e
)
{
return
false
;
});
...
...
static/dist/myohobuy/4.9.01/index.css
View file @
c5f6e0d
This diff could not be displayed because it is too large.
static/dist/myohobuy/4.9.01/index.js
View file @
c5f6e0d
This diff could not be displayed because it is too large.
Please
register
or
login
to post a comment