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
zhangxiaoru
8 years ago
Commit
58c8a4de288ebac13ef18e526938094ccbe54636
1 parent
2f1cad59
产品验收问题
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
8 deletions
public/hbs/product/detail/infodata.hbs
public/js/cart/chose-panel.js
public/scss/cart/_chose-panel.css
public/hbs/product/detail/infodata.hbs
View file @
58c8a4d
...
...
@@ -4,11 +4,12 @@
<div
class=
"close iconfont"
>

</div>
<div
class=
"infos
{{#if
@root
.
tickets
}}
tickets-info
{{/if}}
"
>
<div
class=
"basic-info"
>
<div
class=
"thumb-img"
>
{{#
each
thumbs
}}
<img
class=
"thumb
{{#
unless
@first
}}
hide
{{/
unless
}}
"
src=
"
{{
img
}}
"
>
{{/
each
}}
</div>
<div
class=
"text-info"
>
{{!-- <p class="name">{{name}}</p> --}}
<p
class=
"price"
>
{{#if
price
}}
<span
class=
"sale-price"
>
{{
salePrice
}}
</span>
...
...
public/js/cart/chose-panel.js
View file @
58c8a4d
...
...
@@ -64,7 +64,8 @@ var discountNum = $('#mnum').val() - 0,
var
C_ID
;
var
sizeInfo
;
var
sizeInfo
,
thumbImg
;
require
(
'../common'
);
...
...
@@ -98,6 +99,7 @@ function init() {
curSizeIndex
=
0
;
isEdit
=
0
;
sizeInfo
=
$
(
'.size-info'
);
thumbImg
=
$
(
'.thumb-img'
);
}
/*
...
...
@@ -828,10 +830,11 @@ $('.close').on('click', function() {
});
$
(
'.thumb'
).
on
(
'touchstart'
,
function
()
{
if
(
$
(
this
).
hasClass
(
'hover'
))
{
$
(
this
).
removeClass
(
'hover'
);
if
(
thumbImg
.
hasClass
(
'hover'
))
{
thumbImg
.
removeClass
(
'hover'
);
}
else
{
$
(
this
)
.
addClass
(
'hover'
);
thumbImg
.
addClass
(
'hover'
);
}
});
...
...
public/scss/cart/_chose-panel.css
View file @
58c8a4d
...
...
@@ -14,7 +14,7 @@
right
:
0
;
bottom
:
0
;
left
:
0
;
height
:
838px
;
height
:
70%
;
background
:
#fff
;
}
...
...
@@ -43,9 +43,9 @@
border-bottom
:
1px
solid
#e6e6e6
;
}
.thumb
{
.thumb
-img
{
width
:
164px
;
min-height
:
2
2
0px
;
min-height
:
2
0
0px
;
position
:
absolute
;
top
:
-60px
;
border
:
1px
solid
#e6e6e6
;
...
...
@@ -253,5 +253,11 @@
right
:
0
;
border
:
0
;
z-index
:
999
;
align-items
:
center
;
display
:
flex
;
img
{
width
:
100%
;
}
}
}
...
...
Please
register
or
login
to post a comment