...
|
...
|
@@ -27,13 +27,13 @@ const getBundleBySkn = (productSkn) => { |
|
|
* @returns {*}
|
|
|
*/
|
|
|
const detail = (params) => {
|
|
|
if (!params.skn) {
|
|
|
if (!params.skn && !params.bundle_skn) {
|
|
|
return Promise.resolve({});
|
|
|
}
|
|
|
let bundleIndex = (params.index || 1);
|
|
|
|
|
|
--bundleIndex;
|
|
|
return getBundleBySkn(params.skn).then(result => {
|
|
|
return getBundleBySkn(params.skn || params.bundle_skn).then(result => {
|
|
|
if (_.has(result, `data[${bundleIndex}]`)) {
|
|
|
let shareInfo = _.get(result, 'data[0].shareInfo', {});
|
|
|
|
...
|
...
|
|