...
|
...
|
@@ -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',
|
...
|
...
|
|