|
@@ -474,7 +474,6 @@ export default {
|
|
|
},
|
|
|
filters: {
|
|
|
liveStatus(liveTime, watchStatus) {
|
|
|
- // let curTime = new Date().getTime() // 当前时间的时间戳
|
|
|
let value = liveTime * 1000
|
|
|
if (curTime < value) { // 判断当前时间和直播开始时间
|
|
|
return ' 未开播'
|
|
@@ -500,7 +499,6 @@ export default {
|
|
|
this.sysTime = +this.$method.timest()
|
|
|
},
|
|
|
onPullDownRefresh() {
|
|
|
- console.log('我下拉刷新了')
|
|
|
this.getCourseLiveQues()
|
|
|
},
|
|
|
methods: {
|
|
@@ -558,7 +556,6 @@ export default {
|
|
|
]
|
|
|
Promise.all(arrs).then((res) => {
|
|
|
// if (res.data.code == 200) {
|
|
|
- console.log('ewds========', res)
|
|
|
const [{ data: res1}, { data: res2}, {data: res3}] = res
|
|
|
if (res1.code == 200) {
|
|
|
this.courseLists = res1.rows || []
|
|
@@ -570,7 +567,6 @@ export default {
|
|
|
this.livingLists = res3.rows || []
|
|
|
}
|
|
|
this.allLoading = false
|
|
|
- console.log('this.courseLists;', this.courseLists, this.questionLists,this.livingLists)
|
|
|
// }
|
|
|
wx.stopPullDownRefresh()
|
|
|
}).catch(err => {
|
|
@@ -589,7 +585,6 @@ export default {
|
|
|
// 看直播
|
|
|
// let encode = encodeURIComponent(WEBVIEW_URL+'pages/live/index?token='+uni.getStorageSync('token')+'&userInfo='+JSON.stringify(this.userInfo)+'&channelId='+item.liveUrl+'&gradeId='+0+'&courseId='+this.courseId+'&goodsId='+this.goodsId+'&orderGoodsId='+this.orderGoodsId+'§ionId='+sectionId+'&chapterId='+chapterId+'&moduleId='+moduleId)
|
|
|
toLiveLook(item) {
|
|
|
- console.log('-------item', item)
|
|
|
let moduleId = item.moduleId || 0
|
|
|
let chapterId = item.chapterId || 0
|
|
|
let sectionId = item.sectionId || item.menuId
|
|
@@ -626,7 +621,6 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
async studyIn(v, i, item, index) {
|
|
|
- // console.log('item', item)
|
|
|
if (item.goodsType == 6) { // 进入直播课
|
|
|
this.toLive(item)
|
|
|
return
|
|
@@ -683,8 +677,8 @@ export default {
|
|
|
})
|
|
|
return
|
|
|
}
|
|
|
- console.log(this.sysTime, item.learningTimeStart)
|
|
|
- console.log(this.sysTime < item.learningTimeStart)
|
|
|
+ // console.log(this.sysTime, item.learningTimeStart)
|
|
|
+ // console.log(this.sysTime < item.learningTimeStart)
|
|
|
if (item.learningStatus == 3 && (this.sysTime < item.learningTimeStart)) {
|
|
|
uni.showToast({
|
|
|
icon: 'none',
|
|
@@ -819,7 +813,6 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
selectClass(item, index) {
|
|
|
- console.log(item)
|
|
|
this.itemIndex = index;
|
|
|
this.selectItem = item;
|
|
|
this.selectClassModal = true;
|
|
@@ -854,7 +847,6 @@ export default {
|
|
|
},
|
|
|
// 进入刷题
|
|
|
studyques(item,index){
|
|
|
- console.log(item)
|
|
|
this.queitemIndex = index;
|
|
|
let sysTime = this.$method.timest()
|
|
|
if (item.serviceStartTime && item.serviceEndTime && (sysTime <= item.serviceStartTime || sysTime >= item.serviceEndTime)) {
|
|
@@ -869,13 +861,9 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
radioGroupChange(e) {
|
|
|
- console.log(e)
|
|
|
+ // console.log(e)
|
|
|
},
|
|
|
- // closeModal() {
|
|
|
- // this.selectClassModal = false
|
|
|
- // },
|
|
|
- okPopup(value) {
|
|
|
- // this.gradeValue = value
|
|
|
+ okPopup() {
|
|
|
if (this.gradeValue == -1) {
|
|
|
uni.showToast({
|
|
|
icon: 'none',
|