Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYWAP
·
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
Plain Diff
Browse Files
Authored by
zhangxiaoru
8 years ago
Commit
04c95a87d7cc0074ac1c4e6b1b94d315a763338a
2 parents
766e485b
137964dd
merge feature/goodSize
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
15 deletions
static/js/cart/chose-panel.js
static/sass/cart/_chose-panel.css
template/m.yohobuy.com/partials/cart/chose-panel.phtml
static/js/cart/chose-panel.js
View file @
04c95a8
...
...
@@ -60,7 +60,8 @@ var limitProductCode,
// 限购商品的skn。只有限购商品时才会设置。
skn
;
var
$sizeInfo
;
var
$sizeInfo
,
$thumbImg
;
//禁用数字编辑
function
disableNumEdit
()
{
...
...
@@ -91,7 +92,8 @@ function init() {
isEdit
=
0
;
$mnum
=
$
(
'#mnum'
);
discountNum
=
$mnum
.
val
()
-
0
;
$sizeInfo
=
$
(
'.size-info'
);
$sizeInfo
=
$
(
'.size-info'
);
$thumbImg
=
$
(
'.thumb-img'
);
}
/*
...
...
@@ -361,7 +363,7 @@ function chosedLength() {
for
(
var
i
=
0
;
i
<
chosedStr
.
length
;
i
++
)
{
if
(
chosedStr
.
charCodeAt
(
i
)
>
255
)
{
strlen
+=
2
;
strlen
+=
2
;
}
else
{
strlen
++
;
}
...
...
@@ -751,11 +753,11 @@ $yohoPage.on('click', '.close', function() {
});
$yohoPage
.
on
(
'touchstart'
,
'.thumb'
,
function
()
{
if
(
$
(
this
).
hasClass
(
'hover'
))
{
$
(
this
).
removeClass
(
'hover'
);
if
(
$thumbImg
.
hasClass
(
'hover'
))
{
$thumbImg
.
removeClass
(
'hover'
);
}
else
{
$
(
this
).
addClass
(
'hover'
);
}
$thumbImg
.
addClass
(
'hover'
);
}
})
exports
.
init
=
init
;
...
...
static/sass/cart/_chose-panel.css
View file @
04c95a8
...
...
@@ -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
;
...
...
@@ -241,11 +241,17 @@
width
:
100%
;
background-color
:
black
;
height
:
100%
;
top
:
0px
;
left
:
0px
;
right
:
0px
;
border
:
0px
;
top
:
0
;
left
:
0
;
right
:
0
;
border
:
0
;
z-index
:
999
;
align-items
:
center
;
display
:
flex
;
img
{
width
:
100%
;
}
}
}
...
...
template/m.yohobuy.com/partials/cart/chose-panel.phtml
View file @
04c95a8
...
...
@@ -4,9 +4,11 @@
<div
class=
"close iconfont"
>
626
;</div>
<div
class=
"infos {{#if ../tickets}}tickets-info{{/if}}"
>
<div
class=
"basic-info"
>
<div
class=
"thumb-img"
>
{
{#thumbs
}
}
<img
class=
"thumb {{#unless @first}}hide{{/if}}"
src=
{
{img
}
}>
<img
class=
"thumb {{#unless @first}}hide{{/if}}"
src=
{
{img
}
}>
{
{/thumbs
}
}
</div>
<div
class=
"text-info"
>
<!--
<p
class=
"name"
>
{
{name
}
}</p>
-->
<p
class=
"price"
>
...
...
Please
register
or
login
to post a comment