Authored by 郭成尧

discount-info

@@ -232,7 +232,7 @@ let getProductData = (data) => { @@ -232,7 +232,7 @@ let getProductData = (data) => {
232 let bundleData = _.get(info[4], 'data', null); 232 let bundleData = _.get(info[4], 'data', null);
233 233
234 /* 套装 */ 234 /* 套装 */
235 - if (bundleData && _.get(bundleData, 'bundleInfo.discountType', null) === 1) { 235 + if (bundleData && _.get(bundleData, 'bundleInfo.discountType', null) === 1) {
236 finalResult.bundleData = { 236 finalResult.bundleData = {
237 title: '优惠套装', 237 title: '优惠套装',
238 href: helpers.urlFormat('/product/bundle/detail', {skn: result.product_skn}), 238 href: helpers.urlFormat('/product/bundle/detail', {skn: result.product_skn}),
@@ -245,7 +245,7 @@ let getProductData = (data) => { @@ -245,7 +245,7 @@ let getProductData = (data) => {
245 } 245 }
246 246
247 /* 量贩 */ 247 /* 量贩 */
248 - if (bundleData && _.get(bundleData, 'bundleInfo.discountType', null) === 2) { 248 + if (bundleData && _.get(bundleData, 'bundleInfo.discountType', null) === 2) {
249 finalResult.discount = _.get(bundleData, 'bundleInfo.bundleCount', 1); 249 finalResult.discount = _.get(bundleData, 'bundleInfo.bundleCount', 1);
250 } 250 }
251 251