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
yyq
5 years ago
Commit
e57209cb5ab2703f788b4e3dd0b422f2e9a4c41b
1 parent
b769eb10
detail skc title-review by wenxue
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
1 deletions
apps/product/models/detail-service.js
apps/product/views/partial/product/color-list.hbs
public/scss/product/_detail.css
apps/product/models/detail-service.js
View file @
e57209c
...
...
@@ -1050,6 +1050,8 @@ function _detailDataPkg(origin, uid, vipLevel, cookies) {
result
.
shopId
=
propOrigin
(
'shop_id'
,
0
);
result
.
brandId
=
propOrigin
(
'brand_info.brand_id'
,
''
);
result
.
brandName
=
propOrigin
(
'brand_info.brand_name'
,
''
);
result
.
skcTitle
=
propOrigin
(
'skcTitle'
,
'颜色'
);
result
.
skcTitleLength
=
result
.
skcTitle
.
length
;
result
.
skuTitle
=
propOrigin
(
'skuTitle'
,
'尺码'
);
result
.
skuTitleLength
=
result
.
skuTitle
.
length
;
...
...
apps/product/views/partial/product/color-list.hbs
View file @
e57209c
<div
class=
"chose-color row clearfix"
>
<span
class=
"title pull-left"
>
颜
色
:
</span>
<span
class=
"title pull-left"
>
<i
class=
"skc-label label-size-
{{
skcTitleLength
}}
"
>
{{
skcTitle
}}
</i>
:
</span>
<ul
class=
"colors pull-left clearfix"
>
{{#
each
colors
}}
<li
class=
"
{{#if
focus
}}
focus
{{/if}}
{{#if
disable
}}
disable
{{/if}}
pull-left"
...
...
public/scss/product/_detail.css
View file @
e57209c
...
...
@@ -2668,6 +2668,23 @@
margin-top
:
14px
;
}
.skc-label
{
letter-spacing
:
22px
;
width
:
54px
;
display
:
inline-block
;
overflow
:
hidden
;
white-space
:
nowrap
;
vertical-align
:
middle
;
}
.label-size-3
{
letter-spacing
:
5px
;
}
.label-size-4
{
letter-spacing
:
0
;
}
img
{
float
:
left
;
display
:
inline-block
;
...
...
Please
register
or
login
to post a comment