|
|
|
@ -244,11 +244,11 @@
|
|
|
|
|
this.tabInitTop= res.top; |
|
|
|
|
} |
|
|
|
|
}).exec(); |
|
|
|
|
if(this.$yroute.query.teacherId){ |
|
|
|
|
if(this.$yroute.query.teacherId){ //服务老师分享链接 |
|
|
|
|
this.courseId = this.$yroute.query.courseId; |
|
|
|
|
this.validCode = this.$yroute.query.validCode; |
|
|
|
|
this.teacherId = this.$yroute.query.teacherId; |
|
|
|
|
} else{ |
|
|
|
|
} else{ //普通进入详情页 |
|
|
|
|
this.courseId = this.$yroute.query.id; |
|
|
|
|
} |
|
|
|
|
if(this.userInfo.uid){ |
|
|
|
@ -272,6 +272,17 @@
|
|
|
|
|
}, |
|
|
|
|
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: { |
|
|
|
|
getPhoneNumber: function(e) { |
|
|
|
@ -352,7 +363,8 @@
|
|
|
|
|
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.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){ |
|
|
|
|
if(this.detail.courseType == 1){ //直播课程弹出引导下载小程序 |
|
|
|
|
this.showSignUp = true |
|
|
|
|
setTimeout(()=>{ |
|
|
|
|
this.getDetail() |
|
|
|
|
},1500) |
|
|
|
|
} else{ |
|
|
|
|
uni.showToast({ |
|
|
|
|
title: '报名成功!' |
|
|
|
|