Authored by 张文文

埋点问题fix review by lea.guo

... ... @@ -47,7 +47,7 @@ export default {
methods: {
goDetail(product, index) {
if (this.yasParams && Object.keys(this.yasParams).length) {
this.yasDetail(product.id, index);
this.yasDetail(product.product_id, index);
}
this.$router.push({
... ... @@ -91,8 +91,8 @@ export default {
}
// 判断是否是重复曝光
if (list.length && list[0].id !== this.yasFirstId) {
this.yasFirstId = list[0].id;
if (list.length && list[0].product_id !== this.yasFirstId) {
this.yasFirstId = list[0].product_id;
let DATA = [];
list.map((value, i) => {
... ...
... ... @@ -2,7 +2,6 @@
<LayoutApp :show-back="true" title="二手" class="list-wrapper">
<LayoutScroll
ref="scrolllist"
@scroll="scrollHandler"
@scroll-end="scrollEndHandler"
@pulling-up="fetchSkupList(isMore)"
v-if="skupList.list.length"
... ... @@ -30,7 +29,12 @@ export default {
},
data() {
return {
yasParams: {P_NAME: 'XY_UFOSecondList', TYPE_ID: 5, TAB_ID: '', TAB_NAME: '', P_PARAM: [].toString()},
yasParams: { P_NAME: 'XY_UFOSecondList',
TYPE_ID: 5,
TAB_ID: '',
TAB_NAME: '',
P_PARAM: [].toString()
}
}
},
computed: {
... ... @@ -44,13 +48,9 @@ export default {
await this.fetchSecondSkupList({ isReset: false });
}
},
scrollHandler({y}) {
this.scrollY = -y;
},
scrollEndHandler({y}) {
let height = -y;
this.$refs.second.yasShowEvent(height);
},
... ... @@ -59,7 +59,7 @@ export default {
let PRD_LIST = [];
for (let item of list) {
PRD_LIST.push(item.id);
PRD_LIST.push(item.product_id);
}
PRD_LIST = PRD_LIST.toString();
this.$store.dispatch('reportYas', {
... ...