Authored by 梁志锋

Merge remote-tracking branch 'remotes/origin/develop/wap' into beta/wap

@@ -34,6 +34,7 @@ var $chosePanel = $('#chose-panel'), @@ -34,6 +34,7 @@ var $chosePanel = $('#chose-panel'),
34 $allChoseItems, 34 $allChoseItems,
35 queryString, 35 queryString,
36 $choseArea, 36 $choseArea,
  37 + $cartBar,
37 $soonSoldOut = $('.soonSoldOut-tag'), 38 $soonSoldOut = $('.soonSoldOut-tag'),
38 $yohoPage = $('.yoho-page'); 39 $yohoPage = $('.yoho-page');
39 40
@@ -54,6 +55,7 @@ function init() { @@ -54,6 +55,7 @@ function init() {
54 $sizeRowList = $('.size-list ul'); 55 $sizeRowList = $('.size-list ul');
55 $colorRowList = $('.color-list ul'); 56 $colorRowList = $('.color-list ul');
56 $leftNum = $('#left-num'); 57 $leftNum = $('#left-num');
  58 + $cartBar = $('.cart-bar');
57 curColorIndex = 0; 59 curColorIndex = 0;
58 curSizeIndex = 0; 60 curSizeIndex = 0;
59 isEdit = 0; 61 isEdit = 0;
@@ -136,6 +138,10 @@ function show(html, cb) { @@ -136,6 +138,10 @@ function show(html, cb) {
136 function hide() { 138 function hide() {
137 $('.chose-panel').hide(); 139 $('.chose-panel').hide();
138 innerScroll.enableScroll($choseArea); 140 innerScroll.enableScroll($choseArea);
  141 +
  142 + if ($cartBar.length > 0) {
  143 + $cartBar.show();
  144 + }
139 } 145 }
140 146
141 //修改加入购物车的文字和背景 147 //修改加入购物车的文字和背景
@@ -64,6 +64,7 @@ $('#likeBtn').on('touchstart', function() { @@ -64,6 +64,7 @@ $('#likeBtn').on('touchstart', function() {
64 }); 64 });
65 65
66 $('#addtoCart').on('touchstart', function() { 66 $('#addtoCart').on('touchstart', function() {
  67 + $('.cart-bar').hide();
67 chosePanel.show(); 68 chosePanel.show();
68 69
69 //统计代码:用于统计用户加入购物车的动作 70 //统计代码:用于统计用户加入购物车的动作
@@ -52,9 +52,9 @@ @@ -52,9 +52,9 @@
52 font-size: 50px; 52 font-size: 50px;
53 } 53 }
54 p{ 54 p{
55 - width: 59.517241%; 55 + width: 61.517241%;
56 height: auto; 56 height: auto;
57 - margin: 0 3% 16em / $pxConvertRem; 57 + margin: 0 2% 16em / $pxConvertRem;
58 float: left; 58 float: left;
59 &:first-of-type{ 59 &:first-of-type{
60 margin-top: 0.75rem; 60 margin-top: 0.75rem;