Authored by baoss

修复拼团埋点问题、优化图标 review by bevishuang

... ... @@ -5,8 +5,8 @@
<span class="new-group-product-left-icon-number"></span>
</div>
{{/ifcond}} --}}
{{#if cover_info}}
<img src="{{cover_info.list_bg_img}}" class="list-bg-icon" alt="list_icon">
{{#if icon}}
<img src="{{icon}}" class="list-bg-icon" alt="list_icon">
{{/if}}
{{#if @root.lazyLoad}}
<img class="lazy new-group-product-image" data-original="{{image2 default_images w=400 h=390 q=60 mode=3}}" />
... ...
... ... @@ -70,7 +70,7 @@ class ResourceShowYasRpter {
let tabParams = {};
tabParams.TAB_NAME = $('.guess-like-tab-active').parent().data('tab-name');
tabParams.TAB_ID = $('.guess-like-tab-active').parent().data('index-idx') + 1;
tabParams.TAB_ID = $('.guess-like-tab-active').parent().data('item-idx') + 1;
tabParams.P_PARAM = $('.guess-like-tab-active').parent().data('code');
$('.templates').each((floorIndex, theFloor) => {
... ... @@ -163,7 +163,6 @@ class ResourceShowYasRpter {
}
this.reportParams.DATA.push(newParams);
}
console.log(this.reportParams.DATA);
}
});
... ... @@ -220,7 +219,6 @@ class ResourceShowYasRpter {
cacheTheShowSkns.push(goodsRawObj.PRD_SKN);
}
console.log(this.reportParams.DATA);
}
});
... ... @@ -229,7 +227,6 @@ class ResourceShowYasRpter {
setTimeout(() => {
if (typeof window._yas !== 'undefined' && window._yas.sendCustomInfo &&
this.reportParams.DATA && this.reportParams.DATA.length) {
console.log('this.reportParams', this.reportParams);
window._yas.sendCustomInfo({
op: 'YB_SHOW_EVENT',
appop: 'YB_SHOW_EVENT',
... ...
... ... @@ -245,8 +245,6 @@ class Group extends Page {
});
}
console.log(this.indexIdx);
if (isApp) {
let param = {
action: 'go.productDetail',
... ... @@ -268,8 +266,6 @@ class Group extends Page {
}
async guessLikeTabChange(e) {
console.log('this', this);
let that = this;
let $this = $(e.currentTarget);
let query = $this.data('query');
... ... @@ -311,7 +307,8 @@ class Group extends Page {
let lastDom = document.getElementById(`tab-${index - 2}`);
$('.wapper').animate({scrollLeft: lastDom && lastDom.offsetLeft || 0});
this.scrollSmoothTo(document.getElementById('resources').offsetTop);
// this.scrollSmoothTo(document.getElementById('resources').offsetTop);
// if (document.getElementById('fixedTab').offsetTop) {
// this.scrollSmoothTo(document.getElementById('fixedTab').offsetTop);
... ... @@ -328,9 +325,11 @@ class Group extends Page {
code: code
}).then(res => {
that.renderFloor(res);
this.scrollSmoothTo(document.getElementById('resources').offsetTop); // 保证新资源位渲染再滚动,防止上报数据错误
});
} else {
$('.floors').html('');
this.scrollSmoothTo(document.getElementById('resources').offsetTop);
}
this.fetchGoodsList(queryObject).then(data => {
... ... @@ -387,7 +386,6 @@ class Group extends Page {
...custom_params
};
console.log(params);
window._yas && window._yas.sendCustomInfo && window._yas.sendCustomInfo({
op: 'YB_GROUP_TAB_C',
appop: 'YB_GROUP_TAB_C',
... ... @@ -415,8 +413,6 @@ class Group extends Page {
...custom_params
};
console.log('--------------------');
console.log(params);
window._yas && window._yas.sendCustomInfo && window._yas.sendCustomInfo({
op: 'YB_GROUP_FLR_C',
appop: 'YB_GROUP_FLR_C',
... ...
... ... @@ -189,8 +189,9 @@
.list-bg-icon {
position: absolute;
top: 40px;
top: 20px;
left: 30px;
height: 26px;
height: 60px;
width: 60px;
}
}
... ...