Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
L
learn-online
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
learn-online
Commits
2b9dc081
提交
2b9dc081
authored
7月 11, 2019
作者:
hexi
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
路由homeworks增加courseid
上级
0be24b43
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
5 行增加
和
5 行删除
+5
-5
CourseApi.js
learnOnline/apiService/CourseApi.js
+2
-2
examDetail.js
.../pages/learnSystem/courseContent/examDetail/examDetail.js
+3
-3
没有找到文件。
learnOnline/apiService/CourseApi.js
浏览文件 @
2b9dc081
...
@@ -186,9 +186,9 @@ const getCourseAssess = (cid, sid, callback) => {
...
@@ -186,9 +186,9 @@ const getCourseAssess = (cid, sid, callback) => {
})
})
}
}
/* 获取试题信息 */
/* 获取试题信息 */
const
getExamDetail
=
(
eid
,
sid
,
callback
)
=>
{
const
getExamDetail
=
(
eid
,
sid
,
c
ourseid
,
c
allback
)
=>
{
util
.
requestApi
({
util
.
requestApi
({
url
:
util
.
config
.
URL_PATH1
+
'/v2/education/homeworks/'
+
sid
+
'/'
+
eid
,
url
:
util
.
config
.
URL_PATH1
+
'/v2/education/homeworks/'
+
sid
+
'/'
+
courseid
+
'/'
+
eid
,
callback
:
function
(
res
)
{
callback
:
function
(
res
)
{
callback
(
res
)
callback
(
res
)
}
}
...
...
learnOnline/pages/learnSystem/courseContent/examDetail/examDetail.js
浏览文件 @
2b9dc081
...
@@ -131,7 +131,7 @@ Page({
...
@@ -131,7 +131,7 @@ Page({
if
(
wx
.
getStorageSync
(
'_homework'
))
{
if
(
wx
.
getStorageSync
(
'_homework'
))
{
this
.
setData
({
'exam'
:
this
.
updateData
(
wx
.
getStorageSync
(
'_homework'
))
})
this
.
setData
({
'exam'
:
this
.
updateData
(
wx
.
getStorageSync
(
'_homework'
))
})
}
}
CourseApi
.
getExamDetail
(
this
.
data
.
exam
.
id
,
this
.
data
.
exam
.
semester_id
,
(
res
)
=>
{
CourseApi
.
getExamDetail
(
this
.
data
.
exam
.
id
,
this
.
data
.
exam
.
semester_id
,
this
.
param
.
course_id
,
(
res
)
=>
{
let
_data
=
res
.
data
let
_data
=
res
.
data
let
json
=
_data
.
homework
let
json
=
_data
.
homework
if
(
json
)
{
if
(
json
)
{
...
@@ -214,11 +214,11 @@ Page({
...
@@ -214,11 +214,11 @@ Page({
}
}
this
.
unArrRandomSort
(
arr
)
this
.
unArrRandomSort
(
arr
)
this
.
param
.
work_contents
=
JSON
.
stringify
(
arr
)
this
.
param
.
work_contents
=
JSON
.
stringify
(
arr
)
this
.
param
.
score
=
(
score
/
total
*
100
).
toFixed
(
1
)
this
.
param
.
score
=
(
score
/
total
*
100
).
toFixed
(
1
)
;
wx
.
showLoading
({
title
:
'提交中...'
,
mask
:
true
})
wx
.
showLoading
({
title
:
'提交中...'
,
mask
:
true
})
CourseApi
.
submitExamDetail
(
this
.
param
,
(
res
)
=>
{
CourseApi
.
submitExamDetail
(
this
.
param
,
(
res
)
=>
{
if
(
res
.
data
.
status
)
{
if
(
res
.
data
.
status
)
{
CourseApi
.
getExamDetail
(
this
.
data
.
exam
.
id
,
this
.
data
.
exam
.
semester_id
,
(
res
)
=>
{
CourseApi
.
getExamDetail
(
this
.
data
.
exam
.
id
,
this
.
data
.
exam
.
semester_id
,
this
.
param
.
course_id
,
(
res
)
=>
{
let
_data
=
res
.
data
let
_data
=
res
.
data
let
json
=
_data
.
homework
let
json
=
_data
.
homework
if
(
json
)
{
if
(
json
)
{
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论