|
@@ -11,8 +11,7 @@ |
|
@@ -11,8 +11,7 @@ |
11
|
var goodsConsultsEle = $('#goods-consults')[0],
|
11
|
var goodsConsultsEle = $('#goods-consults')[0],
|
12
|
goodsConsultsHammer = goodsConsultsEle && new Hammer(goodsConsultsEle);
|
12
|
goodsConsultsHammer = goodsConsultsEle && new Hammer(goodsConsultsEle);
|
13
|
|
13
|
|
14
|
- var productId,
|
|
|
15
|
- total;
|
14
|
+ var total;
|
16
|
|
15
|
|
17
|
function showCountPlus($el) {
|
16
|
function showCountPlus($el) {
|
18
|
var $count = $el.find('.animate-count');
|
17
|
var $count = $el.find('.animate-count');
|
|
@@ -30,7 +29,6 @@ |
|
@@ -30,7 +29,6 @@ |
30
|
(function() {
|
29
|
(function() {
|
31
|
var queryStr = window.location.search.substring(1);
|
30
|
var queryStr = window.location.search.substring(1);
|
32
|
|
31
|
|
33
|
- productId = queryStr.split('&')[0].split('=')[1];
|
|
|
34
|
total = queryStr.split('&')[1] ? queryStr.split('&')[1].split('=')[1] : null;
|
32
|
total = queryStr.split('&')[1] ? queryStr.split('&')[1].split('=')[1] : null;
|
35
|
}());
|
33
|
}());
|
36
|
|
34
|
|
|
@@ -56,7 +54,7 @@ |
|
@@ -56,7 +54,7 @@ |
56
|
url: url,
|
54
|
url: url,
|
57
|
data: {
|
55
|
data: {
|
58
|
id: id,
|
56
|
id: id,
|
59
|
- productId: productId,
|
57
|
+ productId: window.queryString.product_id,
|
60
|
total: total
|
58
|
total: total
|
61
|
}
|
59
|
}
|
62
|
}).done(function(data) {
|
60
|
}).done(function(data) {
|