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
ccbikai
9 years ago
Commit
c7cb4a43f3392b85cb4543d7b998e85b1a115d34
2 parents
c494813d
38ed9626
merge code
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
19 deletions
library/Plugin/Helpers.php
static/js/category/brand.js
library/Plugin/Helpers.php
View file @
c7cb4a4
...
...
@@ -201,8 +201,8 @@ class Helpers
$result
[
'product_id'
]
=
$productData
[
'product_id'
];
$result
[
'thumb'
]
=
Images
::
getImageUrl
(
$productData
[
'default_images'
],
$width
,
$height
);
$result
[
'name'
]
=
$productData
[
'product_name'
];
$result
[
'price'
]
=
$productData
[
'market_price'
];
$result
[
'salePrice'
]
=
$productData
[
'sales_price'
];
$result
[
'price'
]
=
$productData
[
'market_price'
]
.
'.00'
;
$result
[
'salePrice'
]
=
$productData
[
'sales_price'
]
.
'.00'
;
$result
[
'is_soon_sold_out'
]
=
(
$productData
[
'is_soon_sold_out'
]
===
'Y'
);
$result
[
'url'
]
=
SITE_MAIN
.
'/product/pro_'
.
$productData
[
'product_id'
]
.
'_'
.
$productData
[
'goods_list'
][
0
][
'goods_id'
]
...
...
static/js/category/brand.js
View file @
c7cb4a4
...
...
@@ -16,14 +16,11 @@ var searchH = $('.newbrand-search').outerHeight(),
headerH
=
$
(
'.yoho-header'
).
outerHeight
(),
brandSwipe
=
parseInt
(
searchH
)
+
parseInt
(
headerH
)
-
1
;
var
myHammer
,
brandsData
,
var
brandsData
,
$keyword
,
searchBtnHammer
,
clearTextHammer
;
var
$rightBarCon
=
$
(
'#right-bar .con'
).
find
(
'b'
).
unbind
();
swiper
=
new
Swiper
(
'.swiper-container'
,
{
lazyLoading
:
true
,
loop
:
true
,
...
...
@@ -56,27 +53,18 @@ $(window).scroll(function() {
});
});
function
rightBarBindClick
()
{
$rightBarCon
=
$
(
'#right-bar .con'
).
find
(
'b'
).
unbind
();
myHammer
=
new
Hammer
(
$rightBarCon
[
0
]);
myHammer
.
on
(
'tap'
,
function
(
e
)
{
var
index
=
$rightBarCon
.
index
();
$
(
'#right-bar .con'
).
find
(
'b'
).
unbind
().
on
(
'touchstart'
,
function
(
e
)
{
var
index
=
$
(
this
).
index
();
if
(
$
(
'.bar-'
+
index
).
size
()
>
0
)
{
document
.
body
.
scrollTop
=
parseInt
(
$
(
'.bar-'
+
index
)[
0
].
offsetTop
)
-
parseInt
(
brandSwipe
-
1
);
}
e
.
s
rcEvent
.
s
topPropagation
();
e
.
stopPropagation
();
});
}
if
(
$rightBarCon
[
0
])
{
rightBarBindClick
();
}
/**
* 品牌搜索
*/
rightBarBindClick
();
function
searchResult
()
{
var
keyword
=
(
$keyword
.
val
()
+
''
).
toLowerCase
();
...
...
Please
register
or
login
to post a comment