Commit bfc8c62b authored by IvyXia123's avatar IvyXia123

bug修改

parent 20ce5301
......@@ -341,11 +341,11 @@ export default {
// this.
},
goToBuyPage() {
if(this.groupDetail.is_real){
let query = { shopId: this.shopId, invite_code: this.invite_code };
let invite = this.invite_code;
this.$sa.track("buyCourse", {
/*this.$sa.track("buyCourse", {
buyType:
this.groupDetail.goods_type === 2 && this.buyType === 0
? "团购"
......@@ -353,12 +353,12 @@ export default {
goodsID: this.shopId,
salesType: invite ? invite.split("-")[1] : "null",
salesID: invite ? Number(invite.split("-")[2]) : 0
});
});*/
if (this.groupId) {
query.group_order_id = this.groupId;
}
console.log(this.buyType);
if (this.buyType === 0 && !this.groupId) {
query.type = "single";
this.buyType = "single";
......@@ -387,7 +387,20 @@ export default {
// console.log(comment.getUrlParam())
query.cct_user_id = comment.getParamhref().cct_user_id;
}
console.log(query);
console.log(comment.getParamhref(), 76);
this.$sa.track("buyCourse", {
buyType:
this.groupDetail.goods_type === 2 && this.buyType === 0
? "团购"
: "直购",
goodsID: this.shopId,
salesType: invite ? invite.split("-")[1] : "null",
salesID: invite ? Number(invite.split("-")[2]) : 0,
gdt_vid: query.gdt_vid,
cct_user_id: query.cct_user_id
});
// debugger
this.$router.push({
name: "buy",
......@@ -420,7 +433,9 @@ export default {
paymentAmount:Number(this.priceTotal),
goodsID:this.shopId.toString(),
salesType:invite?invite.split('-')[1]:'null',
salesID:invite?Number(invite.split('-')[2]):0
salesID:invite?Number(invite.split('-')[2]):0,
gdt_vid: this.$route.query.gdt_vid,
cct_user_id: this.$route.query.cct_user_id
});
if(window.location.href.indexOf('gdt_vid')>-1){
json.gdt_vid = this.$route.query.gdt_vid
......@@ -758,7 +773,7 @@ export default {
tabTitle: "商品",
moduleTitle: "详情页",
buttonType: buttonType,
buttonName: buttonName
buttonName: buttonName,
});
},
groupPay(type, status) {
......
......@@ -449,6 +449,7 @@
// 进入课程
goDetail(){
// 神策埋点 开始课程
console.log(this.thisLesson)
this.$sa.track('StartCourse',{
elementID:this.thisLesson.id.toString(),
dayModule:this.thisLesson.domTitle.slice(0,9),
......@@ -517,6 +518,7 @@
},
// 显示课程弹窗
showDia(data,i){
if(data.push_time !== '0000-00-00'){
getLessonDetailApi(this.secActions.id,data.id,data.ele_id).then(res=>{
res.content = JSON.parse(res.content);
......@@ -541,13 +543,14 @@
this.popupVisible=true;
this.push_time = data.push_time;
// 神策埋点 选择课时
console.log(this.parent_category_id.toString(), 9999)
this.$sa.track('selectElement',{
elementID:data.ele_id.toString(),
dayModule:data.name.slice(0,9),
weekName:data.name.slice(10,data.name.length),
elementName:data.name.slice(0,9) + '-'+ data.name.slice(10,data.name.length),
themeID:this.parent_category_id.toString(),
themeName:this.parent_category_id.toString(),
themeID:this.parent_category_id ? this.parent_category_id.toString() : '',
themeName:this.parent_category_id ? this.parent_category_id.toString() : '',
goodsID:this.goodsID,
classID:this.classID,
courseID:this.course_id.toString()
......
......@@ -44,6 +44,13 @@
[DatetimePicker.name]: DatetimePicker,
[Popup.name]: Popup,
},
watch: {
dateShow(val) {
if(!val) {
this.contentFn()
}
}
},
methods: {
dateShowClick() {
this.dateShow = true;
......
......@@ -616,12 +616,11 @@ router.beforeEach((to, from, next) => {
};
if (window.location.href.indexOf('gdt_vid') > -1) {
localStorage.setItem('gdt_vid', common.getParamhref().gdt_vid);
console.log(query.gdt_vid)
}
// extensionV1Shop
// extensionV1
// mpShop
if (to.name === 'spcShop' || to.name === 'mpShop' || to.name === 'extensionV1Shop' || to.name === 'extensionV1' || to.name === 'author' || to.name === 'bindMobile' || to.name === 'noWechat' || to.name === 'inspectorActivit' || to.name === 'passShop' || to.name === 'buyDetail'|| to.name === 'ybIndex' ) {
if (to.name === 'spcShop' || to.name === 'mpShop' || to.name === 'extensionV1Shop' || to.name === 'extensionV1' || to.name === 'author' || to.name === 'bindMobile' || to.name === 'noWechat' || to.name === 'inspectorActivit' || to.name === 'buyDetail'|| to.name === 'ybIndex' ) {
// 无需登录的页面
console.log(488)
next()
......
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