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
Email Patches
Plain Diff
Browse Files
Authored by
Lynnic
9 years ago
Commit
611ac23b3e1ac4984a3c642c2088deeb424da250
1 parent
1d09f08a
收藏产品弹出提示
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
13 deletions
static/js/product/detail/like.js
static/sass/product/_detail.scss
static/sass/product/_product-description.scss
template/m.yohobuy.com/actions/product/detail/index.phtml
static/js/product/detail/like.js
View file @
611ac23
...
...
@@ -37,6 +37,12 @@ likeHammer.on('tap', function(e) {
success
:
function
(
data
)
{
if
(
data
.
code
===
200
)
{
$this
.
toggleClass
(
'liked'
);
if
(
'cancel'
===
opt
)
{
tip
.
show
(
'取消收藏成功'
);
}
else
if
(
'ok'
===
opt
)
{
tip
.
show
(
'收藏成功'
);
}
}
else
if
(
data
.
code
===
400
)
{
location
.
href
=
data
.
data
;
//未登录跳转登录页
}
else
{
...
...
static/sass/product/_detail.scss
View file @
611ac23
...
...
@@ -45,9 +45,6 @@ $basicBtnC:#eb0313;
font-size
:
pxToRem
(
24px
);
background-color
:
$tableCellC
;
float
:
left
;
&
:last-child
{
border-bottom
:
none
;
}
&
:nth-child
(
even
)
{
border-right
:
none
;
}
...
...
static/sass/product/_product-description.scss
View file @
611ac23
...
...
@@ -66,12 +66,6 @@
}
}
}
// .material-type {
// width: pxToRem(581px);
// height: pxToRem(99px);
// border-top: 1px solid $borderC;
// padding: pxToRem(17px) 0;
// }
}
.wash-tips
{
padding-top
:pxToRem
(
18px
)
;
...
...
template/m.yohobuy.com/actions/product/detail/index.phtml
View file @
611ac23
...
...
@@ -113,8 +113,8 @@
</div>
{
{/
enterStore
}
}
<div
id=
"productDesc"
></div>
<!--
{
{>
product/product-description
}
}
-->
<!--
<div
id=
"productDesc"
></div>
-->
{
{>
product/product-description
}
}
{
{>
product/recommend-for-you
}
}
{
{#cartInfo
}
}
...
...
@@ -139,5 +139,4 @@
{
{/if
}
}
</div>
{
{>
layout/footer
}
}
<div
class=
"bottom-blank"
></div>
\ No newline at end of file
{
{>
layout/footer
}
}
\ No newline at end of file
...
...
Please
register
or
login
to post a comment