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
uedxwg
9 years ago
Commit
e94f94d0810905a514eae2755527e471ce5f3d69
2 parents
872102e4
22923c1c
Merge branch 'develop' of
http://git.dev.yoho.cn/web/yohobuy
into develop
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
25 additions
and
14 deletions
docs/data-structure.md
static/js/me/suggest.js
static/sass/me/_suggest.scss
static/sass/product/_detail.scss
template/m.yohobuy.com/actions/product/detail/index.phtml
docs/data-structure.md
View file @
e94f94d
...
...
@@ -1085,6 +1085,9 @@
},
{
is_advance: true //再到着
},
{
is_soon_sold_out: true //即将售罄
}
],
...
...
static/js/me/suggest.js
View file @
e94f94d
...
...
@@ -82,22 +82,22 @@ headerNavHammer.on('tap', function(e) {
}
});
formHammer
=
new
Hammer
(
document
.
getElementById
(
'img-form'
));
if
(
document
.
getElementById
(
'img-form'
)
!==
null
)
{
formHammer
=
new
Hammer
(
document
.
getElementById
(
'img-form'
));
formHammer
.
on
(
'tap'
,
function
(
e
)
{
if
(
$
(
e
.
target
).
hasClass
(
'upload-img-remove'
))
{
$uploadImgList
.
html
(
''
);
imgStr
=
''
;
setTimeout
(
function
()
{
$imgAdd
.
show
();
},
50
);
formHammer
.
on
(
'tap'
,
function
(
e
)
{
if
(
$
(
e
.
target
).
hasClass
(
'upload-img-remove'
))
{
$uploadImgList
.
html
(
''
);
imgStr
=
''
;
setTimeout
(
function
()
{
$imgAdd
.
show
();
},
50
);
}
});
}
});
}
// 点赞与取消点赞
// suggestContentHammer = new Hammer(document.getElementById('suggest-content'));
$likeBtn
.
bind
(
'click'
,
function
()
{
var
id
=
$
(
this
).
closest
(
'.suggest-item'
).
attr
(
'data-id'
),
$that
=
$
(
this
);
...
...
static/sass/me/_suggest.scss
View file @
e94f94d
...
...
@@ -110,7 +110,7 @@ $suggest: sprite-map("me/suggest/*.png",$spacing: 5px);
//发表意见
.create-new-suggest
{
display
:
block
;
display
:
inline-
block
;
color
:
#444
;
width
:
100%
;
height
:
pxToRem
(
88px
);
...
...
static/sass/product/_detail.scss
View file @
e94f94d
...
...
@@ -69,6 +69,10 @@ $basicBtnC:#eb0313;
border
:
1px
solid
#000
;
color
:
#000
;
}
.soonSoldOut-tag
{
background-color
:
#ffac5b
;
color
:
#fff
;
}
}
.good-detail-page
{
overflow
:
hidden
;
...
...
template/m.yohobuy.com/actions/product/detail/index.phtml
View file @
e94f94d
...
...
@@ -2,6 +2,7 @@
<div
class=
"good-detail-page yoho-page"
>
<div
class=
"banner-container"
>
<div
class=
"tag-container"
>
<p
class=
"good-tag soonSoldOut-tag"
>即将售罄</p>
{
{#
tags
}
}
{
{#
is_new
}
}
<p
class=
"good-tag new-tag"
>NEW</p>
...
...
@@ -18,6 +19,9 @@
{
{#
is_limited
}
}
<p
class=
"good-tag limit-tag"
>限量商品</p>
{
{/
is_limited
}
}
{
{#
is_soon_sold_out
}
}
<p
class=
"good-tag soonSoldOut-tag"
>即将售罄</p>
{
{/
is_soon_sold_out
}
}
{
{/
tags
}
}
</div>
{
{#
bannerTop
}
}
...
...
@@ -102,7 +106,7 @@
<div
id=
"productDesc"
></div>
{
{>
product/recommend-for-you
}
}
{
{#cartInfo
}
}
<div
class=
"cart-bar"
>
{
{#if
numInCart
}
}
...
...
Please
register
or
login
to post a comment