feat(article/detail): 文章详情点赞埋点 reviewed by qiuj
Showing
1 changed file
with
13 additions
and
1 deletions
@@ -114,15 +114,27 @@ export default { | @@ -114,15 +114,27 @@ export default { | ||
114 | ...mapActions(['updatePraiseStatus', 'fetchRecommendArticle']), | 114 | ...mapActions(['updatePraiseStatus', 'fetchRecommendArticle']), |
115 | async onPraise({articleId, hasPraise}) { | 115 | async onPraise({articleId, hasPraise}) { |
116 | const user = await this.$sdk.getUser(true); | 116 | const user = await this.$sdk.getUser(true); |
117 | + const status = hasPraise === 'Y' ? 1 : 0; | ||
117 | 118 | ||
118 | if (user && user.uid) { | 119 | if (user && user.uid) { |
119 | this.updatePraiseStatus({ | 120 | this.updatePraiseStatus({ |
120 | articleId, | 121 | articleId, |
121 | - status: hasPraise === 'Y' ? 1 : 0 | 122 | + status |
122 | }); | 123 | }); |
123 | } else { | 124 | } else { |
124 | this.$yoho.auth(); | 125 | this.$yoho.auth(); |
125 | } | 126 | } |
127 | + | ||
128 | + this.$store.dispatch('reportYas', { | ||
129 | + params: { | ||
130 | + appop: 'XY_STROLL_ATC_LIKE_C', | ||
131 | + param: { | ||
132 | + POS_ID: 102, | ||
133 | + ARTICLE_ID: this.articleId, | ||
134 | + STATUS: status, | ||
135 | + }, | ||
136 | + }, | ||
137 | + }); | ||
126 | }, | 138 | }, |
127 | onUpdatePraise({articleId, status}) { | 139 | onUpdatePraise({articleId, status}) { |
128 | this.updatePraiseStatus({ | 140 | this.updatePraiseStatus({ |
-
Please register or login to post a comment