|
|
@ -244,11 +244,11 @@ |
|
|
|
this.tabInitTop= res.top; |
|
|
|
this.tabInitTop= res.top; |
|
|
|
} |
|
|
|
} |
|
|
|
}).exec(); |
|
|
|
}).exec(); |
|
|
|
if(this.$yroute.query.teacherId){ |
|
|
|
if(this.$yroute.query.teacherId){ //服务老师分享链接 |
|
|
|
this.courseId = this.$yroute.query.courseId; |
|
|
|
this.courseId = this.$yroute.query.courseId; |
|
|
|
this.validCode = this.$yroute.query.validCode; |
|
|
|
this.validCode = this.$yroute.query.validCode; |
|
|
|
this.teacherId = this.$yroute.query.teacherId; |
|
|
|
this.teacherId = this.$yroute.query.teacherId; |
|
|
|
} else{ |
|
|
|
} else{ //普通进入详情页 |
|
|
|
this.courseId = this.$yroute.query.id; |
|
|
|
this.courseId = this.$yroute.query.id; |
|
|
|
} |
|
|
|
} |
|
|
|
if(this.userInfo.uid){ |
|
|
|
if(this.userInfo.uid){ |
|
|
@ -272,6 +272,17 @@ |
|
|
|
}, |
|
|
|
}, |
|
|
|
mounted(){ |
|
|
|
mounted(){ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
onPullDownRefresh() { |
|
|
|
|
|
|
|
this.getDetail() |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
onShareAppMessage: function(res) { |
|
|
|
|
|
|
|
console.log(this.detail.id) |
|
|
|
|
|
|
|
return { |
|
|
|
|
|
|
|
title: this.detail.courseName, |
|
|
|
|
|
|
|
imageUrl:this.detail.imageArr[0], |
|
|
|
|
|
|
|
path: '/pages/course/detail?id=' + this.detail.id, |
|
|
|
|
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
methods: { |
|
|
|
getPhoneNumber: function(e) { |
|
|
|
getPhoneNumber: function(e) { |
|
|
@ -352,7 +363,8 @@ |
|
|
|
this.hour = Math.floor(this.times / (60 * 60)) - (this.day * 24); |
|
|
|
this.hour = Math.floor(this.times / (60 * 60)) - (this.day * 24); |
|
|
|
this.minute = Math.floor(this.times / 60) - (this.day * 24 * 60) - (this.hour * 60); |
|
|
|
this.minute = Math.floor(this.times / 60) - (this.day * 24 * 60) - (this.hour * 60); |
|
|
|
this.second = Math.floor(this.times) - (this.day * 24 * 60 * 60) - (this.hour * 60 * 60) - (this.minute * 60); |
|
|
|
this.second = Math.floor(this.times) - (this.day * 24 * 60 * 60) - (this.hour * 60 * 60) - (this.minute * 60); |
|
|
|
console.log(this.times) |
|
|
|
// console.log(this.times) |
|
|
|
|
|
|
|
uni.stopPullDownRefresh() |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
@ -399,7 +411,9 @@ |
|
|
|
} else if(res.data.state == 1){ |
|
|
|
} else if(res.data.state == 1){ |
|
|
|
if(this.detail.courseType == 1){ //直播课程弹出引导下载小程序 |
|
|
|
if(this.detail.courseType == 1){ //直播课程弹出引导下载小程序 |
|
|
|
this.showSignUp = true |
|
|
|
this.showSignUp = true |
|
|
|
this.getDetail() |
|
|
|
setTimeout(()=>{ |
|
|
|
|
|
|
|
this.getDetail() |
|
|
|
|
|
|
|
},1500) |
|
|
|
} else{ |
|
|
|
} else{ |
|
|
|
uni.showToast({ |
|
|
|
uni.showToast({ |
|
|
|
title: '报名成功!' |
|
|
|
title: '报名成功!' |
|
|
|