Authored by 郝肖肖

潮流优选,商品列表顺序调整

... ... @@ -178,7 +178,7 @@ const getResourcesData = (params, options) => {
let preferSkns = result[1] && result[1].data || [];
if (result[0] && result[0].goods && result[0].goods.productSkns) {
result[0].goods.productSkns = _.uniq(Object.assign(preferSkns, skns));
result[0].goods.productSkns = _.uniq(Object.assign(skns, preferSkns));
}
return result[0];
... ...
... ... @@ -58,12 +58,20 @@ plusstar = {
// 点击潮流优选上方的TAB按钮时
if (window._yas && window._yas.sendCustomInfo) {
window._yas.sendCustomInfo({
op: 'YB_FASHION_HOME_L',
op: 'YB_FASHION_TAB_C',
param: JSON.stringify({
C_ID: CID,
TAB_ID: $liDom.index() + 1
})
}, true);
window._yas.sendCustomInfo({
op: 'YB_FASHION_HOME_L',
param: JSON.stringify({
C_ID: CID,
TAB_ID: that.ParentLiDom.index() + 1
})
}, true);
}
});
... ... @@ -101,7 +109,7 @@ plusstar = {
index = $dom.index() + 1;
window.givePoint({
REC_POSE: RECPOSE,
PRD_ID: $dom.data('id'),
PRD_ID: $dom.data('good-id'),
ORDER_CODE: '',
PRD_NUM: index % that.common.pagesize === 0 ? that.common.pagesize : index % that.common.pagesize,
ACTION_ID: 1,
... ... @@ -151,7 +159,6 @@ plusstar = {
TAB_ID: that.ParentLiDom.index() + 1
})
}, true);
},
tabNav: function(code) {
var that = this;
... ... @@ -256,7 +263,7 @@ plusstar = {
}
$.each($(data).siblings('.good-info'), function() {
skn.push($(this).data('id'));
skn.push($(this).data('good-id'));
});
window.givePoint({
... ... @@ -271,6 +278,8 @@ plusstar = {
$('.plusstar-resources .goods').append(data);
lazyLoad($('.plusstar-resources .goods').find('img.lazy:not([src])'));
$('.resources .goods .page-total').remove();
},
error: function() {
tip.show('网络断开连接了~');
... ...