Authored by hf

Merge branch 'develop'

@@ -14,6 +14,7 @@ var chosePanel = require('./chose-panel'), @@ -14,6 +14,7 @@ var chosePanel = require('./chose-panel'),
14 14
15 var $cartContent = $('.cart-content'), 15 var $cartContent = $('.cart-content'),
16 cartType = $('#cartType').val(), 16 cartType = $('#cartType').val(),
  17 + $cartNav = $('.cart-nav'),
17 hasShowCartPresellTip = false; 18 hasShowCartPresellTip = false;
18 19
19 var navHammer, 20 var navHammer,
@@ -105,7 +106,7 @@ if ('advance' === cartType) { @@ -105,7 +106,7 @@ if ('advance' === cartType) {
105 $(window).trigger('scroll'); 106 $(window).trigger('scroll');
106 } 107 }
107 108
108 -if ($('.cart-nav').length > 0) { 109 +if ($cartNav.length > 0) {
109 navHammer = new Hammer(document.getElementsByClassName('cart-nav')[0]); 110 navHammer = new Hammer(document.getElementsByClassName('cart-nav')[0]);
110 navHammer.on('tap', function(e) { 111 navHammer.on('tap', function(e) {
111 var $this = $(e.target).closest('li'); 112 var $this = $(e.target).closest('li');
@@ -180,5 +181,11 @@ $('.chose').on('touchend', function() { @@ -180,5 +181,11 @@ $('.chose').on('touchend', function() {
180 chosePanel.show(); 181 chosePanel.show();
181 }); 182 });
182 183
  184 +$cartNav.on('touchstart', 'li', function(e) {
  185 + $(this).addClass('bytouch');
  186 +}).on('touchend touchcancel', function() {
  187 + $cartNav.find('li').removeClass('bytouch');
  188 +});
  189 +
183 //提前触发lazyload 190 //提前触发lazyload
184 $(window).scrollTop(1).scrollTop(0); 191 $(window).scrollTop(1).scrollTop(0);
@@ -31,6 +31,7 @@ @@ -31,6 +31,7 @@
31 } 31 }
32 32
33 .basic-info { 33 .basic-info {
  34 + // height: 100rem / $pxConvertRem;
34 overflow: hidden; 35 overflow: hidden;
35 position: relative; 36 position: relative;
36 margin-bottom: pxToRem(30px); 37 margin-bottom: pxToRem(30px);
@@ -155,10 +156,12 @@ @@ -155,10 +156,12 @@
155 height: 80rem / $pxConvertRem; 156 height: 80rem / $pxConvertRem;
156 line-height: 80rem / $pxConvertRem; 157 line-height: 80rem / $pxConvertRem;
157 padding: 0; 158 padding: 0;
158 - border: none;  
159 - border-top: 1px solid #e6e6e6;  
160 - border-bottom: 1px solid #e6e6e6; 159 + border: 1px solid #e6e6e6;
161 text-align: center; 160 text-align: center;
  161 + margin-left: -1px;
  162 + }
  163 + .btn-plus{
  164 + margin-left: -1px;
162 } 165 }
163 166
164 .btn-wrap { 167 .btn-wrap {