Authored by 郝肖肖

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

@@ -178,7 +178,7 @@ const getResourcesData = (params, options) => { @@ -178,7 +178,7 @@ const getResourcesData = (params, options) => {
178 let preferSkns = result[1] && result[1].data || []; 178 let preferSkns = result[1] && result[1].data || [];
179 179
180 if (result[0] && result[0].goods && result[0].goods.productSkns) { 180 if (result[0] && result[0].goods && result[0].goods.productSkns) {
181 - result[0].goods.productSkns = _.uniq(Object.assign(preferSkns, skns)); 181 + result[0].goods.productSkns = _.uniq(Object.assign(skns, preferSkns));
182 } 182 }
183 183
184 return result[0]; 184 return result[0];
@@ -58,12 +58,20 @@ plusstar = { @@ -58,12 +58,20 @@ plusstar = {
58 // 点击潮流优选上方的TAB按钮时 58 // 点击潮流优选上方的TAB按钮时
59 if (window._yas && window._yas.sendCustomInfo) { 59 if (window._yas && window._yas.sendCustomInfo) {
60 window._yas.sendCustomInfo({ 60 window._yas.sendCustomInfo({
61 - op: 'YB_FASHION_HOME_L', 61 + op: 'YB_FASHION_TAB_C',
62 param: JSON.stringify({ 62 param: JSON.stringify({
63 C_ID: CID, 63 C_ID: CID,
64 TAB_ID: $liDom.index() + 1 64 TAB_ID: $liDom.index() + 1
65 }) 65 })
66 }, true); 66 }, true);
  67 +
  68 + window._yas.sendCustomInfo({
  69 + op: 'YB_FASHION_HOME_L',
  70 + param: JSON.stringify({
  71 + C_ID: CID,
  72 + TAB_ID: that.ParentLiDom.index() + 1
  73 + })
  74 + }, true);
67 } 75 }
68 }); 76 });
69 77
@@ -101,7 +109,7 @@ plusstar = { @@ -101,7 +109,7 @@ plusstar = {
101 index = $dom.index() + 1; 109 index = $dom.index() + 1;
102 window.givePoint({ 110 window.givePoint({
103 REC_POSE: RECPOSE, 111 REC_POSE: RECPOSE,
104 - PRD_ID: $dom.data('id'), 112 + PRD_ID: $dom.data('good-id'),
105 ORDER_CODE: '', 113 ORDER_CODE: '',
106 PRD_NUM: index % that.common.pagesize === 0 ? that.common.pagesize : index % that.common.pagesize, 114 PRD_NUM: index % that.common.pagesize === 0 ? that.common.pagesize : index % that.common.pagesize,
107 ACTION_ID: 1, 115 ACTION_ID: 1,
@@ -151,7 +159,6 @@ plusstar = { @@ -151,7 +159,6 @@ plusstar = {
151 TAB_ID: that.ParentLiDom.index() + 1 159 TAB_ID: that.ParentLiDom.index() + 1
152 }) 160 })
153 }, true); 161 }, true);
154 -  
155 }, 162 },
156 tabNav: function(code) { 163 tabNav: function(code) {
157 var that = this; 164 var that = this;
@@ -256,7 +263,7 @@ plusstar = { @@ -256,7 +263,7 @@ plusstar = {
256 } 263 }
257 264
258 $.each($(data).siblings('.good-info'), function() { 265 $.each($(data).siblings('.good-info'), function() {
259 - skn.push($(this).data('id')); 266 + skn.push($(this).data('good-id'));
260 }); 267 });
261 268
262 window.givePoint({ 269 window.givePoint({
@@ -271,6 +278,8 @@ plusstar = { @@ -271,6 +278,8 @@ plusstar = {
271 $('.plusstar-resources .goods').append(data); 278 $('.plusstar-resources .goods').append(data);
272 279
273 lazyLoad($('.plusstar-resources .goods').find('img.lazy:not([src])')); 280 lazyLoad($('.plusstar-resources .goods').find('img.lazy:not([src])'));
  281 +
  282 + $('.resources .goods .page-total').remove();
274 }, 283 },
275 error: function() { 284 error: function() {
276 tip.show('网络断开连接了~'); 285 tip.show('网络断开连接了~');