Toggle navigation
Toggle navigation
This project
Loading...
Sign in
chenchao
/
YOHOBUYPC
·
Commits
Go to a project
GitLab
Go to dashboard
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
xuqi
2015-12-20 15:24:58 +0800
Commit
e3c8f4ae95e36116925bc77a097b853345295946
1 parent
4365503d
presell tip
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
39 additions
and
0 deletions
static/js/cart/cart.js
static/sass/cart/_index.scss
template/m.yohobuy.com/actions/cart/index/index.phtml
static/js/cart/cart.js
View file @
e3c8f4a
...
...
@@ -50,6 +50,10 @@ if ($('.cart-nav').length > 0) {
//trigger lazyload
$
(
window
).
trigger
(
'scroll'
);
});
setTimeout
(
function
()
{
$
(
'#presell-tip'
).
addClass
(
'hide'
);
},
3000
);
}
$
(
'.btn-balance'
).
on
(
'touchend'
,
function
()
{
...
...
static/sass/cart/_index.scss
View file @
e3c8f4a
...
...
@@ -36,6 +36,37 @@
li
:first-child
span
{
border-right
:
1px
solid
#e0e0e0
;
}
li
:last-child
{
position
:
relative
;
}
.presell-tip
{
position
:
absolute
;
z-index
:
1
;
left
:
-2rem
;
top
:
1
.75rem
;
}
.triangle
{
width
:
0
;
height
:
0
;
border-left
:
8px
solid
transparent
;
border-right
:
8px
solid
transparent
;
border-bottom
:
12px
solid
#000
;
margin-left
:
6rem
;
}
.pt-content
{
position
:
relative
;
padding
:
10px
;
background
:
#000
;
color
:
#fff
;
font-size
:
20px
;
@include
border-radius
(
5px
);
text-align
:
center
;
width
:
7rem
;
}
}
.login-info
{
...
...
template/m.yohobuy.com/actions/cart/index/index.phtml
View file @
e3c8f4a
...
...
@@ -28,6 +28,10 @@
<span>
预售商品(
{
{presellGoodsCount
}
})
</span>
<div
id=
"presell-tip"
class=
"presell-tip"
>
<div
class=
"triangle"
></div>
<p
class=
"pt-content"
>预售商品点这里结算哦~</p>
</div>
</li>
</ul>
{
{/if
}
}
...
...
Please
register
or
login
to post a comment