Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuywap-node
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
王水玲
6 years ago
Commit
eb5e3d5ad5351c38f4dff47fbc8ca9413dc6b419
1 parent
68b8869f
评论添加回复展示
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
43 additions
and
14 deletions
apps/product/models/consult-comment.js
apps/product/views/action/detail/comments.hbs
apps/product/views/partial/detail/feedback-tab.hbs
public/hbs/product/detail/feedback-tab.hbs
public/scss/product/detail/comments-consults.scss
public/scss/product/detail/detail.scss
apps/product/models/consult-comment.js
View file @
eb5e3d5
...
...
@@ -116,6 +116,7 @@ module.exports = class extends global.yoho.BaseModel {
color
:
color
||
''
,
size
:
size
||
''
,
content
:
item
.
content
,
reply
:
item
.
reply
,
time
:
helpers
.
dateFormat
(
'YYYY-MM-DD HH:mm:ss'
,
new
Date
(
item
.
createTime
*
1000
))
});
});
...
...
apps/product/views/action/detail/comments.hbs
View file @
eb5e3d5
...
...
@@ -10,6 +10,11 @@
<span
class=
"goods-size"
>
/
{{
size
}}
</span>
</div>
<p
class=
"detail-content"
>
{{
content
}}
</p>
{{#
reply
}}
<p
class=
"comment-reply"
>
客服回复:
{{
.
}}
</p>
{{/
reply
}}
<span
class=
"comment-time"
>
{{
time
}}
</span>
</div>
{{/
comments
}}
...
...
apps/product/views/partial/detail/feedback-tab.hbs
View file @
eb5e3d5
...
...
@@ -20,9 +20,14 @@
<p
class=
"detail-content"
>
{{
content
}}
</p>
<span
class=
"comment-time"
>
{{
time
}}
</span>
{{#
reply
}}
<p
class=
"comment-reply"
>
客服回复:
{{
.
}}
</p>
{{/
reply
}}
<span
class=
"comment-time"
>
{{
time
}}
</span>
{{/
comments
}}
</div>
<a
class=
"comment-content-footer tap-hightlight"
href=
"
{{
commentsUrl
}}
"
rel=
"nofollow"
>
...
...
public/hbs/product/detail/feedback-tab.hbs
View file @
eb5e3d5
...
...
@@ -15,17 +15,22 @@
<span
class=
"user-name
{{#if
userName
}}
pd-right
{{/if}}
"
>
{{{
userName
}}}
</span>
<span
class=
"goods-spec"
>
购买了
<b>
{{
color
}}
</b>
</span>
<span
class=
"goods-size"
>
/
{{
size
}}
</span>
</div>
<p
class=
"detail-content"
>
{{
content
}}
</p>
<span
class=
"comment-time"
>
{{
time
}}
</span>
<span
class=
"goods-spec"
>
购买了
<b>
{{
color
}}
</b>
</span>
<span
class=
"goods-size"
>
/
{{
size
}}
</span>
</div>
<p
class=
"detail-content"
>
{{
content
}}
</p>
{{#
reply
}}
<p
class=
"comment-reply"
>
客服回复:
{{
.
}}
</p>
{{/
reply
}}
<span
class=
"comment-time"
>
{{
time
}}
</span>
{{/
comments
}}
</div>
<a
class=
"comment-content-footer tap-hightlight"
href=
"
{{
commentsUrl
}}
"
rel=
"nofollow"
>
...
...
public/scss/product/detail/comments-consults.scss
View file @
eb5e3d5
...
...
@@ -135,6 +135,12 @@
line-height
:
62px
;
}
.comment-reply
{
background
:
#f2f2f2
;
padding
:
10px
;
margin-top
:
15px
;
}
.goods-spec
,
.comment-time
{
font-size
:
24px
;
...
...
public/scss/product/detail/detail.scss
View file @
eb5e3d5
...
...
@@ -890,6 +890,13 @@ $basicBtnC: #eb0313;
line-height
:
62px
;
}
.comment-reply
{
margin
:
0
28px
;
padding
:
10px
;
background
:
#f2f2f2
;
box-sizing
:
border-box
;
}
.detail-content
{
color
:
$mainFontC
;
font-size
:
28px
;
...
...
Please
register
or
login
to post a comment