|
@@ -34,6 +34,13 @@ Page({
|
|
});
|
|
});
|
|
},
|
|
},
|
|
gokhAnswer(e) {
|
|
gokhAnswer(e) {
|
|
|
|
+ if (this.data.istask2 == false) {
|
|
|
|
+ wx.showModal({
|
|
|
|
+ showCancel: false,
|
|
|
|
+ content: "请按照任务顺序执行哦!"
|
|
|
|
+ })
|
|
|
|
+ return false
|
|
|
|
+ }
|
|
console.log(e.currentTarget.dataset.item, "8888")
|
|
console.log(e.currentTarget.dataset.item, "8888")
|
|
let isStudyDone = e.currentTarget.dataset.item.isStudyDone
|
|
let isStudyDone = e.currentTarget.dataset.item.isStudyDone
|
|
let isExam = e.currentTarget.dataset.item.isExam
|
|
let isExam = e.currentTarget.dataset.item.isExam
|
|
@@ -59,6 +66,14 @@ Page({
|
|
|
|
|
|
},
|
|
},
|
|
gopjClass(e) {
|
|
gopjClass(e) {
|
|
|
|
+
|
|
|
|
+ if (this.data.istask2 == false) {
|
|
|
|
+ wx.showModal({
|
|
|
|
+ showCancel: false,
|
|
|
|
+ content: "请按照任务顺序执行哦!"
|
|
|
|
+ })
|
|
|
|
+ return false
|
|
|
|
+ }
|
|
console.log(e.currentTarget.dataset.item, "8888")
|
|
console.log(e.currentTarget.dataset.item, "8888")
|
|
let isStudyDone = e.currentTarget.dataset.item.isStudyDone
|
|
let isStudyDone = e.currentTarget.dataset.item.isStudyDone
|
|
let isFeedback = e.currentTarget.dataset.item.isFeedback
|
|
let isFeedback = e.currentTarget.dataset.item.isFeedback
|
|
@@ -82,33 +97,127 @@ Page({
|
|
}
|
|
}
|
|
|
|
|
|
},
|
|
},
|
|
- startAnswer() {
|
|
|
|
- wx.navigateTo({
|
|
|
|
- url: '/pages/answerAfterclass/answerAfterclass',
|
|
|
|
- })
|
|
|
|
- },
|
|
|
|
|
|
+ // startAnswer() {
|
|
|
|
+ // wx.navigateTo({
|
|
|
|
+ // url: '/pages/answerAfterclass/answerAfterclass',
|
|
|
|
+ // })
|
|
|
|
+ // },
|
|
goWrite() {
|
|
goWrite() {
|
|
- // wx.showModal({
|
|
|
|
- // showCancel: false,
|
|
|
|
- // content: "敬请期待",
|
|
|
|
- // success(res) {}
|
|
|
|
- // })
|
|
|
|
- wx.navigateTo({
|
|
|
|
- url: '../studentRegistration/studentRegistration'
|
|
|
|
|
|
+ if (this.data.istask2 == false) {
|
|
|
|
+ wx.showModal({
|
|
|
|
+ showCancel: false,
|
|
|
|
+ content: "请按照任务顺序执行哦!"
|
|
|
|
+ })
|
|
|
|
+ return false
|
|
|
|
+ }
|
|
|
|
+ console.log(this.data.sessionKey);
|
|
|
|
+ wx.request({
|
|
|
|
+ url: app.globalData.publicUrl + '/wx/exam/quesExamList',
|
|
|
|
+ method: "post",
|
|
|
|
+ data: {
|
|
|
|
+ sessionKey: this.data.sessionKey,
|
|
|
|
+ questSub: '0'
|
|
|
|
+ },
|
|
|
|
+ success: (res) => {
|
|
|
|
+ if (res.data.code == 0) {
|
|
|
|
+ console.log(res.data);
|
|
|
|
+ //let answersId = res.data.list[0].answersId ;
|
|
|
|
+ console.log(res.data.list.length);
|
|
|
|
+ if (res.data.list[0]) {
|
|
|
|
+ if (res.data.list[0].answersId) {
|
|
|
|
+ if (res.data.list[0].status) {
|
|
|
|
+ wx.navigateTo({
|
|
|
|
+ url: '/pages/studentRegistrationDeyail/studentRegistrationDeyail?answersId=' + res.data.list[0].answersId,
|
|
|
|
+ })
|
|
|
|
+ } else {
|
|
|
|
+ this.toPath(res.data.list[0].id, res.data.list[0].paperId, res.data.list[0].answersId, 'studentRegistration');
|
|
|
|
+ }
|
|
|
|
+ } else {
|
|
|
|
+ console.log('777777');
|
|
|
|
+ this.beginKao(res.data.list[0].id, res.data.list[0].paperId, this.data.sessionKey, 'studentRegistration');
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
})
|
|
})
|
|
},
|
|
},
|
|
|
|
+ // 综合反馈表 、、、、、、
|
|
goWrite2() {
|
|
goWrite2() {
|
|
- // wx.showModal({
|
|
|
|
- // showCancel: false,
|
|
|
|
- // content: "敬请期待",
|
|
|
|
- // success(res) {}
|
|
|
|
- // })
|
|
|
|
|
|
+ if (this.data.istask3 == false) {
|
|
|
|
+ wx.showModal({
|
|
|
|
+ showCancel: false,
|
|
|
|
+ content: "请按照任务顺序执行哦!"
|
|
|
|
+ })
|
|
|
|
+ return false
|
|
|
|
+ }
|
|
|
|
+ console.log(this.data.sessionKey, "dayin");
|
|
|
|
+ console.log(this.data.classInfo.id);
|
|
|
|
+ wx.request({
|
|
|
|
+ url: app.globalData.publicUrl + '/wx/exam/quesExamList',
|
|
|
|
+ method: "post",
|
|
|
|
+ data: {
|
|
|
|
+ sessionKey: this.data.sessionKey,
|
|
|
|
+ questSub: '1',
|
|
|
|
+ clasId: this.data.classInfo.id
|
|
|
|
+ },
|
|
|
|
+ success: (res) => {
|
|
|
|
+ if (res.data.code == 0) {
|
|
|
|
+ console.log(res.data, "zonghe");
|
|
|
|
+ //let answersId = res.data.list[0].answersId ;
|
|
|
|
+ console.log(res.data.list.length);
|
|
|
|
+ if (res.data.list[0]) {
|
|
|
|
+ if (res.data.list[0].answersId) {
|
|
|
|
+ if (res.data.list[0].status == '1') {
|
|
|
|
+ wx.navigateTo({
|
|
|
|
+ url: '/pages/feedBackDetail/feedBackDetail?answersId=' + res.data.list[0].answersId,
|
|
|
|
+ })
|
|
|
|
+ } else {
|
|
|
|
+ this.toPath(res.data.list[0].id, res.data.list[0].paperId, res.data.list[0].answersId, 'feedBack');
|
|
|
|
+ }
|
|
|
|
+ } else {
|
|
|
|
+ this.beginKao(res.data.list[0].id, res.data.list[0].paperId, this.data.sessionKey, 'feedBack');
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ },
|
|
|
|
+ toPath(id, paperId, answersId, address, status) {
|
|
wx.navigateTo({
|
|
wx.navigateTo({
|
|
- url: '../feedBack/feedBack'
|
|
|
|
|
|
+ url: '/pages/' + address + '/' + address + '?id=' + id + '&paperId=' + paperId + '&answersId=' + answersId + '&status=' + status,
|
|
|
|
+ })
|
|
|
|
+ },
|
|
|
|
+ beginKao(id, paperId, sessionKey, address) {
|
|
|
|
+ console.log(paperId, "8888888");
|
|
|
|
+ wx.request({
|
|
|
|
+ url: app.globalData.publicUrl + '/wx/exam/begin',
|
|
|
|
+ method: "post",
|
|
|
|
+ data: {
|
|
|
|
+ sessionKey: sessionKey,
|
|
|
|
+ id: id,
|
|
|
|
+ paperId: paperId
|
|
|
|
+ },
|
|
|
|
+ success: (res) => {
|
|
|
|
+ console.log(res);
|
|
|
|
+ if (res.data.code == 0) {
|
|
|
|
+ console.log(res, "为我么我们微妙"); // 提交答案是后
|
|
|
|
+ this.setData({
|
|
|
|
+ status: res.data.status
|
|
|
|
+ })
|
|
|
|
+ this.toPath(id, paperId, res.data.answersId, address, );
|
|
|
|
+ }
|
|
|
|
+ }
|
|
})
|
|
})
|
|
},
|
|
},
|
|
// 领取结业证
|
|
// 领取结业证
|
|
lq() {
|
|
lq() {
|
|
|
|
+ if (this.data.istask4 == false) {
|
|
|
|
+ wx.showModal({
|
|
|
|
+ showCancel: false,
|
|
|
|
+ content: "请按照任务顺序执行哦!"
|
|
|
|
+ })
|
|
|
|
+ return false
|
|
|
|
+ }
|
|
wx.showLoading({
|
|
wx.showLoading({
|
|
mask: true,
|
|
mask: true,
|
|
title: '加载中',
|
|
title: '加载中',
|
|
@@ -181,6 +290,13 @@ Page({
|
|
},
|
|
},
|
|
// 点击去学习转直播点播页面
|
|
// 点击去学习转直播点播页面
|
|
goStudy(e) {
|
|
goStudy(e) {
|
|
|
|
+ if (this.data.istask2 == false) {
|
|
|
|
+ wx.showModal({
|
|
|
|
+ showCancel: false,
|
|
|
|
+ content: "请按照任务顺序执行哦!"
|
|
|
|
+ })
|
|
|
|
+ return false
|
|
|
|
+ }
|
|
let id = e.currentTarget.dataset.item.id //此课程的id
|
|
let id = e.currentTarget.dataset.item.id //此课程的id
|
|
console.log(id)
|
|
console.log(id)
|
|
console.log(this.data.IngCourseArr, "我是筛选的列表")
|
|
console.log(this.data.IngCourseArr, "我是筛选的列表")
|