81

parent ce8fbd7e
......@@ -45,6 +45,8 @@ export default {
'redeem_code'
// invite_code
this.onShare()
this.$sa.track("GetCourseAIA", {
});
},
goEdit(){
this.$router.push({name:'addressEdit'})
......
......@@ -338,8 +338,22 @@ export default {
}
})
let invite = this.invite_code;
getGoodsDetailApi(50).then(res =>{
this.groupDetail = res
this.$sa.track("ViewDetailPageAIA", {
goodsID: this.groupDetail.id.toString(),
courseCate:
this.groupDetail.course_type === 1 ? "体验课" : "正式课",
lessonNumber: this.groupDetail.watch_num,
goodsName: this.groupDetail.name,
coursePrice: Number(this.groupDetail.original_price / 100),
discountPrice: Number(this.groupDetail.current_price / 100),
courseID: this.groupDetail.course_id,
courseName: "",
salesType: invite ? invite.split("-")[1] : "null",
salesID: invite ? Number(invite.split("-")[2]) : 0
});
})
this.user_id = JSON.parse(localStorage.getItem("userDesc")).user_id;
this.onShare()
......
......@@ -25,7 +25,8 @@ export default {
qr:'',
img1:img1,
icon_yes:icon_yes,
logo:logo
logo:logo,
groupDetail:{}
};
},
mounted() {
......@@ -42,6 +43,23 @@ export default {
})
this.user_id = JSON.parse(localStorage.getItem("userDesc")).user_id;
this.onShare()
let invite = this.invite_code;
getGoodsDetailApi(50).then(res =>{
this.groupDetail = res
this.$sa.track("GetCourseAIA", {
goodsID: this.groupDetail.id.toString(),
courseCate:
this.groupDetail.course_type === 1 ? "体验课" : "正式课",
lessonNumber: this.groupDetail.watch_num,
goodsName: this.groupDetail.name,
coursePrice: Number(this.groupDetail.original_price / 100),
discountPrice: Number(this.groupDetail.current_price / 100),
courseID: this.groupDetail.course_id,
courseName: "",
salesType: invite ? invite.split("-")[1] : "null",
salesID: invite ? Number(invite.split("-")[2]) : 0
});
})
},
goEdit(){
this.$router.push({name:'addressEdit'})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment