...
|
...
|
@@ -35,6 +35,8 @@ const detail = (params) => { |
|
|
--bundleIndex;
|
|
|
return getBundleBySkn(params.skn).then(result => {
|
|
|
if (_.has(result, `data[${bundleIndex}]`)) {
|
|
|
let shareInfo = _.get(result, 'data[0].shareInfo', {});
|
|
|
|
|
|
return {
|
|
|
bundleDatas: _.map(result.data, (bundle, index) => {
|
|
|
return {
|
...
|
...
|
@@ -43,6 +45,12 @@ const detail = (params) => { |
|
|
href: helpers.urlFormat('/product/bundle/detail', {skn: params.skn, index: ++index}),
|
|
|
};
|
|
|
}),
|
|
|
shareInfo: {
|
|
|
imgUrl: `http:${helpers.image(shareInfo.imgUrl, 300, 300)}`,
|
|
|
subTitle: encodeURIComponent(shareInfo.subTitle),
|
|
|
title: encodeURIComponent(shareInfo.title),
|
|
|
url: shareInfo.url
|
|
|
},
|
|
|
bundleInfo: _.get(result, `data[${bundleIndex}].bundleInfo`, {}),
|
|
|
productList: productProcess.processProductList(_.get(result, `data[${bundleIndex}].productList`, []))
|
|
|
};
|
...
|
...
|
|