...
|
...
|
@@ -254,7 +254,6 @@ const _processContentData = (list) => { |
|
|
|
|
|
if (value.singleImage) {
|
|
|
_.forEach(value.singleImage.data, function(data, index) {
|
|
|
console.log(data);
|
|
|
if (index === 0) {
|
|
|
contentData = _.assign(contentData, {
|
|
|
shareImg: data.src
|
...
|
...
|
@@ -263,6 +262,20 @@ const _processContentData = (list) => { |
|
|
});
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
if (value.smallPic) {
|
|
|
_.forEach(value.smallPic.data, function(data, index) {
|
|
|
|
|
|
data.src = data.src.substring(0, data.src.indexOf('?'));
|
|
|
if (index === 0) {
|
|
|
contentData = _.assign(contentData, {
|
|
|
shareImg: data.src
|
|
|
});
|
|
|
}
|
|
|
});
|
|
|
|
|
|
return false;
|
|
|
}
|
|
|
});
|
|
|
|
|
|
contentData.contents = list;
|
...
|
...
|
|