|
|
/* eslint-disable max-len */
|
|
|
|
|
|
import qs from 'yoho-qs';
|
|
|
const yoho = require('js/yoho-app');
|
...
|
...
|
@@ -69,9 +70,9 @@ class ResourceShowYasRpter { |
|
|
let cacheTheShowSkns = []; // 暂存此次上报的楼层,上报后复制给 lastReportSkns
|
|
|
let tabParams = {};
|
|
|
|
|
|
tabParams.TAB_NAME = $('.guess-like-tab-active').parent().data('tab-name');
|
|
|
tabParams.TAB_ID = $('.guess-like-tab-active').parent().data('item-idx') + 1;
|
|
|
tabParams.P_PARAM = $('.guess-like-tab-active').parent().data('code');
|
|
|
tabParams.TAB_NAME = $('.guess-like-tab-active').parent().data('tab-name') || $('.guess-tab-active').parent().data('tab-name');
|
|
|
tabParams.TAB_ID = $('.guess-like-tab-active').parent().data('item-idx') + 1 || $('.guess-tab-active').parent().data('item-idx') + 1;
|
|
|
tabParams.P_PARAM = $('.guess-like-tab-active').parent().data('code') || $('.guess-tab-active').parent().data('code');
|
|
|
|
|
|
$('.templates').each((floorIndex, theFloor) => {
|
|
|
let $theFloor = $(theFloor);
|
...
|
...
|
@@ -102,6 +103,7 @@ class ResourceShowYasRpter { |
|
|
}
|
|
|
});
|
|
|
|
|
|
// console.log('ssss', floorsRawArr)
|
|
|
$theFloor.find('.split-item').each((aIndex, theA) => {
|
|
|
let $theA = $(theA);
|
|
|
let href = $theA.data('href');
|
...
|
...
|
@@ -140,6 +142,8 @@ class ResourceShowYasRpter { |
|
|
F_NAME
|
|
|
});
|
|
|
}
|
|
|
|
|
|
// console.log('prd', floorsRawArr)
|
|
|
});
|
|
|
}
|
|
|
|
...
|
...
|
@@ -162,6 +166,7 @@ class ResourceShowYasRpter { |
|
|
newParams.ACTION_URL = goodsRawObj.href;
|
|
|
}
|
|
|
this.reportParams.DATA.push(newParams);
|
|
|
console.log(this.reportParams.DATA);
|
|
|
}
|
|
|
}
|
|
|
});
|
...
|
...
|
@@ -214,6 +219,7 @@ class ResourceShowYasRpter { |
|
|
};
|
|
|
|
|
|
this.reportParams.DATA.push(newParams);
|
|
|
console.log(this.reportParams.DATA);
|
|
|
}
|
|
|
|
|
|
cacheTheShowSkns.push(goodsRawObj.PRD_SKN);
|
...
|
...
|
|