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
yyq
9 years ago
Commit
956ec7f0cecaf95a2c4d7dfbe578818f6982a6c2
1 parent
ae4a1623
item css
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
4 deletions
apps/product/models/item-handler.js
apps/product/views/action/item.hbs
public/js/product/item.page.js
public/scss/product/_item.css
apps/product/models/item-handler.js
View file @
956ec7f
...
...
@@ -379,6 +379,10 @@ const setProductData = base => {
// 默认第一张图片
if
(
!
_
.
has
(
resData
,
'img'
))
{
resData
.
img
=
value
.
colorImage
;
// 只有一张图时不显示左右切换箭头
if
(
thumbs
.
length
<
2
)
{
resData
.
btnsHide
=
true
;
}
}
// 商品尺码列表
...
...
apps/product/views/action/item.hbs
View file @
956ec7f
...
...
@@ -11,7 +11,7 @@
<div
class=
"thumbs left clearfix"
>
<div
class=
"thumb-show right"
>
<img
id=
"main-thumb"
src=
"
{{
image
img
482
643
}}
"
style=
"display: block;"
>
<div
class=
"check-btns"
>
<div
class=
"check-btns
{{#if
btnsHide
}}
hide
{{/if}}
"
>
<span
class=
"iconfont pre-thumb"
>

</span>
<span
class=
"iconfont next-thumb"
>

</span>
</div>
...
...
@@ -202,7 +202,7 @@
{{#
basic
}}
<li>
<label
class=
"title"
>
{{
key
}}
<span></span></label>
:
{{
value
}}
:
<span
class=
"info"
>
{{
value
}}
</span>
</li>
{{/
basic
}}
</ul>
...
...
@@ -211,7 +211,7 @@
{{#
comfort
}}
<li>
<label
class=
"title"
>
{{
name
}}
<span></span></label>
:
<span
class=
"min-des"
>
{{
minDes
}}
</span>
:
<span
class=
"min-des
info
"
>
{{
minDes
}}
</span>
{{#
blocks
}}
<span
class=
"comfort-block
{{#if
cur
}}
cur
{{/if}}
"
></span>
{{/
blocks
}}
...
...
public/js/product/item.page.js
View file @
956ec7f
...
...
@@ -62,7 +62,7 @@ function changeThumb($dom) {
}
function
chooseDefaultSize
()
{
var
$item
=
$sizeList
.
not
(
'.hide'
).
children
();
var
$item
=
$sizeList
.
not
(
'.hide'
).
children
()
.
not
(
'.disable'
)
;
if
(
$colorItem
&&
$colorItem
.
length
===
1
&&
$item
&&
$item
.
length
===
1
)
{
...
...
public/scss/product/_item.css
View file @
956ec7f
...
...
@@ -289,6 +289,10 @@
padding-left
:
100%
;
}
}
.info
{
margin-left
:
4px
;
}
}
.des-basic
{
...
...
@@ -315,6 +319,9 @@
height
:
12px
;
border
:
1px
solid
#1d1d1d
;
display
:
inline-block
;
margin
:
0
4px
;
position
:
relative
;
top
:
1px
;
}
.comfort-block.cur
{
...
...
Please
register
or
login
to post a comment