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
Email Patches
Plain Diff
Browse Files
Authored by
xuqi
9 years ago
Commit
68d454e9b5b6642b9dbe7d2f36b9c251673f7019
1 parent
0bca17b3
rmb icon & nav hammer
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
18 additions
and
14 deletions
static/js/shopping-cart/cart.js
static/sass/shopping-cart/_index.scss
template/m.yohobuy.com/actions/index/shoppingCart/index.phtml
template/m.yohobuy.com/partials/shopping-cart/cart-content.phtml
template/m.yohobuy.com/partials/shopping-cart/chose-panel.phtml
template/m.yohobuy.com/partials/shopping-cart/gift-advance-good.phtml
template/m.yohobuy.com/partials/shopping-cart/good.phtml
static/js/shopping-cart/cart.js
View file @
68d454e
...
...
@@ -4,14 +4,18 @@
* @date: 2015/10/20
*/
var
$
=
require
(
'jquery'
);
var
$
=
require
(
'jquery'
),
Hammer
=
require
(
'yoho.hammer'
);
var
$cartContent
=
$
(
'.cart-content'
);
var
navHammer
;
require
(
'./good'
);
$
(
'.cart-nav'
).
delegate
(
'li'
,
'tap'
,
function
()
{
var
$this
=
$
(
this
);
navHammer
=
new
Hammer
(
document
.
getElementsByClassName
(
'cart-nav'
)[
0
]);
navHammer
.
on
(
'tap'
,
function
(
e
)
{
var
$this
=
$
(
e
.
target
).
closest
(
'li'
);
if
(
$this
.
hasClass
(
'active'
))
{
return
;
...
...
static/sass/shopping-cart/_index.scss
View file @
68d454e
...
...
@@ -8,14 +8,14 @@
padding-bottom
:
120rem
/
$pxConvertRem
;
.cart-nav
{
height
:
30rem
/
$pxConvertRem
;
color
:
#c6c6c6
;
border-bottom
:
1px
solid
#e0e0e0
;
padding
:
30rem
/
$pxConvertRem
0
;
li
{
float
:
left
;
width
:
50%
;
padding
:
30rem
/
$pxConvertRem
0
;
height
:
30rem
/
$pxConvertRem
;
}
li
.active
{
...
...
template/m.yohobuy.com/actions/index/shoppingCart/index.phtml
View file @
68d454e
...
...
@@ -2,7 +2,7 @@
<div
class=
"shopping-cart-page yoho-page"
>
{
{#
shoppingCart
}
}
{
{#if
cartNav
}
}
<ul
class=
"cart-nav"
>
<ul
class=
"cart-nav
clearfix
"
>
<li
class=
"active"
>
<span>
普通商品(
{
{commonGoodsCount
}
})
...
...
template/m.yohobuy.com/partials/shopping-cart/cart-content.phtml
View file @
68d454e
...
...
@@ -32,14 +32,14 @@
<div class="price-compute">
<p class="sum-price">
<span class="title">总价</span>
¥
{{price}}
¥
{{price}}
</p>
<p class="activity-price">
<span class="title">
活动价
<i class="minus">-</i>
</span>
¥
{{activityPrice}}
¥
{{activityPrice}}
</p>
</div>
...
...
@@ -47,11 +47,11 @@
<span class="iconfont icon-cb-checked"></span>
<p>
<span>
{{count}}件总计:
¥
{{sumPrice}}
{{count}}件总计:
¥
{{sumPrice}}
</span>
<span class="tip">(不含运费)</span>
</p>
<button class="btn-balance">
结算
</button>
</div>
\ No newline at end of file
</div>
\ No newline at end of file
...
...
template/m.yohobuy.com/partials/shopping-cart/chose-panel.phtml
View file @
68d454e
...
...
@@ -6,9 +6,9 @@
<div class="text-info">
<p class="name">{{name}}</p>
<p class="price">
<span class="sale-price{{^price}} no-price{{/price}}">
¥
{{salePrice}}</span>
<span class="sale-price{{^price}} no-price{{/price}}">
¥
{{salePrice}}</span>
{{#if price}}
<span class="market-price">
¥
{{price}}</span>
<span class="market-price">
¥
{{price}}</span>
{{/if}}
</p>
</div>
...
...
template/m.yohobuy.com/partials/shopping-cart/gift-advance-good.phtml
View file @
68d454e
...
...
@@ -20,7 +20,7 @@
</p>
<p class="row">
<span class="price">
¥
{{price}}
¥
{{price}}
</span>
<span class="count">
×{{count}}
...
...
template/m.yohobuy.com/partials/shopping-cart/good.phtml
View file @
68d454e
...
...
@@ -25,7 +25,7 @@
</p>
<p class="row">
<span class="price">
¥
{{price}}
¥
{{price}}
</span>
<span class="count">
×{{count}}
...
...
Please
register
or
login
to post a comment