提交 30a13874 authored 作者: 王鹏飞's avatar 王鹏飞

bug fixes

上级 2b20c163
......@@ -189,9 +189,9 @@ const getCourseAssess = (cid, sid, callback) => {
})
}
/* 获取试题信息 */
const getExamDetail = (eid, sid, courseid, callback) => {
const getExamDetail = (eid, chapterId, sid, courseid, callback) => {
util.requestApi({
url: util.config.URL_PATH1 + '/v2/education/homeworks/' + courseid + '/' + eid,
url: util.config.URL_PATH1 + '/v2/education/homeworks/' + courseid + '/'+ chapterId + '/' + eid,
callback: function (res) {
callback(res)
}
......
......@@ -131,7 +131,7 @@ Page({
if (wx.getStorageSync('_homework')) {
this.setData({ 'exam': this.updateData(wx.getStorageSync('_homework')) })
}
CourseApi.getExamDetail(this.data.exam.id, this.data.exam.semester_id, this.param.course_id, (res) => {
CourseApi.getExamDetail(this.data.exam.id, this.param.chapter_id, this.data.exam.semester_id, this.param.course_id, (res) => {
let _data = res.data
let json = _data.homework
if (json) {
......@@ -218,7 +218,7 @@ Page({
wx.showLoading({ title: '提交中...', mask: true })
CourseApi.submitExamDetail(this.param, (res) => {
if (res.data.status) {
CourseApi.getExamDetail(this.data.exam.id, this.data.exam.semester_id, this.param.course_id, (res) => {
CourseApi.getExamDetail(this.data.exam.id, this.param.chapter_id, this.data.exam.semester_id, this.param.course_id, (res) => {
let _data = res.data
let json = _data.homework
if (json) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论