Authored by shuaiguo

feat(article/detail): 文章详情商品点击埋点

@@ -12,7 +12,7 @@ @@ -12,7 +12,7 @@
12 </div> 12 </div>
13 13
14 <div class="slide-container"> 14 <div class="slide-container">
15 - <associated-item :items="detailInfo.productList"></associated-item> 15 + <associated-item :items="detailInfo.productList" :articleId="articleId"></associated-item>
16 </div> 16 </div>
17 17
18 <div class="note-container"> 18 <div class="note-container">
@@ -33,13 +33,29 @@ export default { @@ -33,13 +33,29 @@ export default {
33 default() { 33 default() {
34 return []; 34 return [];
35 } 35 }
  36 + },
  37 + articleId: {
  38 + type: Number,
  39 + default: ''
36 } 40 }
37 }, 41 },
38 methods: { 42 methods: {
39 imageformatError() { 43 imageformatError() {
40 console.log(6666); 44 console.log(6666);
41 }, 45 },
42 - goToDetail(item) { 46 + goToDetail(item, index) {
  47 + this.$store.dispatch('reportYas', {
  48 + params: {
  49 + appop: 'XY_STROLL_ARC_RLT_PRD_C',
  50 + param: {
  51 + P_NAME: 'XY_UFOArticleDetail',
  52 + P_PARAM: this.articleId,
  53 + I_INDEX: index + 1,
  54 + PRD_ID: item.productSkn
  55 + },
  56 + },
  57 + });
  58 +
43 this.$router.push({ 59 this.$router.push({
44 name: 'ProductDetail', 60 name: 'ProductDetail',
45 params: { 61 params: {
@@ -48,8 +64,6 @@ export default { @@ -48,8 +64,6 @@ export default {
48 }); 64 });
49 } 65 }
50 }, 66 },
51 - mounted() {  
52 - }  
53 }; 67 };
54 </script> 68 </script>
55 69