Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuy-node
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
1
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
htoooth
8 years ago
Commit
0622dab91ebf2d6f42348186f38c33f6442b716c
1 parent
6bbe756f
fix css
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
6 deletions
apps/product/controllers/detail.js
apps/product/views/action/product/detail.hbs
public/js/product/detail.page.js
public/scss/product/_detail.css
apps/product/controllers/detail.js
View file @
0622dab
...
...
@@ -236,9 +236,8 @@ const createConsult = (req, res, next) => {
const
likeConsult
=
(
req
,
res
,
next
)
=>
{
let
uid
=
req
.
user
.
uid
;
// let uid = '12696231';
let
id
=
req
.
params
.
id
||
0
;
if
(
!
id
)
{
return
res
.
json
({
code
:
401
,
...
...
apps/product/views/action/product/detail.hbs
View file @
0622dab
...
...
@@ -57,10 +57,11 @@
<li>
<em
class=
"justpostion"
>
{{#if
dColor
}}
<span
class=
"keySpace"
>
{{{
escapeType
key
}}}
:
</span><span
id=
"desc-color"
class=
"valueSpace"
>
{{
value
}}
</span>
<span
class=
"keySpace"
>
{{{
escapeType
key
}}}
:
</span>
<span
id=
"desc-color"
title=
"
{{
value
}}
"
class=
"valueSpace"
>
{{
value
}}
</span>
{{^}}
<span
class=
"keySpace"
>
{{{
escapeType
key
}}}
:
</span><span
class=
"valueSpace"
>
{{
value
}}
</span>
<span
class=
"keySpace"
>
{{{
escapeType
key
}}}
:
</span>
<span
class=
"valueSpace"
>
{{
value
}}
</span>
{{/if}}
</em>
</li>
...
...
public/js/product/detail.page.js
View file @
0622dab
...
...
@@ -495,6 +495,7 @@ bindEvent.add(function() {
// 切换详细信息的颜色显示
$descColor
.
text
(
$this
.
data
(
'color'
));
$descColor
.
attr
(
'title'
,
$this
.
data
(
'color'
));
// 切换尺码显示
$sizes
.
not
(
'.hide'
).
addClass
(
'hide'
).
children
(
'li'
).
removeClass
(
'focus'
);
...
...
public/scss/product/_detail.css
View file @
0622dab
...
...
@@ -1039,9 +1039,19 @@
color
:
#444
;
.valueSpace{
.valueSpace
{
margin-left
:
7px
;
}
#desc-color
{
margin-left
:
7px
;
width
:
40%
;
display
:
inline-block
;
vertical-align
:
bottom
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
white-space
:
nowrap
;
}
}
}
...
...
Please
register
or
login
to post a comment