|
@@ -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
|
//修改加入购物车的文字和背景
|