Authored by 郭成尧

Merge branch 'feature/bundleToCart' into release/5.6

@@ -2,7 +2,7 @@ @@ -2,7 +2,7 @@
2 * @Author: Targaryen 2 * @Author: Targaryen
3 * @Date: 2017-04-06 16:51:52 3 * @Date: 2017-04-06 16:51:52
4 * @Last Modified by: Targaryen 4 * @Last Modified by: Targaryen
5 - * @Last Modified time: 2017-04-13 15:45:30 5 + * @Last Modified time: 2017-04-13 20:22:24
6 */ 6 */
7 7
8 const $ = require('yoho-jquery'); 8 const $ = require('yoho-jquery');
@@ -15,8 +15,6 @@ let bundle = { @@ -15,8 +15,6 @@ let bundle = {
15 let self = this; 15 let self = this;
16 16
17 let $bundle = $('.bundle'); // 限定作用域 17 let $bundle = $('.bundle'); // 限定作用域
18 - let activityId = $bundle.data('activityid');  
19 - let batchNo = $bundle.data('poolbatchno');  
20 18
21 self.handle = handle; 19 self.handle = handle;
22 20
@@ -31,8 +29,8 @@ let bundle = { @@ -31,8 +29,8 @@ let bundle = {
31 }); 29 });
32 30
33 self.decrBundle({ 31 self.decrBundle({
34 - activity_id: activityId,  
35 - batch_no: batchNo, 32 + activity_id: $(e.delegateTarget).data('activityid'),
  33 + batch_no: $(e.delegateTarget).data('poolbatchno'),
36 sku_ids: skuIdsArray.join(',') 34 sku_ids: skuIdsArray.join(',')
37 }, e); 35 }, e);
38 }); 36 });
@@ -48,8 +46,8 @@ let bundle = { @@ -48,8 +46,8 @@ let bundle = {
48 }); 46 });
49 47
50 self.incrBundle({ 48 self.incrBundle({
51 - activity_id: activityId,  
52 - batch_no: batchNo, 49 + activity_id: $(e.delegateTarget).data('activityid'),
  50 + batch_no: $(e.delegateTarget).data('poolbatchno'),
53 sku_ids: skuIdsArray.join(',') 51 sku_ids: skuIdsArray.join(',')
54 }, e); 52 }, e);
55 }); 53 });
@@ -169,6 +169,7 @@ const formatValidPool = (pool) => { @@ -169,6 +169,7 @@ const formatValidPool = (pool) => {
169 let poolTemp = { 169 let poolTemp = {
170 poolBuyNumber: pool.pool_buy_number, 170 poolBuyNumber: pool.pool_buy_number,
171 poolId: pool.pool_id, 171 poolId: pool.pool_id,
  172 + poolBatchNo: pool.pool_batch_no, // 套餐批次
172 poolStorageNumber: pool.pool_storage_number, 173 poolStorageNumber: pool.pool_storage_number,
173 poolTitle: pool.pool_title, 174 poolTitle: pool.pool_title,
174 selected: pool.selected, 175 selected: pool.selected,