Commit bfc8c62b authored by IvyXia123's avatar IvyXia123

bug修改

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