提交 7e760e5e 编写于 作者: guangjun.yang's avatar guangjun.yang

添加埋点

上级 ac2fc6df
......@@ -9,7 +9,7 @@
:isFixNavbar="isFixNavbar"
borderStyle="1px solid #fff"
></CommonNavbar>
<CouponList v-if="dataList.length" :dataList="dataList" @revieveOrUse="revieveOrUse"></CouponList>
<CouponList v-if="dataList.length" :dataList="dataList" @revieveOrUse="revieveOrUse" :fromPage="fromPage"></CouponList>
<no-coupon v-else></no-coupon>
</section>
</template>
......@@ -62,7 +62,7 @@ export default {
let href = location.href;
this.couponId = this.$route.query.couponId || "";
this.fromPage = this.$route.query.fromPage || "";
this.navTitle = !this.fromPage ? "优惠券" : "我的优惠券";
this.navTitle = this.fromPage ? "我的优惠券" : "优惠券";
this.shareUrl = getWebPageUrl(
`profexam/#/coupon-list?couponId=${this.couponId}`
);
......@@ -71,6 +71,12 @@ export default {
}
localStorage.setItem("returnUrl", this.shareUrl);
if(this.fromPage) {
this.$sendBuriedData({
component_tag: `506#50601`
});
}
window.__getUserInfo4CouponList = function(param) {
console.log("__getUserInfo4CouponList", param);
_this.token = param.userToken;
......@@ -221,8 +227,15 @@ export default {
// 跳转到使用页面(如果只适用一个商品,则直接跳转到商品页面;否则跳转到商品列表页面)
// 要根据用户信息,获取定位信息等,从而获取对应的商品
// TODO
if(this.fromPage) {
this.$sendBuriedData({
component_tag: `506#50602#${item.couponId}#${item.couponName}`
});
}
if (item.couponStatus == 1) {
let pageUrl = "";
// 如果适用的商品(卡)个数多于一个,则跳转到商品列表
if(item.couponMappingModelList.length > 1) {
pageUrl = getHactiveUrl(`/message_push/#/study-card?origin=1`);
this.jumpForCoupon(pageUrl);
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册