Showing
1 changed file
with
31 additions
and
3 deletions
@@ -141,12 +141,40 @@ $buyNowBtn.on('touchstart', function() { | @@ -141,12 +141,40 @@ $buyNowBtn.on('touchstart', function() { | ||
141 | }); | 141 | }); |
142 | 142 | ||
143 | if (window._yas && window._yas.sendCustomInfo) { | 143 | if (window._yas && window._yas.sendCustomInfo) { |
144 | + let id = [], | ||
145 | + skn = [], | ||
146 | + num = [], | ||
147 | + sku = []; | ||
148 | + | ||
149 | + $('.goods-info .select-btn').each( | ||
150 | + function() { | ||
151 | + skn.push($(this).data('skn')); | ||
152 | + } | ||
153 | + ); | ||
154 | + $('.goods-info .select-btn').each( | ||
155 | + function() { | ||
156 | + id.push($(this).data('id')); | ||
157 | + } | ||
158 | + ); | ||
159 | + $('.goods-info .select-btn').each( | ||
160 | + function() { | ||
161 | + sku.push($(this).data('sku')); | ||
162 | + } | ||
163 | + ); | ||
164 | + $('.goods-info .count').each( | ||
165 | + function() { | ||
166 | + num.push(1); | ||
167 | + } | ||
168 | + ); | ||
144 | window._yas.sendCustomInfo({ | 169 | window._yas.sendCustomInfo({ |
145 | - op: 'YB_GDS_PACKAGE_BUY_NOW_C', | 170 | + op: 'YB_GDS_DT_ADD_TO_SC', |
146 | param: JSON.stringify({ | 171 | param: JSON.stringify({ |
147 | C_ID: window._ChannelVary[window.cookie('_Channel')], | 172 | C_ID: window._ChannelVary[window.cookie('_Channel')], |
148 | - PRD_ID: window.queryString.productId, | ||
149 | - PACKAGE_GOODS: yasGid.join(',') | 173 | + PRD_ID: id.join(','), |
174 | + PRD_NUM: num.join(','), | ||
175 | + PRD_SKN: skn.join(','), | ||
176 | + PRD_SKU: sku.join(','), | ||
177 | + POS_ID: 101 | ||
150 | }) | 178 | }) |
151 | }, true); | 179 | }, true); |
152 | } | 180 | } |
-
Please register or login to post a comment