Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYPC
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
2
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Plain Diff
Browse Files
Authored by
hf
9 years ago
Commit
b1f7e5c374c1cb56dc8bd7dd505ae6ec3df33bd3
2 parents
01d7b4e9
d5eb2144
Merge branch 'develop' of
http://git.dev.yoho.cn/web/yohobuy
into develop
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
31 additions
and
21 deletions
static/js/plugin/filter.js
static/sass/me/_fav.scss
static/sass/product/_detail.scss
static/sass/product/_product-description.scss
template/m.yohobuy.com/actions/product/detail/index.phtml
template/m.yohobuy.com/partials/product/product-description.phtml
static/js/plugin/filter.js
View file @
b1f7e5c
...
...
@@ -5,9 +5,8 @@
* @date: 2015/10/19
*/
var
$
=
require
(
'jquery'
);
// Hammer = require('yoho.hammer');
var
$
=
require
(
'jquery'
),
Hammer
=
require
(
'yoho.hammer'
);
var
$filter
;
...
...
@@ -113,8 +112,7 @@ function subClassifyTapEvt($this) {
//初始化筛选
function
initFilter
(
opt
)
{
// var filterHammer;
var
filterHammer
;
//注册回调
fCbFn
=
opt
.
fCbFn
;
...
...
@@ -127,8 +125,8 @@ function initFilter(opt) {
$filter
=
$
(
'.filter-mask'
);
// filterHammer = new Hammer($filter[0]);
$filter
.
on
(
'touchend'
,
function
(
e
)
{
filterHammer
=
new
Hammer
(
$filter
[
0
]);
filterHammer
.
on
(
'tap'
,
function
(
e
)
{
var
$this
=
$
(
e
.
target
),
$cur
;
...
...
@@ -147,7 +145,7 @@ function initFilter(opt) {
//tap classify
$cur
=
$this
.
closest
(
'.classify-item'
);
e
.
stopPropagation
();
e
.
s
rcEvent
.
s
topPropagation
();
classifyTapEvt
(
$cur
);
}
...
...
@@ -183,4 +181,4 @@ exports.showFilter = showFilter;
exports
.
hideFilter
=
hideFilter
;
exports
.
resetFilter
=
resetFilter
;
\ No newline at end of file
exports
.
resetFilter
=
resetFilter
;
...
...
static/sass/me/_fav.scss
View file @
b1f7e5c
...
...
@@ -157,6 +157,9 @@
margin-top
:
-
$height
/
2
;
}
.del-fav
{
text-indent
:
0
;
}
}
span
{
...
...
static/sass/product/_detail.scss
View file @
b1f7e5c
...
...
@@ -114,6 +114,10 @@ $basicBtnC:#eb0313;
background-color
:
#000
;
color
:
#fff
;
}
.yohood-tag
{
background-color
:
#000
;
color
:
#fff
;
}
.limit-tag
{
border
:
1px
solid
#000
;
background-color
:
#fff
;
...
...
@@ -131,7 +135,7 @@ $basicBtnC:#eb0313;
// overflow: hidden;
}
.banner-top-single
{
height
:pxToRem
(
600px
)
;
width
:
pxToRem
(
448px
);
margin
:pxToRem
(
30px
)
pxToRem
(
72px
)
;
overflow
:
hidden
;
...
...
static/sass/product/_product-description.scss
View file @
b1f7e5c
...
...
@@ -130,9 +130,10 @@
div
{
text-align
:
center
;
&
.cell
{
line-height
:
pxToRem
(
53px
);
font-size
:
pxToRem
(
24px
);
background-color
:
$tableCellC
;
padding
:
pxToRem
(
15px
)
pxToRem
(
40px
);
padding
:
0
pxToRem
(
40px
);
border
:
1px
solid
#fff
;
}
}
...
...
@@ -143,14 +144,15 @@
#reference-swiper-container
{
.first-group
{
width
:
pxToRem
(
70px
);
margin-top
:
pxToRem
(
66px
);
.avatar
{
// line-height: pxToRem(40px);
display
:
inline-block
;
width
:
pxToRem
(
40px
);
border-radius
:
50%
;
height
:
pxToRem
(
40px
);
margin
:
pxToRem
(
12px
)
0
;
margin-top
:
pxToRem
(
55px
);
div
{
height
:
pxToRem
(
55px
);
.avatar
{
display
:
inline-block
;
width
:
pxToRem
(
40px
);
border-radius
:
50%
;
margin-top
:pxToRem
(
7px
)
;
}
}
}
}
...
...
template/m.yohobuy.com/actions/product/detail/index.phtml
View file @
b1f7e5c
...
...
@@ -13,7 +13,7 @@
<p
class=
"good-tag sale-tag"
>SALE</p>
{
{/
is_discount
}
}
{
{#
is_yohoood
}
}
<div
class=
"good-tag yohood-tag"
></div>
<div
class=
"good-tag yohood-tag"
>
新品节
</div>
{
{/
is_yohoood
}
}
{
{#
is_limited
}
}
<p
class=
"good-tag limit-tag"
>限量商品</p>
...
...
@@ -113,6 +113,7 @@
{
{/
enterStore
}
}
<div
id=
"productDesc"
>
</div>
<!--
{
{>
product/product-description
}
}
-->
{
{>
product/recommend-for-you
}
}
{
{#cartInfo
}
}
...
...
template/m.yohobuy.com/partials/product/product-description.phtml
View file @
b1f7e5c
...
...
@@ -72,7 +72,9 @@
{
{#params
}
}
{
{#if
@first
}
}
{
{else
}
}
<img
class=
"avatar lazy"
data-original=
"{{param}}"
alt=
""
>
<div>
<img
class=
"avatar lazy"
data-original=
"{{param}}"
alt=
""
>
</div>
{
{/if
}
}
{
{/params
}
}
</div>
...
...
Please
register
or
login
to post a comment