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
Rock Zhang
9 years ago
Commit
84e14e8fda29f8fbd5ab188d9e8e6b926eb1999c
2 parents
3a29838a
f2c8480b
Merge branch 'develop' of git.dev.yoho.cn:web/yohobuy into develop
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
19 additions
and
18 deletions
static/js/me/address-act.js
static/js/me/order.js
static/js/product/detail/like.js
static/sass/me/_address.scss
static/sass/product/_detail.scss
static/sass/product/_product-description.scss
template/m.yohobuy.com/actions/product/detail/index.phtml
static/js/me/address-act.js
View file @
84e14e8
...
...
@@ -131,6 +131,7 @@ $addressListPage.find('.address').each(function(i, elem) {
$this
.
siblings
().
hide
();
$this
.
children
(
'ul'
).
show
().
children
(
'li'
).
show
();
$
(
this
).
removeClass
(
'highlight'
);
e
.
srcEvent
.
preventDefault
();
e
.
srcEvent
.
stopPropagation
();
});
...
...
static/js/me/order.js
View file @
84e14e8
...
...
@@ -129,7 +129,7 @@ orderHammer.on('tap', function(e) {
if
(
data
.
code
===
200
)
{
//删除订单页面刷新
location
.
href
=
location
.
href
;
history
.
go
(
0
)
;
}
}
});
...
...
@@ -154,7 +154,7 @@ orderHammer.on('tap', function(e) {
if
(
data
.
code
===
200
)
{
//取消订单页面刷新
location
.
href
=
location
.
href
;
history
.
go
(
0
)
;
}
}
});
...
...
static/js/product/detail/like.js
View file @
84e14e8
...
...
@@ -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/me/_address.scss
View file @
84e14e8
...
...
@@ -23,7 +23,7 @@
display
:
inline-block
;
max-width
:
pxToRem
(
380px
);
overflow
:
hidden
;
text-overflow
:
ellipsis
;
text-overflow
:
ellipsis
;
white-space
:
nowrap
;
}
...
...
@@ -40,7 +40,7 @@
font-size
:
pxToRem
(
40px
);
line-height
:
pxToRem
(
60px
);
text-align
:
right
;
.edit
,
.del
{
display
:
inline-block
;
...
...
@@ -48,6 +48,10 @@
width
:
pxToRem
(
60px
);
height
:
pxToRem
(
60px
);
color
:
#999
;
&
:hover
{
color
:
#666
;
}
}
.edit
{
...
...
@@ -212,7 +216,7 @@
float
:
right
;
color
:
#d0d0d0
;
}
&
.highlight
{
background
:
#eee
;
}
...
...
static/sass/product/_detail.scss
View file @
84e14e8
...
...
@@ -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 @
84e14e8
...
...
@@ -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 @
84e14e8
...
...
@@ -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