Authored by huzhiming

feat(second): 添加数据埋点修改 reviewed by tao.huang

... ... @@ -49,7 +49,7 @@ export default {
methods: {
goDetail(product, index) {
if (this.yasParams && Object.keys(this.yasParams).length) {
this.yasDetail(product.product_id, index);
this.yasDetail({ item: product, index });
}
this.$router.push({
... ... @@ -100,7 +100,7 @@ export default {
list.forEach((value, i) => {
const prdType = value.pre_sale_flag === 5 ? 2 : 1; // flag=5全新瑕疵,6二手
DATA.push({ ...this.yasParams, I_INDEX: i + index + 1, PRD_ID: value.product_id, PRD_TYPE: prdType });
DATA.push({ ...this.yasParams, I_INDEX: i + index + 1, PRD_SKUP: value.skup, PRD_ID: value.product_id, PRD_TYPE: prdType });
});
this.$store.dispatch('reportYas', {
... ... @@ -112,10 +112,10 @@ export default {
}
},
yasDetail(id, index) {
yasDetail({ item, index }) {
this.$store.dispatch('reportYas', {
params: {
param: { ...this.yasParams, I_INDEX: index + 1, PRD_ID: id },
param: { ...this.yasParams, I_INDEX: index + 1, PRD_ID: item.product_id, PRD_SKUP: item.skup },
appop: this.yasEventName
}
});
... ...
... ... @@ -43,7 +43,7 @@ export default {
methods: {
goDetail(item, index) {
if (this.yasParams && Object.keys(this.yasParams).length) {
this.yasDetail(index);
this.yasDetail({ item, index });
}
this.$router.push({
... ... @@ -94,7 +94,8 @@ export default {
list.forEach((value, i) => {
const prdType = value.pre_sale_flag === 5 ? 2 : 1; // flag=5全新瑕疵,6二手
DATA.push({ ...this.yasParams, I_INDEX: i + index + 1, PRD_ID: value.skup, PRD_TYPE: prdType });
// DATA.push({ ...this.yasParams, I_INDEX: i + index + 1, PRD_ID: value.skup, PRD_TYPE: prdType });
DATA.push({ ...this.yasParams, I_INDEX: i + index + 1, PRD_SKUP: value.skup, PRD_TYPE: prdType });
});
this.$store.dispatch('reportYas', {
... ... @@ -106,10 +107,10 @@ export default {
}
},
yasDetail(index) {
yasDetail({ item, index }) {
this.$store.dispatch('reportYas', {
params: {
param: { ...this.yasParams, I_INDEX: index + 1 },
param: { ...this.yasParams, I_INDEX: index + 1, PRD_SKUP: item.skup },
appop: this.yasEventName
}
});
... ...
... ... @@ -27,7 +27,7 @@ export default {
shoeQualityDesc: '',
soldTime: '',
image: ''
}
};
}
},
... ...