Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
xianyu-ufo-app-web
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
zhangwenxue
5 years ago
Commit
af4f2d72c79175df7a05aabecbd7979af47f9205
1 parent
9534d3fc
fix(商品详情): 调整商品列表埋点的I_INDEX以1开始
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
apps/pages/product/product-detail.vue
apps/pages/product/product-detail.vue
View file @
af4f2d7
...
...
@@ -391,16 +391,16 @@ export default {
let productElList = document.querySelectorAll('.product-list-item');
if (productElList && productElList.length > 0) {
this.recommend.forEach((item, idx) => {
if (productElList[idx] && item) {
const id = `productItem${idx}`;
this.recommend.forEach((item, i) => {
if (productElList[i] && item) {
const id = `productItem${i}`;
this.yasTargets[id] = {
el: {
offsetTop: productElList[idx].offsetTop,
offsetHeight: productElList[idx].offsetHeight,
offsetTop: productElList[i].offsetTop,
offsetHeight: productElList[i].offsetHeight,
},
yasParams: {...this.recommendYasParams, I_INDEX: i
dx
, PRD_SKN: item.id},
yasParams: {...this.recommendYasParams, I_INDEX: i
+ 1
, PRD_SKN: item.id},
};
}
});
...
...
Please
register
or
login
to post a comment