Authored by huzhiming

feat(二手同尺寸列表): item坑位埋点二手类型传参调整 reviewed by tao.huang

... ... @@ -53,7 +53,7 @@ export default {
methods: {
goDetail(product, index) {
if (this.yasParams && Object.keys(this.yasParams).length) {
this.yasDetail(product.product_id, index);
this.yasDetail(product, index);
}
this.$router.push({
... ... @@ -102,7 +102,7 @@ export default {
let DATA = [];
list.map((value, i) => {
const prdType = value.pre_sale_flag === 5 ? 2 : 1; //flag=5全新瑕疵,6二手
const prdType = value.sechondHandTypeName === '全新瑕疵' ? 2 : 1;
DATA.push({...this.yasParams, I_INDEX: i + index + 1, PRD_ID: value.product_id, PRD_TYPE: prdType});
});
... ... @@ -116,9 +116,12 @@ export default {
},
yasDetail(id, index) {
let { product_id, sechondHandTypeName } = product
let PRD_TYPE = value.sechondHandTypeName === '全新瑕疵' ? 2 : 1;
this.$store.dispatch('reportYas', {
params: {
param: {...this.yasParams, I_INDEX: index + 1, PRD_ID: id },
param: {...this.yasParams, I_INDEX: index + 1, PRD_ID: product_id, PRD_TYPE },
appop: this.yasEventName
}
});
... ...
... ... @@ -10,7 +10,7 @@
<template>
<section>
<LayoutApp :show-back="true" :title="computePageTitle" class="second-filter-list-wrap">
<!-- {{ queryOptions }} -->
{{ queryOptions }}
<div class="filter">
<div class="filter-tab">
<div class="tab-item" :class="{'selected-tab': queryOptions.sort==null}"
... ...