...
|
...
|
@@ -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;
|
...
|
...
|
|