Authored by huzhiming

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

@@ -49,7 +49,7 @@ export default { @@ -49,7 +49,7 @@ export default {
49 methods: { 49 methods: {
50 goDetail(product, index) { 50 goDetail(product, index) {
51 if (this.yasParams && Object.keys(this.yasParams).length) { 51 if (this.yasParams && Object.keys(this.yasParams).length) {
52 - this.yasDetail(product.product_id, index); 52 + this.yasDetail({ item: product, index });
53 } 53 }
54 54
55 this.$router.push({ 55 this.$router.push({
@@ -100,7 +100,7 @@ export default { @@ -100,7 +100,7 @@ export default {
100 list.forEach((value, i) => { 100 list.forEach((value, i) => {
101 const prdType = value.pre_sale_flag === 5 ? 2 : 1; // flag=5全新瑕疵,6二手 101 const prdType = value.pre_sale_flag === 5 ? 2 : 1; // flag=5全新瑕疵,6二手
102 102
103 - DATA.push({ ...this.yasParams, I_INDEX: i + index + 1, PRD_ID: value.product_id, PRD_TYPE: prdType }); 103 + DATA.push({ ...this.yasParams, I_INDEX: i + index + 1, PRD_SKUP: value.skup, PRD_ID: value.product_id, PRD_TYPE: prdType });
104 }); 104 });
105 105
106 this.$store.dispatch('reportYas', { 106 this.$store.dispatch('reportYas', {
@@ -112,10 +112,10 @@ export default { @@ -112,10 +112,10 @@ export default {
112 } 112 }
113 }, 113 },
114 114
115 - yasDetail(id, index) { 115 + yasDetail({ item, index }) {
116 this.$store.dispatch('reportYas', { 116 this.$store.dispatch('reportYas', {
117 params: { 117 params: {
118 - param: { ...this.yasParams, I_INDEX: index + 1, PRD_ID: id }, 118 + param: { ...this.yasParams, I_INDEX: index + 1, PRD_ID: item.product_id, PRD_SKUP: item.skup },
119 appop: this.yasEventName 119 appop: this.yasEventName
120 } 120 }
121 }); 121 });
@@ -43,7 +43,7 @@ export default { @@ -43,7 +43,7 @@ export default {
43 methods: { 43 methods: {
44 goDetail(item, index) { 44 goDetail(item, index) {
45 if (this.yasParams && Object.keys(this.yasParams).length) { 45 if (this.yasParams && Object.keys(this.yasParams).length) {
46 - this.yasDetail(index); 46 + this.yasDetail({ item, index });
47 } 47 }
48 48
49 this.$router.push({ 49 this.$router.push({
@@ -94,7 +94,8 @@ export default { @@ -94,7 +94,8 @@ export default {
94 list.forEach((value, i) => { 94 list.forEach((value, i) => {
95 const prdType = value.pre_sale_flag === 5 ? 2 : 1; // flag=5全新瑕疵,6二手 95 const prdType = value.pre_sale_flag === 5 ? 2 : 1; // flag=5全新瑕疵,6二手
96 96
97 - DATA.push({ ...this.yasParams, I_INDEX: i + index + 1, PRD_ID: value.skup, PRD_TYPE: prdType }); 97 + // DATA.push({ ...this.yasParams, I_INDEX: i + index + 1, PRD_ID: value.skup, PRD_TYPE: prdType });
  98 + DATA.push({ ...this.yasParams, I_INDEX: i + index + 1, PRD_SKUP: value.skup, PRD_TYPE: prdType });
98 }); 99 });
99 100
100 this.$store.dispatch('reportYas', { 101 this.$store.dispatch('reportYas', {
@@ -106,10 +107,10 @@ export default { @@ -106,10 +107,10 @@ export default {
106 } 107 }
107 }, 108 },
108 109
109 - yasDetail(index) { 110 + yasDetail({ item, index }) {
110 this.$store.dispatch('reportYas', { 111 this.$store.dispatch('reportYas', {
111 params: { 112 params: {
112 - param: { ...this.yasParams, I_INDEX: index + 1 }, 113 + param: { ...this.yasParams, I_INDEX: index + 1, PRD_SKUP: item.skup },
113 appop: this.yasEventName 114 appop: this.yasEventName
114 } 115 }
115 }); 116 });
@@ -27,7 +27,7 @@ export default { @@ -27,7 +27,7 @@ export default {
27 shoeQualityDesc: '', 27 shoeQualityDesc: '',
28 soldTime: '', 28 soldTime: '',
29 image: '' 29 image: ''
30 - } 30 + };
31 } 31 }
32 }, 32 },
33 33