Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yoho-blk
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
1
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
姜枫
9 years ago
Commit
4d312719f0a724163ebb66a594da8a4d776fa369
1 parent
634180c8
edit shipping cart color
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
6 deletions
apps/product/models/shop-service.js
public/scss/shopping/_cart-products.css
public/tpl/shopping/edit-color-size.hbs
apps/product/models/shop-service.js
View file @
4d31271
...
...
@@ -103,7 +103,7 @@ const ShopService = {
if
(
data
&&
data
.
data
)
{
let
sorts
=
camelCase
(
data
.
data
.
sort
);
sorts
.
forEach
(
s
=>
{
_
.
each
(
sorts
,
s
=>
{
sortArray
=
sortArray
.
concat
(
s
.
sub
);
});
...
...
public/scss/shopping/_cart-products.css
View file @
4d31271
...
...
@@ -211,7 +211,6 @@ $hoverColor: #379ed6;
display
:
inline-block
;
width
:
20px
;
height
:
20px
;
border
:
1px
solid
#000
;
margin-right
:
20px
;
}
...
...
public/tpl/shopping/edit-color-size.hbs
View file @
4d31271
...
...
@@ -8,12 +8,19 @@
<div
class=
"colors-list mb20"
>
{{#
each
colors
}}
<span
class=
"color-item
{{#if
active
}}
current-color
{{/if}}{{#
unless
selectable
}}
disabled
{{/
unless
}}
"
style=
"background:
{{
rgb
}}
"
<span
class=
"input-radio color-item
{{#if
active
}}
current-color
{{/if}}{{#
unless
selectable
}}
disabled
{{/
unless
}}
"
data-imageurl=
"
{{
image
pic
100
134
}}
"
data-target=
"
{{
proId
}}
-color-
{{
@index
}}
"
data-title=
"
{{
color
}}
"
title=
"
{{
color
}}
"
>
<span
class=
"inner"
></span>
data-title=
"
{{
this
.
color
}}
"
title=
"
{{
this
.
color
}}
"
>
<label
class=
"round-color
{{#if
active
}}
cur
{{/if}}
"
title=
"
{{
title
}}
"
style=
"width: 20px; height: 20px;"
>
<div
class=
"icon-back"
style=
"background:
{{
this
.
rgb
}}
"
>
{{#if
bgImg
}}
<img
src=
"
{{
bgImg
}}
"
>
{{/if}}
</div>
<span
class=
"iconfont icon-cover"
>

</span>
<span
class=
"iconfont icon-round"
>

</span>
</label>
</span>
{{/
each
}}
</div>
...
...
Please
register
or
login
to post a comment