Authored by xuqi

rmb icon & nav hammer

... ... @@ -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;
... ...
... ... @@ -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 {
... ...
... ... @@ -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}})
... ...
... ... @@ -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
... ...
... ... @@ -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>
... ...
... ... @@ -20,7 +20,7 @@
</p>
<p class="row">
<span class="price">
{{price}}
¥{{price}}
</span>
<span class="count">
×{{count}}
... ...
... ... @@ -25,7 +25,7 @@
</p>
<p class="row">
<span class="price">
{{price}}
¥{{price}}
</span>
<span class="count">
×{{count}}
... ...