...
|
...
|
@@ -20,6 +20,7 @@ let crc32 = function(str, crc) { |
|
|
// crc = 0;
|
|
|
// }
|
|
|
let n = 0; // a number between 0 and 255
|
|
|
|
|
|
let x = 0; // an hex number
|
|
|
|
|
|
crc = crc ^ (-1);
|
...
|
...
|
@@ -33,7 +34,9 @@ let crc32 = function(str, crc) { |
|
|
|
|
|
function getDomain(bucket, filename) {
|
|
|
let domain = '';
|
|
|
|
|
|
let node = '';
|
|
|
|
|
|
let domainL, nodeNum;
|
|
|
|
|
|
if (domainList[bucket]) {
|
...
|
...
|
@@ -81,7 +84,9 @@ function productGlobalUrl(skn) { |
|
|
|
|
|
export function processArticleDetail(articleContent) {
|
|
|
let finalDetail = [];
|
|
|
|
|
|
let allgoods = {id: [], skn: []};
|
|
|
|
|
|
let recommends = [];
|
|
|
|
|
|
for (let value of articleContent) {
|
...
|
...
|
@@ -97,7 +102,9 @@ export function processArticleDetail(articleContent) { |
|
|
// 一张图
|
|
|
if (get(value, 'singleImage.data.length', false)) {
|
|
|
let tagList = get(value, 'singleImage.data[0].tagList', []);
|
|
|
|
|
|
let tagListGlobal = get(value, 'singleImage.data[0].tagListGlobal', []);
|
|
|
|
|
|
let tagListLimit = get(value, 'singleImage.data[0].tagListLimit', []);
|
|
|
|
|
|
// 普通商品
|
...
|
...
|
@@ -155,7 +162,9 @@ export function processArticleDetail(articleContent) { |
|
|
get(value, 'goods.dataGlobal', false) ||
|
|
|
get(value, 'goods.dataLimit', false)) {
|
|
|
let goodsData = get(value, 'goods.data', []);
|
|
|
|
|
|
let goodsDataGlobal = get(value, 'goods.dataGlobal', []);
|
|
|
|
|
|
let goodsDataLimit = get(value, 'goods.dataLimit', []);
|
|
|
|
|
|
// 普通商品
|
...
|
...
|
@@ -204,7 +213,9 @@ export function processArticleDetail(articleContent) { |
|
|
// 推荐商品
|
|
|
if (get(value, 'recommend_products', false)) {
|
|
|
let recommendProducts = get(value, 'recommend_products.data', []);
|
|
|
|
|
|
let recommendProductsGlobal = get(value, 'recommend_products.dataGlobal', []);
|
|
|
|
|
|
let recommendProductsLimit = get(value, 'recommend_products.dataLimit', []);
|
|
|
|
|
|
recommendProducts.forEach(p => {
|
...
|
...
|
|