Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
L
learn-online-pc
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
learn-online-pc
Commits
2173f62e
提交
2173f62e
authored
1月 09, 2019
作者:
GOD_ZYX
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
提交 BUG修改
上级
46a287e2
全部展开
显示空白字符变更
内嵌
并排
正在显示
12 个修改的文件
包含
37 行增加
和
10 行删除
+37
-10
build.zip
build.zip
+0
-0
index.html
client-dist/index.html
+2
-2
11.6521c812.js
client-dist/resources/11.6521c812.js
+0
-2
11.7b12fe3f.js
client-dist/resources/11.7b12fe3f.js
+2
-0
11.970f20fae48e.css
client-dist/resources/11.970f20fae48e.css
+2
-2
16.30dff0c0c0cb.css
client-dist/resources/16.30dff0c0c0cb.css
+0
-0
16.6ba9727d.js
client-dist/resources/16.6ba9727d.js
+0
-0
16.f7419562.js
client-dist/resources/16.f7419562.js
+0
-0
manifest.2bf0819b.js
client-dist/resources/manifest.2bf0819b.js
+2
-2
chapterExam.vue
client/components/player/chapterExam/chapterExam.vue
+4
-0
courseDetail.vue
client/project/elearning-node/pages/myLearn/courseDetail.vue
+1
-1
index.js
server/elearning-node/routes/index.js
+24
-1
没有找到文件。
build.zip
浏览文件 @
2173f62e
No preview for this file type
client-dist/index.html
浏览文件 @
2173f62e
...
@@ -2,4 +2,4 @@
...
@@ -2,4 +2,4 @@
<script src="https://zws-imgs-pub.ezijing.com/static/build/learn-mba/static/compatible/console-polyfill.js"></script>
<script src="https://zws-imgs-pub.ezijing.com/static/build/learn-mba/static/compatible/console-polyfill.js"></script>
<script src="https://zws-imgs-pub.ezijing.com/static/build/learn-mba/static/compatible/html5shiv.min.js"></script>
<script src="https://zws-imgs-pub.ezijing.com/static/build/learn-mba/static/compatible/html5shiv.min.js"></script>
<script src="https://zws-imgs-pub.ezijing.com/static/build/learn-mba/static/compatible/respond.min.js"></script>
<script src="https://zws-imgs-pub.ezijing.com/static/build/learn-mba/static/compatible/respond.min.js"></script>
<![endif]-->
<script
type=
"text/javascript"
src=
"https://zws-imgs-pub.ezijing.com/static/build/learn-mba/resources/manifest.d2997f4d.js"
></script><script
type=
"text/javascript"
src=
"https://zws-imgs-pub.ezijing.com/static/build/learn-mba/resources/vendor.c34ded55.js"
></script><script
type=
"text/javascript"
src=
"https://zws-imgs-pub.ezijing.com/static/build/learn-mba/resources/app.5b490b42.js"
></script></body></html>
<![endif]-->
<script
type=
"text/javascript"
src=
"https://zws-imgs-pub.ezijing.com/static/build/learn-mba/resources/manifest.2bf0819b.js"
></script><script
type=
"text/javascript"
src=
"https://zws-imgs-pub.ezijing.com/static/build/learn-mba/resources/vendor.c34ded55.js"
></script><script
type=
"text/javascript"
src=
"https://zws-imgs-pub.ezijing.com/static/build/learn-mba/resources/app.5b490b42.js"
></script></body></html>
\ No newline at end of file
\ No newline at end of file
client-dist/resources/11.6521c812.js
deleted
100644 → 0
浏览文件 @
46a287e2
(
window
.
webpackJsonp
=
window
.
webpackJsonp
||
[]).
push
([[
11
],{
270
:
function
(
e
,
t
,
r
){
"use strict"
;
r
.
r
(
t
);
var
a
=
r
(
439
),
s
=
r
(
354
);
for
(
var
i
in
s
)
"default"
!==
i
&&
function
(
e
){
r
.
d
(
t
,
e
,
function
(){
return
s
[
e
]})}(
i
);
r
(
400
);
var
o
=
r
(
3
),
c
=
Object
(
o
.
a
)(
s
.
default
,
a
.
a
,
a
.
b
,
!
1
,
null
,
"dfa87ad4"
,
null
);
c
.
options
.
__file
=
"chapterExam.vue"
,
t
.
default
=
c
.
exports
},
354
:
function
(
e
,
t
,
r
){
"use strict"
;
r
.
r
(
t
);
var
a
=
r
(
355
),
s
=
r
.
n
(
a
);
for
(
var
i
in
a
)
"default"
!==
i
&&
function
(
e
){
r
.
d
(
t
,
e
,
function
(){
return
a
[
e
]})}(
i
);
t
.
default
=
s
.
a
},
355
:
function
(
e
,
t
,
r
){
"use strict"
;
Object
.
defineProperty
(
t
,
"__esModule"
,{
value
:
!
0
});
var
a
,
s
=
r
(
68
),
h
=
(
a
=
s
)
&&
a
.
__esModule
?
a
:{
default
:
a
};
t
.
default
=
{
props
:{
chapterId
:{
type
:
String
,
require
:
!
1
},
chapterName
:{
type
:
String
,
require
:
!
1
},
chapterExam
:{
type
:
Object
,
require
:
!
1
},
sid
:{
type
:
String
,
require
:
!
1
},
cid
:{
type
:
String
,
require
:
!
1
},
id
:{
type
:
String
,
require
:
!
1
}},
data
:
function
(){
return
{
exam
:{},
param
:{
course_id
:
""
,
chapter_id
:
""
,
work_id
:
""
,
semester_id
:
""
,
work_contents
:
""
,
duration
:
0
,
score
:
0
},
startTime
:
""
,
recordAll
:[],
setTime
:
null
,
radioCur
:
""
,
checkCur
:
""
}},
mounted
:
function
(){
this
.
loadAjax
()},
methods
:{
updateData
:
function
(
n
){
return
this
.
param
=
{
course_id
:
n
.
course_id
,
chapter_id
:
n
.
chapter_id
,
work_id
:
n
.
work_id
,
semester_id
:
n
.
semester_id
,
work_contents
:
""
,
duration
:
0
,
score
:
0
},
this
.
startTime
=
(
new
Date
).
getTime
(),{
id
:
n
.
id
,
semester_id
:
n
.
semester_id
,
title
:
n
.
work_title
,
score
:
n
.
score
||
(
0
===
n
.
score
?
"0"
:
""
),
work_contents
:
n
.
work_contents
||
""
,
group
:
n
.
questions
.
map
(
function
(
e
,
t
){
var
r
=
""
,
a
=
JSON
.
parse
(
e
.
question_options
);
a
.
forEach
(
function
(
e
,
t
){
if
(
e
.
checked
)
switch
(
t
){
case
0
:
r
+=
"A,"
;
break
;
case
1
:
r
+=
"B,"
;
break
;
case
2
:
r
+=
"C,"
;
break
;
case
3
:
r
+=
"D,"
}});
var
s
=
""
;
if
(
n
.
work_contents
){
for
(
var
i
=
JSON
.
parse
(
n
.
work_contents
),
o
=
0
;
o
<
i
.
length
;
o
++
)
if
(
i
[
o
].
question_id
===
e
.
id
){
a
=
i
[
o
].
options
;
break
}
if
(
1
===
e
.
question_type
)
for
(
var
c
=
0
;
c
<
a
.
length
;
c
++
)
if
(
a
[
c
].
selected
){
s
=
c
;
break
}}
return
{
id
:
e
.
id
,
type
:
e
.
question_type
,
title
:
e
.
question_content
,
arr
:
a
,
cur
:
n
.
work_contents
&&
r
.
substr
(
0
,
r
.
length
-
1
)
||
""
,
arrSel
:[],
sel
:
s
}})}},
updateData1
:
function
(
e
){
this
.
exam
.
id
=
e
.
id
,
this
.
exam
.
semester_id
=
e
.
semester_id
,
this
.
exam
.
title
=
e
.
work_title
,
this
.
exam
.
score
=
e
.
score
||
"0"
,
this
.
exam
.
work_contents
=
e
.
work_contents
||
""
;
for
(
var
t
=
0
;
t
<
this
.
exam
.
group
.
length
;
t
++
){
var
r
=
""
,
a
=
e
.
questions
[
t
],
s
=
JSON
.
parse
(
a
.
question_options
);
s
.
forEach
(
function
(
e
,
t
){
if
(
e
.
checked
)
switch
(
t
){
case
0
:
r
+=
"A,"
;
break
;
case
1
:
r
+=
"B,"
;
break
;
case
2
:
r
+=
"C,"
;
break
;
case
3
:
r
+=
"D,"
}});
var
i
=
""
;
if
(
e
.
work_contents
){
for
(
var
o
=
JSON
.
parse
(
e
.
work_contents
),
c
=
0
;
c
<
o
.
length
;
c
++
)
if
(
o
[
c
].
question_id
===
a
.
id
){
s
=
o
[
c
].
options
;
break
}
if
(
1
===
a
.
question_type
)
for
(
var
n
=
0
;
n
<
s
.
length
;
n
++
)
if
(
s
[
n
].
selected
){
i
=
n
;
break
}}
this
.
exam
.
group
[
t
].
id
=
a
.
id
,
this
.
exam
.
group
[
t
].
type
=
a
.
question_type
,
this
.
exam
.
group
[
t
].
title
=
a
.
question_content
,
this
.
exam
.
group
[
t
].
cur
=
e
.
work_contents
&&
r
.
substr
(
0
,
r
.
length
-
1
)
||
""
,
this
.
exam
.
group
[
t
].
arrSel
=
[],
this
.
exam
.
group
[
t
].
sel
=
i
;
for
(
var
u
=
this
.
exam
.
group
[
t
].
arr
,
l
=
0
;
l
<
u
.
length
;
l
++
)
u
[
l
].
selected
=
s
[
l
].
selected
,
u
[
l
].
id
=
u
[
l
].
id
+
"1"
}},
loadAjax
:
function
(){
var
r
=
this
,
e
=
this
.
$loading
({
lock
:
!
0
,
text
:
""
,
spinner
:
""
,
background
:
"rgba(255, 255, 255, 0.9)"
});
h
.
default
.
chapterAction
.
getExamDetail
(
this
.
sid
,
this
.
id
).
then
(
function
(
e
){
var
t
=
e
.
homework
;
r
.
exam
=
t
?(
t
.
score
=
e
.
score
,
t
.
work_contents
=
e
.
work_contents
,
r
.
updateData
(
t
)):{}}).
catch
(
function
(
e
){
r
.
$message
.
error
(
e
.
message
)}).
finally
(
function
(){
r
.
setTime
=
setInterval
(
function
(){
r
.
chapterExam
.
work_id
&&
r
.
chapterExam
.
work_id
===
r
.
id
&&
(
r
.
exam
.
id
||
(
r
.
exam
=
r
.
updateData
(
r
.
chapterExam
),
document
.
querySelector
(
".play-paper"
).
scrollTop
=
0
),
clearInterval
(
r
.
setTime
))},
50
),
e
.
close
()})},
radioClick
:
function
(
e
){
this
.
radioCur
=
e
.
currentTarget
.
dataset
.
index
},
radioChange
:
function
(
e
){
for
(
var
t
=
this
.
radioCur
,
r
=
this
.
exam
.
group
[
t
].
arr
,
a
=
e
,
s
=
0
;
s
<
r
.
length
;
s
++
)
r
[
s
].
selected
=
0
;
r
[
a
].
selected
=
1
,
this
.
exam
.
group
[
t
].
arr
=
r
,
this
.
recordAll
.
push
(
t
)},
checkboxClick
:
function
(
e
){
this
.
checkboxCur
=
e
.
currentTarget
.
dataset
.
index
},
checkboxChange
:
function
(
e
){
for
(
var
r
=
this
.
checkboxCur
,
t
=
this
.
exam
.
group
[
r
].
arr
,
a
=
e
,
s
=
0
;
s
<
t
.
length
;
s
++
)
t
[
s
].
selected
=
0
;
for
(
var
i
=
0
;
i
<
a
.
length
;
i
++
)
t
[
a
[
i
]].
selected
=
1
;
this
.
exam
.
group
[
r
].
arr
=
t
,
a
.
length
?
this
.
recordAll
.
push
(
r
):
this
.
recordAll
=
this
.
recordAll
.
filter
(
function
(
e
,
t
){
return
e
!==
r
})},
submitExam
:
function
(
e
){
var
r
=
this
;
if
(
e
.
currentTarget
.
dataset
.
submit
)
this
.
$message
.
error
(
"已做过,不能再提交"
);
else
{
this
.
param
.
duration
=
Math
.
floor
(((
new
Date
).
getTime
()
-
this
.
startTime
)
/
1
e3
);
for
(
var
t
=
this
.
exam
.
group
,
a
=
t
.
length
,
s
=
[],
i
=
0
,
o
=
0
,
c
=
0
;
c
<
a
;
c
++
){
for
(
var
n
=
0
;
n
<
this
.
recordAll
.
length
&&
this
.
recordAll
[
n
]
!==
c
+
""
;
n
++
);
if
(
n
===
this
.
recordAll
.
length
)
return
void
this
.
$message
.
error
(
"还有题目未做,不能提交"
)}
for
(
var
u
=
0
;
u
<
t
.
length
;
u
++
){
if
(
o
=
0
,
1
===
t
[
u
].
type
&&
t
[
u
].
arr
.
forEach
(
function
(
e
,
t
){
e
.
checked
&&
e
.
selected
&&
(
i
+=
o
=
1
)}),
2
===
t
[
u
].
type
){
var
l
=!
0
;
t
[
u
].
arr
.
forEach
(
function
(
e
,
t
){
e
.
checked
!==!!
e
.
selected
&&
(
l
=!
1
)}),
l
&&
(
i
+=
o
=
1
)}
s
.
push
({
question_id
:
t
[
u
].
id
,
is_correct
:
o
,
options
:
t
[
u
].
arr
})}
this
.
param
.
work_contents
=
JSON
.
stringify
(
s
),
this
.
param
.
score
=
(
i
/
a
*
100
).
toFixed
(
1
);
var
d
=
this
.
$loading
({
lock
:
!
0
,
text
:
""
,
spinner
:
""
,
background
:
"rgba(255, 255, 255, 0.9)"
});
h
.
default
.
chapterAction
.
submitExamDetail
(
this
.
param
).
then
(
function
(
e
){
e
.
status
?
h
.
default
.
chapterAction
.
getExamDetail
(
r
.
sid
,
r
.
id
).
then
(
function
(
e
){
var
t
=
e
.
homework
;
t
&&
(
t
.
score
=
e
.
score
,
t
.
work_contents
=
e
.
work_contents
,
r
.
updateData1
(
t
))}).
catch
(
function
(
e
){
r
.
$message
.
error
(
e
.
message
)}):
r
.
$message
.
error
(
e
.
data
.
error
)}).
catch
(
function
(
e
){
r
.
$message
.
error
(
e
.
message
)}).
finally
(
function
(){
d
.
close
()})}}},
watch
:{
id
:{
handler
:
function
(){
this
.
loadAjax
()}}}}},
356
:
function
(
e
,
t
,
r
){},
400
:
function
(
e
,
t
,
r
){
"use strict"
;
var
a
=
r
(
356
);
r
.
n
(
a
).
a
},
439
:
function
(
e
,
t
,
r
){
"use strict"
;
var
a
=
function
(){
var
a
=
this
,
e
=
a
.
$createElement
,
s
=
a
.
_self
.
_c
||
e
;
return
s
(
"div"
,{
staticClass
:
"play-paper"
},[
s
(
"div"
,{
staticClass
:
"play-paper-body"
},[
s
(
"div"
,{
staticClass
:
"play-paper-title"
},[
s
(
"div"
,[
s
(
"h3"
,[
a
.
_v
(
a
.
_s
(
a
.
chapterName
))])])]),
a
.
_v
(
" "
),
s
(
"div"
,{
staticClass
:
"play-paper-content play-chapter-exam"
},[
this
.
exam
.
id
?[
s
(
"div"
,{
staticClass
:
"exam"
},[
s
(
"div"
,{
staticStyle
:{
"text-align"
:
"center"
}},[
s
(
"div"
,{
staticClass
:
"topic"
},[
a
.
exam
.
score
?[
s
(
"div"
,{
staticClass
:
"cur"
},[
a
.
_v
(
"正确率:"
+
a
.
_s
(
a
.
exam
.
score
)
+
"%"
)])]:
a
.
_e
()],
2
)]),
a
.
_v
(
" "
),
s
(
"div"
,{},[
a
.
_l
(
a
.
exam
.
group
,
function
(
r
,
e
){
return
[
1
==
r
.
type
?[
s
(
"div"
,{
key
:
e
,
staticClass
:
"q-group"
,
attrs
:{
"data-index"
:
e
},
on
:{
click
:
a
.
radioClick
}},[
s
(
"div"
,{
staticClass
:
"q-num"
},[
a
.
_v
(
a
.
_s
(
e
+
1
)
+
"."
)]),
s
(
"div"
,{
staticClass
:
"q-title"
,
domProps
:{
innerHTML
:
a
.
_s
(
r
.
title
)}}),
s
(
"div"
,{
staticClass
:
"q-type"
},[
a
.
_v
(
"(单选题)"
)]),
a
.
_v
(
" "
),
s
(
"el-radio-group"
,{
staticClass
:
"radio-group"
,
on
:{
change
:
a
.
radioChange
},
model
:{
value
:
r
.
sel
,
callback
:
function
(
e
){
a
.
$set
(
r
,
"sel"
,
e
)},
expression
:
"item.sel"
}},[
a
.
_l
(
r
.
arr
,
function
(
e
,
t
){
return
[
s
(
"el-radio"
,{
key
:
t
,
class
:[
"radio"
,
r
.
cur
&&
e
.
checked
&&
"success"
,
r
.
cur
&&!
e
.
checked
&&
e
.
selected
&&
"error"
],
attrs
:{
label
:
t
,
disabled
:
!!
r
.
cur
}},[
a
.
_v
(
a
.
_s
(
0
==
t
?
"A"
:
1
==
t
?
"B"
:
2
==
t
?
"C"
:
3
==
t
?
"D"
:
4
==
t
?
"E"
:
5
==
t
?
"F"
:
"G"
)
+
". "
+
a
.
_s
(
e
.
option
))])]})],
2
),
a
.
_v
(
" "
),
r
.
cur
?[
s
(
"div"
,{
staticClass
:
"result"
},[
a
.
_v
(
"正确答案:"
+
a
.
_s
(
r
.
cur
))])]:
a
.
_e
()],
2
)]:
a
.
_e
(),
a
.
_v
(
" "
),
2
==
r
.
type
?[
s
(
"div"
,{
key
:
e
,
staticClass
:
"q-group"
,
attrs
:{
"data-index"
:
e
},
on
:{
click
:
a
.
checkboxClick
}},[
s
(
"div"
,{
staticClass
:
"q-num"
},[
a
.
_v
(
a
.
_s
(
e
+
1
)
+
"."
)]),
s
(
"div"
,{
staticClass
:
"q-title"
,
domProps
:{
innerHTML
:
a
.
_s
(
r
.
title
)}}),
s
(
"div"
,{
staticClass
:
"q-type"
},[
a
.
_v
(
"(多选题)"
)]),
a
.
_v
(
" "
),
s
(
"el-checkbox-group"
,{
staticClass
:
"checkbox-group"
,
on
:{
change
:
a
.
checkboxChange
},
model
:{
value
:
r
.
arrSel
,
callback
:
function
(
e
){
a
.
$set
(
r
,
"arrSel"
,
e
)},
expression
:
"item.arrSel"
}},[
a
.
_l
(
r
.
arr
,
function
(
e
,
t
){
return
[
s
(
"el-checkbox"
,{
key
:
e
.
id
,
class
:[
"checkbox"
,
r
.
cur
&&
e
.
checked
&&
"success"
,
r
.
cur
&&!
e
.
checked
&&
e
.
selected
&&
"error"
],
attrs
:{
label
:
t
,
checked
:
!!
e
.
selected
,
disabled
:
!!
r
.
cur
}},[
a
.
_v
(
a
.
_s
(
0
==
t
?
"A"
:
1
==
t
?
"B"
:
2
==
t
?
"C"
:
3
==
t
?
"D"
:
4
==
t
?
"E"
:
5
==
t
?
"F"
:
"G"
)
+
". "
+
a
.
_s
(
e
.
option
))])]})],
2
),
a
.
_v
(
" "
),
r
.
cur
?[
s
(
"div"
,{
staticClass
:
"result"
},[
a
.
_v
(
"正确答案:"
+
a
.
_s
(
r
.
cur
))])]:
a
.
_e
()],
2
)]:
a
.
_e
()]})],
2
),
a
.
_v
(
" "
),
s
(
"div"
,{
class
:[
"btn"
,
a
.
exam
.
work_contents
&&
"on"
],
attrs
:{
"data-submit"
:
!!
a
.
exam
.
work_contents
},
on
:{
click
:
a
.
submitExam
}},[
a
.
_v
(
a
.
_s
(
a
.
exam
.
work_contents
?
"已提交"
:
"提交"
))]),
a
.
_v
(
" "
),
s
(
"div"
,{
staticClass
:
"care"
},[
a
.
_v
(
"(注意:测试只有一次提交机会)"
)])])]:
a
.
_e
()],
2
)])])},
s
=
[];
r
.
d
(
t
,
"a"
,
function
(){
return
a
}),
r
.
d
(
t
,
"b"
,
function
(){
return
s
})}}]);
\ No newline at end of file
client-dist/resources/11.7b12fe3f.js
0 → 100644
浏览文件 @
2173f62e
(
window
.
webpackJsonp
=
window
.
webpackJsonp
||
[]).
push
([[
11
],{
270
:
function
(
e
,
t
,
r
){
"use strict"
;
r
.
r
(
t
);
var
a
=
r
(
439
),
s
=
r
(
354
);
for
(
var
i
in
s
)
"default"
!==
i
&&
function
(
e
){
r
.
d
(
t
,
e
,
function
(){
return
s
[
e
]})}(
i
);
r
(
400
);
var
c
=
r
(
3
),
o
=
Object
(
c
.
a
)(
s
.
default
,
a
.
a
,
a
.
b
,
!
1
,
null
,
"529794d4"
,
null
);
o
.
options
.
__file
=
"chapterExam.vue"
,
t
.
default
=
o
.
exports
},
354
:
function
(
e
,
t
,
r
){
"use strict"
;
r
.
r
(
t
);
var
a
=
r
(
355
),
s
=
r
.
n
(
a
);
for
(
var
i
in
a
)
"default"
!==
i
&&
function
(
e
){
r
.
d
(
t
,
e
,
function
(){
return
a
[
e
]})}(
i
);
t
.
default
=
s
.
a
},
355
:
function
(
e
,
t
,
r
){
"use strict"
;
Object
.
defineProperty
(
t
,
"__esModule"
,{
value
:
!
0
});
var
a
,
s
=
r
(
68
),
h
=
(
a
=
s
)
&&
a
.
__esModule
?
a
:{
default
:
a
};
t
.
default
=
{
props
:{
chapterId
:{
type
:
String
,
require
:
!
1
},
chapterName
:{
type
:
String
,
require
:
!
1
},
chapterExam
:{
type
:
Object
,
require
:
!
1
},
sid
:{
type
:
String
,
require
:
!
1
},
cid
:{
type
:
String
,
require
:
!
1
},
id
:{
type
:
String
,
require
:
!
1
}},
data
:
function
(){
return
{
exam
:{},
param
:{
course_id
:
""
,
chapter_id
:
""
,
work_id
:
""
,
semester_id
:
""
,
work_contents
:
""
,
duration
:
0
,
score
:
0
},
startTime
:
""
,
recordAll
:[],
setTime
:
null
,
radioCur
:
""
,
checkCur
:
""
}},
mounted
:
function
(){
this
.
loadAjax
()},
methods
:{
updateData
:
function
(
n
){
return
this
.
param
=
{
course_id
:
n
.
course_id
,
chapter_id
:
n
.
chapter_id
,
work_id
:
n
.
work_id
,
semester_id
:
n
.
semester_id
,
work_contents
:
""
,
duration
:
0
,
score
:
0
},
this
.
startTime
=
(
new
Date
).
getTime
(),{
id
:
n
.
id
,
semester_id
:
n
.
semester_id
,
title
:
n
.
work_title
,
score
:
n
.
score
||
(
0
===
n
.
score
?
"0"
:
""
),
work_contents
:
n
.
work_contents
||
""
,
group
:
n
.
questions
.
map
(
function
(
e
,
t
){
var
r
=
""
,
a
=
JSON
.
parse
(
e
.
question_options
);
a
.
forEach
(
function
(
e
,
t
){
if
(
e
.
checked
)
switch
(
t
){
case
0
:
r
+=
"A,"
;
break
;
case
1
:
r
+=
"B,"
;
break
;
case
2
:
r
+=
"C,"
;
break
;
case
3
:
r
+=
"D,"
;
break
;
case
4
:
r
+=
"E,"
;
break
;
case
5
:
r
+=
"F,"
}});
var
s
=
""
;
if
(
n
.
work_contents
){
for
(
var
i
=
JSON
.
parse
(
n
.
work_contents
),
c
=
0
;
c
<
i
.
length
;
c
++
)
if
(
i
[
c
].
question_id
===
e
.
id
){
a
=
i
[
c
].
options
;
break
}
if
(
1
===
e
.
question_type
)
for
(
var
o
=
0
;
o
<
a
.
length
;
o
++
)
if
(
a
[
o
].
selected
){
s
=
o
;
break
}}
return
{
id
:
e
.
id
,
type
:
e
.
question_type
,
title
:
e
.
question_content
,
arr
:
a
,
cur
:
n
.
work_contents
&&
r
.
substr
(
0
,
r
.
length
-
1
)
||
""
,
arrSel
:[],
sel
:
s
}})}},
updateData1
:
function
(
e
){
this
.
exam
.
id
=
e
.
id
,
this
.
exam
.
semester_id
=
e
.
semester_id
,
this
.
exam
.
title
=
e
.
work_title
,
this
.
exam
.
score
=
e
.
score
||
"0"
,
this
.
exam
.
work_contents
=
e
.
work_contents
||
""
;
for
(
var
t
=
0
;
t
<
this
.
exam
.
group
.
length
;
t
++
){
var
r
=
""
,
a
=
e
.
questions
[
t
],
s
=
JSON
.
parse
(
a
.
question_options
);
s
.
forEach
(
function
(
e
,
t
){
if
(
e
.
checked
)
switch
(
t
){
case
0
:
r
+=
"A,"
;
break
;
case
1
:
r
+=
"B,"
;
break
;
case
2
:
r
+=
"C,"
;
break
;
case
3
:
r
+=
"D,"
;
break
;
case
4
:
r
+=
"E,"
;
break
;
case
5
:
r
+=
"F,"
}});
var
i
=
""
;
if
(
e
.
work_contents
){
for
(
var
c
=
JSON
.
parse
(
e
.
work_contents
),
o
=
0
;
o
<
c
.
length
;
o
++
)
if
(
c
[
o
].
question_id
===
a
.
id
){
s
=
c
[
o
].
options
;
break
}
if
(
1
===
a
.
question_type
)
for
(
var
n
=
0
;
n
<
s
.
length
;
n
++
)
if
(
s
[
n
].
selected
){
i
=
n
;
break
}}
this
.
exam
.
group
[
t
].
id
=
a
.
id
,
this
.
exam
.
group
[
t
].
type
=
a
.
question_type
,
this
.
exam
.
group
[
t
].
title
=
a
.
question_content
,
this
.
exam
.
group
[
t
].
cur
=
e
.
work_contents
&&
r
.
substr
(
0
,
r
.
length
-
1
)
||
""
,
this
.
exam
.
group
[
t
].
arrSel
=
[],
this
.
exam
.
group
[
t
].
sel
=
i
;
for
(
var
u
=
this
.
exam
.
group
[
t
].
arr
,
l
=
0
;
l
<
u
.
length
;
l
++
)
u
[
l
].
selected
=
s
[
l
].
selected
,
u
[
l
].
id
=
u
[
l
].
id
+
"1"
}},
loadAjax
:
function
(){
var
r
=
this
,
e
=
this
.
$loading
({
lock
:
!
0
,
text
:
""
,
spinner
:
""
,
background
:
"rgba(255, 255, 255, 0.9)"
});
h
.
default
.
chapterAction
.
getExamDetail
(
this
.
sid
,
this
.
id
).
then
(
function
(
e
){
var
t
=
e
.
homework
;
r
.
exam
=
t
?(
t
.
score
=
e
.
score
,
t
.
work_contents
=
e
.
work_contents
,
r
.
updateData
(
t
)):{}}).
catch
(
function
(
e
){
r
.
$message
.
error
(
e
.
message
)}).
finally
(
function
(){
r
.
setTime
=
setInterval
(
function
(){
r
.
chapterExam
.
work_id
&&
r
.
chapterExam
.
work_id
===
r
.
id
&&
(
r
.
exam
.
id
||
(
r
.
exam
=
r
.
updateData
(
r
.
chapterExam
),
document
.
querySelector
(
".play-paper"
).
scrollTop
=
0
),
clearInterval
(
r
.
setTime
))},
50
),
e
.
close
()})},
radioClick
:
function
(
e
){
this
.
radioCur
=
e
.
currentTarget
.
dataset
.
index
},
radioChange
:
function
(
e
){
for
(
var
t
=
this
.
radioCur
,
r
=
this
.
exam
.
group
[
t
].
arr
,
a
=
e
,
s
=
0
;
s
<
r
.
length
;
s
++
)
r
[
s
].
selected
=
0
;
r
[
a
].
selected
=
1
,
this
.
exam
.
group
[
t
].
arr
=
r
,
this
.
recordAll
.
push
(
t
)},
checkboxClick
:
function
(
e
){
this
.
checkboxCur
=
e
.
currentTarget
.
dataset
.
index
},
checkboxChange
:
function
(
e
){
for
(
var
r
=
this
.
checkboxCur
,
t
=
this
.
exam
.
group
[
r
].
arr
,
a
=
e
,
s
=
0
;
s
<
t
.
length
;
s
++
)
t
[
s
].
selected
=
0
;
for
(
var
i
=
0
;
i
<
a
.
length
;
i
++
)
t
[
a
[
i
]].
selected
=
1
;
this
.
exam
.
group
[
r
].
arr
=
t
,
a
.
length
?
this
.
recordAll
.
push
(
r
):
this
.
recordAll
=
this
.
recordAll
.
filter
(
function
(
e
,
t
){
return
e
!==
r
})},
submitExam
:
function
(
e
){
var
r
=
this
;
if
(
e
.
currentTarget
.
dataset
.
submit
)
this
.
$message
.
error
(
"已做过,不能再提交"
);
else
{
this
.
param
.
duration
=
Math
.
floor
(((
new
Date
).
getTime
()
-
this
.
startTime
)
/
1
e3
);
for
(
var
t
=
this
.
exam
.
group
,
a
=
t
.
length
,
s
=
[],
i
=
0
,
c
=
0
,
o
=
0
;
o
<
a
;
o
++
){
for
(
var
n
=
0
;
n
<
this
.
recordAll
.
length
&&
this
.
recordAll
[
n
]
!==
o
+
""
;
n
++
);
if
(
n
===
this
.
recordAll
.
length
)
return
void
this
.
$message
.
error
(
"还有题目未做,不能提交"
)}
for
(
var
u
=
0
;
u
<
t
.
length
;
u
++
){
if
(
c
=
0
,
1
===
t
[
u
].
type
&&
t
[
u
].
arr
.
forEach
(
function
(
e
,
t
){
e
.
checked
&&
e
.
selected
&&
(
i
+=
c
=
1
)}),
2
===
t
[
u
].
type
){
var
l
=!
0
;
t
[
u
].
arr
.
forEach
(
function
(
e
,
t
){
e
.
checked
!==!!
e
.
selected
&&
(
l
=!
1
)}),
l
&&
(
i
+=
c
=
1
)}
s
.
push
({
question_id
:
t
[
u
].
id
,
is_correct
:
c
,
options
:
t
[
u
].
arr
})}
this
.
param
.
work_contents
=
JSON
.
stringify
(
s
),
this
.
param
.
score
=
(
i
/
a
*
100
).
toFixed
(
1
);
var
d
=
this
.
$loading
({
lock
:
!
0
,
text
:
""
,
spinner
:
""
,
background
:
"rgba(255, 255, 255, 0.9)"
});
h
.
default
.
chapterAction
.
submitExamDetail
(
this
.
param
).
then
(
function
(
e
){
e
.
status
?
h
.
default
.
chapterAction
.
getExamDetail
(
r
.
sid
,
r
.
id
).
then
(
function
(
e
){
var
t
=
e
.
homework
;
t
&&
(
t
.
score
=
e
.
score
,
t
.
work_contents
=
e
.
work_contents
,
r
.
updateData1
(
t
))}).
catch
(
function
(
e
){
r
.
$message
.
error
(
e
.
message
)}):
r
.
$message
.
error
(
e
.
data
.
error
)}).
catch
(
function
(
e
){
r
.
$message
.
error
(
e
.
message
)}).
finally
(
function
(){
d
.
close
()})}}},
watch
:{
id
:{
handler
:
function
(){
this
.
loadAjax
()}}}}},
356
:
function
(
e
,
t
,
r
){},
400
:
function
(
e
,
t
,
r
){
"use strict"
;
var
a
=
r
(
356
);
r
.
n
(
a
).
a
},
439
:
function
(
e
,
t
,
r
){
"use strict"
;
var
a
=
function
(){
var
a
=
this
,
e
=
a
.
$createElement
,
s
=
a
.
_self
.
_c
||
e
;
return
s
(
"div"
,{
staticClass
:
"play-paper"
},[
s
(
"div"
,{
staticClass
:
"play-paper-body"
},[
s
(
"div"
,{
staticClass
:
"play-paper-title"
},[
s
(
"div"
,[
s
(
"h3"
,[
a
.
_v
(
a
.
_s
(
a
.
chapterName
))])])]),
a
.
_v
(
" "
),
s
(
"div"
,{
staticClass
:
"play-paper-content play-chapter-exam"
},[
this
.
exam
.
id
?[
s
(
"div"
,{
staticClass
:
"exam"
},[
s
(
"div"
,{
staticStyle
:{
"text-align"
:
"center"
}},[
s
(
"div"
,{
staticClass
:
"topic"
},[
a
.
exam
.
score
?[
s
(
"div"
,{
staticClass
:
"cur"
},[
a
.
_v
(
"正确率:"
+
a
.
_s
(
a
.
exam
.
score
)
+
"%"
)])]:
a
.
_e
()],
2
)]),
a
.
_v
(
" "
),
s
(
"div"
,{},[
a
.
_l
(
a
.
exam
.
group
,
function
(
r
,
e
){
return
[
1
==
r
.
type
?[
s
(
"div"
,{
key
:
e
,
staticClass
:
"q-group"
,
attrs
:{
"data-index"
:
e
},
on
:{
click
:
a
.
radioClick
}},[
s
(
"div"
,{
staticClass
:
"q-num"
},[
a
.
_v
(
a
.
_s
(
e
+
1
)
+
"."
)]),
s
(
"div"
,{
staticClass
:
"q-title"
,
domProps
:{
innerHTML
:
a
.
_s
(
r
.
title
)}}),
s
(
"div"
,{
staticClass
:
"q-type"
},[
a
.
_v
(
"(单选题)"
)]),
a
.
_v
(
" "
),
s
(
"el-radio-group"
,{
staticClass
:
"radio-group"
,
on
:{
change
:
a
.
radioChange
},
model
:{
value
:
r
.
sel
,
callback
:
function
(
e
){
a
.
$set
(
r
,
"sel"
,
e
)},
expression
:
"item.sel"
}},[
a
.
_l
(
r
.
arr
,
function
(
e
,
t
){
return
[
s
(
"el-radio"
,{
key
:
t
,
class
:[
"radio"
,
r
.
cur
&&
e
.
checked
&&
"success"
,
r
.
cur
&&!
e
.
checked
&&
e
.
selected
&&
"error"
],
attrs
:{
label
:
t
,
disabled
:
!!
r
.
cur
}},[
a
.
_v
(
a
.
_s
(
0
==
t
?
"A"
:
1
==
t
?
"B"
:
2
==
t
?
"C"
:
3
==
t
?
"D"
:
4
==
t
?
"E"
:
5
==
t
?
"F"
:
"G"
)
+
". "
+
a
.
_s
(
e
.
option
))])]})],
2
),
a
.
_v
(
" "
),
r
.
cur
?[
s
(
"div"
,{
staticClass
:
"result"
},[
a
.
_v
(
"正确答案:"
+
a
.
_s
(
r
.
cur
))])]:
a
.
_e
()],
2
)]:
a
.
_e
(),
a
.
_v
(
" "
),
2
==
r
.
type
?[
s
(
"div"
,{
key
:
e
,
staticClass
:
"q-group"
,
attrs
:{
"data-index"
:
e
},
on
:{
click
:
a
.
checkboxClick
}},[
s
(
"div"
,{
staticClass
:
"q-num"
},[
a
.
_v
(
a
.
_s
(
e
+
1
)
+
"."
)]),
s
(
"div"
,{
staticClass
:
"q-title"
,
domProps
:{
innerHTML
:
a
.
_s
(
r
.
title
)}}),
s
(
"div"
,{
staticClass
:
"q-type"
},[
a
.
_v
(
"(多选题)"
)]),
a
.
_v
(
" "
),
s
(
"el-checkbox-group"
,{
staticClass
:
"checkbox-group"
,
on
:{
change
:
a
.
checkboxChange
},
model
:{
value
:
r
.
arrSel
,
callback
:
function
(
e
){
a
.
$set
(
r
,
"arrSel"
,
e
)},
expression
:
"item.arrSel"
}},[
a
.
_l
(
r
.
arr
,
function
(
e
,
t
){
return
[
s
(
"el-checkbox"
,{
key
:
e
.
id
,
class
:[
"checkbox"
,
r
.
cur
&&
e
.
checked
&&
"success"
,
r
.
cur
&&!
e
.
checked
&&
e
.
selected
&&
"error"
],
attrs
:{
label
:
t
,
checked
:
!!
e
.
selected
,
disabled
:
!!
r
.
cur
}},[
a
.
_v
(
a
.
_s
(
0
==
t
?
"A"
:
1
==
t
?
"B"
:
2
==
t
?
"C"
:
3
==
t
?
"D"
:
4
==
t
?
"E"
:
5
==
t
?
"F"
:
"G"
)
+
". "
+
a
.
_s
(
e
.
option
))])]})],
2
),
a
.
_v
(
" "
),
r
.
cur
?[
s
(
"div"
,{
staticClass
:
"result"
},[
a
.
_v
(
"正确答案:"
+
a
.
_s
(
r
.
cur
))])]:
a
.
_e
()],
2
)]:
a
.
_e
()]})],
2
),
a
.
_v
(
" "
),
s
(
"div"
,{
class
:[
"btn"
,
a
.
exam
.
work_contents
&&
"on"
],
attrs
:{
"data-submit"
:
!!
a
.
exam
.
work_contents
},
on
:{
click
:
a
.
submitExam
}},[
a
.
_v
(
a
.
_s
(
a
.
exam
.
work_contents
?
"已提交"
:
"提交"
))]),
a
.
_v
(
" "
),
s
(
"div"
,{
staticClass
:
"care"
},[
a
.
_v
(
"(注意:测试只有一次提交机会)"
)])])]:
a
.
_e
()],
2
)])])},
s
=
[];
r
.
d
(
t
,
"a"
,
function
(){
return
a
}),
r
.
d
(
t
,
"b"
,
function
(){
return
s
})}}]);
\ No newline at end of file
client-dist/resources/11.
a630db62e31b
.css
→
client-dist/resources/11.
970f20fae48e
.css
浏览文件 @
2173f62e
.play
.exam
[
data-v-dfa87ad4
]
{
padding
:
0
}
.play
.exam
.topic
[
data-v-dfa87ad4
]
{
display
:
inline-block
;
margin-bottom
:
.1rem
}
.play
.exam
.topic
.tit
[
data-v-dfa87ad4
]
{
margin
:
0
auto
;
padding
:
0
.2rem
;
text-align
:
center
;
font-size
:
.24rem
;
color
:
#313131
;
background
:
#fff
;
-moz-box-sizing
:
border-box
;
box-sizing
:
border-box
;
-webkit-box-sizing
:
border-box
}
.play
.exam
.topic
.cur
[
data-v-dfa87ad4
]
{
text-align
:
center
;
font-size
:
.18rem
;
color
:
#313131
;
line-height
:
.4rem
}
.play
.exam
.q-group
[
data-v-dfa87ad4
]
{
padding
:
.1rem
;
border-bottom
:
1px
solid
hsla
(
0
,
0%
,
78.8%
,
.48
);
overflow
:
hidden
}
.play
.exam
.q-group
.q-num
[
data-v-dfa87ad4
]
{
float
:
left
;
margin-right
:
.1rem
;
font-size
:
.16rem
;
color
:
#676a6c
}
.play
.exam
.q-group
.q-title
[
data-v-dfa87ad4
]
{
float
:
left
;
width
:
90%
;
font-size
:
.16rem
;
color
:
#676a6c
;
text-align
:
justify
}
.play
.exam
.q-group
.q-type
[
data-v-dfa87ad4
]
{
float
:
right
;
font-size
:
.16rem
;
color
:
#676a6c
}
.play
.exam
.q-group
.radio-group
[
data-v-dfa87ad4
]
{
float
:
left
;
margin-top
:
.1rem
;
width
:
100%
}
.play
.exam
.q-group
.radio-group
.radio
[
data-v-dfa87ad4
]
{
display
:
block
;
font-size
:
.18rem
;
color
:
#3f3b3a
;
line-height
:
.3rem
;
margin-bottom
:
.1rem
}
.play
.exam
.q-group
.checkbox-group
[
data-v-dfa87ad4
]
{
float
:
left
;
margin-top
:
.1rem
;
width
:
100%
}
.play
.exam
.q-group
.checkbox-group
.checkbox
[
data-v-dfa87ad4
]
{
display
:
block
;
font-size
:
.18rem
;
color
:
#3f3b3a
;
line-height
:
.3rem
;
margin-bottom
:
.1rem
}
.play
.exam
.q-group
.checkbox-group
.checkbox.error
[
data-v-dfa87ad4
],
.play
.exam
.q-group
.radio-group
.radio.error
[
data-v-dfa87ad4
]
{
color
:
#d80000
}
.play
.exam
.q-group
.checkbox-group
.checkbox.success
[
data-v-dfa87ad4
],
.play
.exam
.q-group
.radio-group
.radio.success
[
data-v-dfa87ad4
]
{
color
:
#090
}
.play
.exam
.q-group
.result
[
data-v-dfa87ad4
]
{
float
:
right
;
font-size
:
.18rem
;
color
:
#3f3b3a
;
margin-right
:
0
}
.play
.exam
.q-group
[
data-v-dfa87ad4
]
:last-child
{
border-bottom
:
none
}
.play
.exam
.btn
[
data-v-dfa87ad4
]
{
margin
:
.2rem
auto
;
width
:
60%
;
height
:
.5rem
;
line-height
:
.5rem
;
font-size
:
.16rem
;
text-align
:
center
;
font-weight
:
300
;
color
:
#fff
;
-webkit-border-radius
:
.1rem
;
-moz-border-radius
:
.1rem
;
border-radius
:
.1rem
;
background
:
#b49441
;
cursor
:
pointer
}
.play
.exam
.btn.on
[
data-v-dfa87ad4
]
{
opacity
:
.5
}
.play
.exam
.care
[
data-v-dfa87ad4
]
{
font-size
:
.16rem
;
color
:
#d80000
;
text-align
:
center
}
.play
.exam
[
data-v-529794d4
]
{
padding
:
0
}
.play
.exam
.topic
[
data-v-529794d4
]
{
display
:
inline-block
;
margin-bottom
:
.1rem
}
.play
.exam
.topic
.tit
[
data-v-529794d4
]
{
margin
:
0
auto
;
padding
:
0
.2rem
;
text-align
:
center
;
font-size
:
.24rem
;
color
:
#313131
;
background
:
#fff
;
-moz-box-sizing
:
border-box
;
box-sizing
:
border-box
;
-webkit-box-sizing
:
border-box
}
.play
.exam
.topic
.cur
[
data-v-529794d4
]
{
text-align
:
center
;
font-size
:
.18rem
;
color
:
#313131
;
line-height
:
.4rem
}
.play
.exam
.q-group
[
data-v-529794d4
]
{
padding
:
.1rem
;
border-bottom
:
1px
solid
hsla
(
0
,
0%
,
78.8%
,
.48
);
overflow
:
hidden
}
.play
.exam
.q-group
.q-num
[
data-v-529794d4
]
{
float
:
left
;
margin-right
:
.1rem
;
font-size
:
.16rem
;
color
:
#676a6c
}
.play
.exam
.q-group
.q-title
[
data-v-529794d4
]
{
float
:
left
;
width
:
90%
;
font-size
:
.16rem
;
color
:
#676a6c
;
text-align
:
justify
}
.play
.exam
.q-group
.q-type
[
data-v-529794d4
]
{
float
:
right
;
font-size
:
.16rem
;
color
:
#676a6c
}
.play
.exam
.q-group
.radio-group
[
data-v-529794d4
]
{
float
:
left
;
margin-top
:
.1rem
;
width
:
100%
}
.play
.exam
.q-group
.radio-group
.radio
[
data-v-529794d4
]
{
display
:
block
;
font-size
:
.18rem
;
color
:
#3f3b3a
;
line-height
:
.3rem
;
margin-bottom
:
.1rem
}
.play
.exam
.q-group
.checkbox-group
[
data-v-529794d4
]
{
float
:
left
;
margin-top
:
.1rem
;
width
:
100%
}
.play
.exam
.q-group
.checkbox-group
.checkbox
[
data-v-529794d4
]
{
display
:
block
;
font-size
:
.18rem
;
color
:
#3f3b3a
;
line-height
:
.3rem
;
margin-bottom
:
.1rem
}
.play
.exam
.q-group
.checkbox-group
.checkbox.error
[
data-v-529794d4
],
.play
.exam
.q-group
.radio-group
.radio.error
[
data-v-529794d4
]
{
color
:
#d80000
}
.play
.exam
.q-group
.checkbox-group
.checkbox.success
[
data-v-529794d4
],
.play
.exam
.q-group
.radio-group
.radio.success
[
data-v-529794d4
]
{
color
:
#090
}
.play
.exam
.q-group
.result
[
data-v-529794d4
]
{
float
:
right
;
font-size
:
.18rem
;
color
:
#3f3b3a
;
margin-right
:
0
}
.play
.exam
.q-group
[
data-v-529794d4
]
:last-child
{
border-bottom
:
none
}
.play
.exam
.btn
[
data-v-529794d4
]
{
margin
:
.2rem
auto
;
width
:
60%
;
height
:
.5rem
;
line-height
:
.5rem
;
font-size
:
.16rem
;
text-align
:
center
;
font-weight
:
300
;
color
:
#fff
;
-webkit-border-radius
:
.1rem
;
-moz-border-radius
:
.1rem
;
border-radius
:
.1rem
;
background
:
#b49441
;
cursor
:
pointer
}
.play
.exam
.btn.on
[
data-v-529794d4
]
{
opacity
:
.5
}
.play
.exam
.care
[
data-v-529794d4
]
{
font-size
:
.16rem
;
color
:
#d80000
;
text-align
:
center
}
\ No newline at end of file
\ No newline at end of file
client-dist/resources/16.
528cc7baf223
.css
→
client-dist/resources/16.
30dff0c0c0cb
.css
浏览文件 @
2173f62e
差异被折叠。
点击展开。
client-dist/resources/16.6ba9727d.js
0 → 100644
浏览文件 @
2173f62e
差异被折叠。
点击展开。
client-dist/resources/16.f7419562.js
deleted
100644 → 0
浏览文件 @
46a287e2
差异被折叠。
点击展开。
client-dist/resources/manifest.
d2997f4d
.js
→
client-dist/resources/manifest.
2bf0819b
.js
浏览文件 @
2173f62e
!
function
(
d
){
function
e
(
e
){
for
(
var
t
,
r
,
n
=
e
[
0
],
a
=
e
[
1
],
o
=
e
[
2
],
c
=
0
,
f
=
[];
c
<
n
.
length
;
c
++
)
r
=
n
[
c
],
s
[
r
]
&&
f
.
push
(
s
[
r
][
0
]),
s
[
r
]
=
0
;
for
(
t
in
a
)
Object
.
prototype
.
hasOwnProperty
.
call
(
a
,
t
)
&&
(
d
[
t
]
=
a
[
t
]);
for
(
p
&&
p
(
e
);
f
.
length
;)
f
.
shift
()();
return
i
.
push
.
apply
(
i
,
o
||
[]),
u
()}
function
u
(){
for
(
var
e
,
t
=
0
;
t
<
i
.
length
;
t
++
){
for
(
var
r
=
i
[
t
],
n
=!
0
,
a
=
1
;
a
<
r
.
length
;
a
++
){
var
o
=
r
[
a
];
0
!==
s
[
o
]
&&
(
n
=!
1
)}
n
&&
(
i
.
splice
(
t
--
,
1
),
e
=
b
(
b
.
s
=
r
[
0
]))}
return
e
}
var
r
=
{},
l
=
{
3
:
0
},
s
=
{
3
:
0
},
i
=
[];
function
b
(
e
){
if
(
r
[
e
])
return
r
[
e
].
exports
;
var
t
=
r
[
e
]
=
{
i
:
e
,
l
:
!
1
,
exports
:{}};
return
d
[
e
].
call
(
t
.
exports
,
t
,
t
.
exports
,
b
),
t
.
l
=!
0
,
t
.
exports
}
b
.
e
=
function
(
i
){
var
e
=
[];
l
[
i
]?
e
.
push
(
l
[
i
]):
0
!==
l
[
i
]
&&
{
0
:
1
,
5
:
1
,
6
:
1
,
7
:
1
,
8
:
1
,
9
:
1
,
10
:
1
,
11
:
1
,
12
:
1
,
13
:
1
,
14
:
1
,
15
:
1
,
16
:
1
,
17
:
1
,
18
:
1
,
19
:
1
,
20
:
1
,
21
:
1
}[
i
]
&&
e
.
push
(
l
[
i
]
=
new
Promise
(
function
(
e
,
n
){
for
(
var
t
=
"resources/"
+
({}[
i
]
||
i
)
+
"."
+
{
0
:
"b2e9413b6daa"
,
1
:
"31d6cfe0d16a"
,
5
:
"a95593c8fdac"
,
6
:
"99a37f54610a"
,
7
:
"5fb66d23f2f0"
,
8
:
"c7ab83b7700d"
,
9
:
"3722d9bda5f5"
,
10
:
"eb5caf8d2af7"
,
11
:
"a630db62e31b"
,
12
:
"ecdbc84c1af7"
,
13
:
"cbf94943e0a6"
,
14
:
"27ece10619a6"
,
15
:
"bea3197f71de"
,
16
:
"528cc7baf223"
,
17
:
"43d7a69049a6"
,
18
:
"6585580b0bed"
,
19
:
"81c5f8820ff9"
,
20
:
"3181e4596df6"
,
21
:
"12c536f6abaf"
,
22
:
"31d6cfe0d16a"
,
23
:
"31d6cfe0d16a"
,
24
:
"31d6cfe0d16a"
,
25
:
"31d6cfe0d16a"
,
26
:
"31d6cfe0d16a"
,
27
:
"31d6cfe0d16a"
,
28
:
"31d6cfe0d16a"
,
29
:
"31d6cfe0d16a"
}[
i
]
+
".css"
,
a
=
b
.
p
+
t
,
r
=
document
.
getElementsByTagName
(
"link"
),
o
=
0
;
o
<
r
.
length
;
o
++
){
var
c
=
(
d
=
r
[
o
]).
getAttribute
(
"data-href"
)
||
d
.
getAttribute
(
"href"
);
if
(
"stylesheet"
===
d
.
rel
&&
(
c
===
t
||
c
===
a
))
return
e
()}
var
f
=
document
.
getElementsByTagName
(
"style"
);
for
(
o
=
0
;
o
<
f
.
length
;
o
++
){
var
d
;
if
((
c
=
(
d
=
f
[
o
]).
getAttribute
(
"data-href"
))
===
t
||
c
===
a
)
return
e
()}
var
u
=
document
.
createElement
(
"link"
);
u
.
rel
=
"stylesheet"
,
u
.
type
=
"text/css"
,
u
.
onload
=
e
,
u
.
onerror
=
function
(
e
){
var
t
=
e
&&
e
.
target
&&
e
.
target
.
src
||
a
,
r
=
new
Error
(
"Loading CSS chunk "
+
i
+
" failed.
\
n("
+
t
+
")"
);
r
.
request
=
t
,
delete
l
[
i
],
u
.
parentNode
.
removeChild
(
u
),
n
(
r
)},
u
.
href
=
a
,
document
.
getElementsByTagName
(
"head"
)[
0
].
appendChild
(
u
)}).
then
(
function
(){
l
[
i
]
=
0
}));
var
t
,
r
=
s
[
i
];
if
(
0
!==
r
)
if
(
r
)
e
.
push
(
r
[
2
]);
else
{
var
n
=
new
Promise
(
function
(
e
,
t
){
r
=
s
[
i
]
=
[
e
,
t
]});
e
.
push
(
r
[
2
]
=
n
);
var
a
,
o
=
document
.
getElementsByTagName
(
"head"
)[
0
],
c
=
document
.
createElement
(
"script"
);
c
.
charset
=
"utf-8"
,
c
.
timeout
=
120
,
b
.
nc
&&
c
.
setAttribute
(
"nonce"
,
b
.
nc
),
c
.
src
=
b
.
p
+
"resources/"
+
({}[
t
=
i
]
||
t
)
+
"."
+
{
0
:
"03237134"
,
1
:
"cce9dd13"
,
5
:
"2ecf20b1"
,
6
:
"c31d0af8"
,
7
:
"339ccf47"
,
8
:
"d5cdd163"
,
9
:
"109add9c"
,
10
:
"236b8345"
,
11
:
"6521c812"
,
12
:
"792709ec"
,
13
:
"e92b9d23"
,
14
:
"f019d021"
,
15
:
"a46ce51b"
,
16
:
"f7419562"
,
17
:
"71afe09f"
,
18
:
"fa0bd151"
,
19
:
"b26b8ae8"
,
20
:
"b1a3305e"
,
21
:
"d705dc78"
,
22
:
"37fe44a3"
,
23
:
"e833bd21"
,
24
:
"90451017"
,
25
:
"ae4480e0"
,
26
:
"47711baa"
,
27
:
"8ac385cf"
,
28
:
"f7d39fd0"
,
29
:
"4322baee"
}[
t
]
+
".js"
,
a
=
function
(
e
){
c
.
onerror
=
c
.
onload
=
null
,
clearTimeout
(
f
);
var
t
=
s
[
i
];
if
(
0
!==
t
){
if
(
t
){
var
r
=
e
&&
(
"load"
===
e
.
type
?
"missing"
:
e
.
type
),
n
=
e
&&
e
.
target
&&
e
.
target
.
src
,
a
=
new
Error
(
"Loading chunk "
+
i
+
" failed.
\
n("
+
r
+
": "
+
n
+
")"
);
a
.
type
=
r
,
a
.
request
=
n
,
t
[
1
](
a
)}
s
[
i
]
=
void
0
}};
var
f
=
setTimeout
(
function
(){
a
({
type
:
"timeout"
,
target
:
c
})},
12
e4
);
c
.
onerror
=
c
.
onload
=
a
,
o
.
appendChild
(
c
)}
return
Promise
.
all
(
e
)},
b
.
m
=
d
,
b
.
c
=
r
,
b
.
d
=
function
(
e
,
t
,
r
){
b
.
o
(
e
,
t
)
||
Object
.
defineProperty
(
e
,
t
,{
enumerable
:
!
0
,
get
:
r
})},
b
.
r
=
function
(
e
){
"undefined"
!=
typeof
Symbol
&&
Symbol
.
toStringTag
&&
Object
.
defineProperty
(
e
,
Symbol
.
toStringTag
,{
value
:
"Module"
}),
Object
.
defineProperty
(
e
,
"__esModule"
,{
value
:
!
0
})},
b
.
t
=
function
(
t
,
e
){
if
(
1
&
e
&&
(
t
=
b
(
t
)),
8
&
e
)
return
t
;
if
(
4
&
e
&&
"object"
==
typeof
t
&&
t
&&
t
.
__esModule
)
return
t
;
var
r
=
Object
.
create
(
null
);
if
(
b
.
r
(
r
),
Object
.
defineProperty
(
r
,
"default"
,{
enumerable
:
!
0
,
value
:
t
}),
2
&
e
&&
"string"
!=
typeof
t
)
for
(
var
n
in
t
)
b
.
d
(
r
,
n
,
function
(
e
){
return
t
[
e
]}.
bind
(
null
,
n
));
return
r
},
b
.
n
=
function
(
e
){
var
t
=
e
&&
e
.
__esModule
?
function
(){
return
e
.
default
}:
function
(){
return
e
};
return
b
.
d
(
t
,
"a"
,
t
),
t
},
b
.
o
=
function
(
e
,
t
){
return
Object
.
prototype
.
hasOwnProperty
.
call
(
e
,
t
)},
b
.
p
=
"https://zws-imgs-pub.ezijing.com/static/build/learn-mba/"
,
b
.
oe
=
function
(
e
){
throw
console
.
error
(
e
),
e
};
var
t
=
window
.
webpackJsonp
=
window
.
webpackJsonp
||
[],
n
=
t
.
push
.
bind
(
t
);
t
.
push
=
e
,
t
=
t
.
slice
();
for
(
var
a
=
0
;
a
<
t
.
length
;
a
++
)
e
(
t
[
a
]);
var
p
=
n
;
u
()}([]);
!
function
(
d
){
function
e
(
e
){
for
(
var
t
,
r
,
n
=
e
[
0
],
a
=
e
[
1
],
o
=
e
[
2
],
f
=
0
,
c
=
[];
f
<
n
.
length
;
f
++
)
r
=
n
[
f
],
s
[
r
]
&&
c
.
push
(
s
[
r
][
0
]),
s
[
r
]
=
0
;
for
(
t
in
a
)
Object
.
prototype
.
hasOwnProperty
.
call
(
a
,
t
)
&&
(
d
[
t
]
=
a
[
t
]);
for
(
p
&&
p
(
e
);
c
.
length
;)
c
.
shift
()();
return
i
.
push
.
apply
(
i
,
o
||
[]),
u
()}
function
u
(){
for
(
var
e
,
t
=
0
;
t
<
i
.
length
;
t
++
){
for
(
var
r
=
i
[
t
],
n
=!
0
,
a
=
1
;
a
<
r
.
length
;
a
++
){
var
o
=
r
[
a
];
0
!==
s
[
o
]
&&
(
n
=!
1
)}
n
&&
(
i
.
splice
(
t
--
,
1
),
e
=
b
(
b
.
s
=
r
[
0
]))}
return
e
}
var
r
=
{},
l
=
{
3
:
0
},
s
=
{
3
:
0
},
i
=
[];
function
b
(
e
){
if
(
r
[
e
])
return
r
[
e
].
exports
;
var
t
=
r
[
e
]
=
{
i
:
e
,
l
:
!
1
,
exports
:{}};
return
d
[
e
].
call
(
t
.
exports
,
t
,
t
.
exports
,
b
),
t
.
l
=!
0
,
t
.
exports
}
b
.
e
=
function
(
i
){
var
e
=
[];
l
[
i
]?
e
.
push
(
l
[
i
]):
0
!==
l
[
i
]
&&
{
0
:
1
,
5
:
1
,
6
:
1
,
7
:
1
,
8
:
1
,
9
:
1
,
10
:
1
,
11
:
1
,
12
:
1
,
13
:
1
,
14
:
1
,
15
:
1
,
16
:
1
,
17
:
1
,
18
:
1
,
19
:
1
,
20
:
1
,
21
:
1
}[
i
]
&&
e
.
push
(
l
[
i
]
=
new
Promise
(
function
(
e
,
n
){
for
(
var
t
=
"resources/"
+
({}[
i
]
||
i
)
+
"."
+
{
0
:
"b2e9413b6daa"
,
1
:
"31d6cfe0d16a"
,
5
:
"a95593c8fdac"
,
6
:
"99a37f54610a"
,
7
:
"5fb66d23f2f0"
,
8
:
"c7ab83b7700d"
,
9
:
"3722d9bda5f5"
,
10
:
"eb5caf8d2af7"
,
11
:
"970f20fae48e"
,
12
:
"ecdbc84c1af7"
,
13
:
"cbf94943e0a6"
,
14
:
"27ece10619a6"
,
15
:
"bea3197f71de"
,
16
:
"30dff0c0c0cb"
,
17
:
"43d7a69049a6"
,
18
:
"6585580b0bed"
,
19
:
"81c5f8820ff9"
,
20
:
"3181e4596df6"
,
21
:
"12c536f6abaf"
,
22
:
"31d6cfe0d16a"
,
23
:
"31d6cfe0d16a"
,
24
:
"31d6cfe0d16a"
,
25
:
"31d6cfe0d16a"
,
26
:
"31d6cfe0d16a"
,
27
:
"31d6cfe0d16a"
,
28
:
"31d6cfe0d16a"
,
29
:
"31d6cfe0d16a"
}[
i
]
+
".css"
,
a
=
b
.
p
+
t
,
r
=
document
.
getElementsByTagName
(
"link"
),
o
=
0
;
o
<
r
.
length
;
o
++
){
var
f
=
(
d
=
r
[
o
]).
getAttribute
(
"data-href"
)
||
d
.
getAttribute
(
"href"
);
if
(
"stylesheet"
===
d
.
rel
&&
(
f
===
t
||
f
===
a
))
return
e
()}
var
c
=
document
.
getElementsByTagName
(
"style"
);
for
(
o
=
0
;
o
<
c
.
length
;
o
++
){
var
d
;
if
((
f
=
(
d
=
c
[
o
]).
getAttribute
(
"data-href"
))
===
t
||
f
===
a
)
return
e
()}
var
u
=
document
.
createElement
(
"link"
);
u
.
rel
=
"stylesheet"
,
u
.
type
=
"text/css"
,
u
.
onload
=
e
,
u
.
onerror
=
function
(
e
){
var
t
=
e
&&
e
.
target
&&
e
.
target
.
src
||
a
,
r
=
new
Error
(
"Loading CSS chunk "
+
i
+
" failed.
\
n("
+
t
+
")"
);
r
.
request
=
t
,
delete
l
[
i
],
u
.
parentNode
.
removeChild
(
u
),
n
(
r
)},
u
.
href
=
a
,
document
.
getElementsByTagName
(
"head"
)[
0
].
appendChild
(
u
)}).
then
(
function
(){
l
[
i
]
=
0
}));
var
t
,
r
=
s
[
i
];
if
(
0
!==
r
)
if
(
r
)
e
.
push
(
r
[
2
]);
else
{
var
n
=
new
Promise
(
function
(
e
,
t
){
r
=
s
[
i
]
=
[
e
,
t
]});
e
.
push
(
r
[
2
]
=
n
);
var
a
,
o
=
document
.
getElementsByTagName
(
"head"
)[
0
],
f
=
document
.
createElement
(
"script"
);
f
.
charset
=
"utf-8"
,
f
.
timeout
=
120
,
b
.
nc
&&
f
.
setAttribute
(
"nonce"
,
b
.
nc
),
f
.
src
=
b
.
p
+
"resources/"
+
({}[
t
=
i
]
||
t
)
+
"."
+
{
0
:
"03237134"
,
1
:
"cce9dd13"
,
5
:
"2ecf20b1"
,
6
:
"c31d0af8"
,
7
:
"339ccf47"
,
8
:
"d5cdd163"
,
9
:
"109add9c"
,
10
:
"236b8345"
,
11
:
"7b12fe3f"
,
12
:
"792709ec"
,
13
:
"e92b9d23"
,
14
:
"f019d021"
,
15
:
"a46ce51b"
,
16
:
"6ba9727d"
,
17
:
"71afe09f"
,
18
:
"fa0bd151"
,
19
:
"b26b8ae8"
,
20
:
"b1a3305e"
,
21
:
"d705dc78"
,
22
:
"37fe44a3"
,
23
:
"e833bd21"
,
24
:
"90451017"
,
25
:
"ae4480e0"
,
26
:
"47711baa"
,
27
:
"8ac385cf"
,
28
:
"f7d39fd0"
,
29
:
"4322baee"
}[
t
]
+
".js"
,
a
=
function
(
e
){
f
.
onerror
=
f
.
onload
=
null
,
clearTimeout
(
c
);
var
t
=
s
[
i
];
if
(
0
!==
t
){
if
(
t
){
var
r
=
e
&&
(
"load"
===
e
.
type
?
"missing"
:
e
.
type
),
n
=
e
&&
e
.
target
&&
e
.
target
.
src
,
a
=
new
Error
(
"Loading chunk "
+
i
+
" failed.
\
n("
+
r
+
": "
+
n
+
")"
);
a
.
type
=
r
,
a
.
request
=
n
,
t
[
1
](
a
)}
s
[
i
]
=
void
0
}};
var
c
=
setTimeout
(
function
(){
a
({
type
:
"timeout"
,
target
:
f
})},
12
e4
);
f
.
onerror
=
f
.
onload
=
a
,
o
.
appendChild
(
f
)}
return
Promise
.
all
(
e
)},
b
.
m
=
d
,
b
.
c
=
r
,
b
.
d
=
function
(
e
,
t
,
r
){
b
.
o
(
e
,
t
)
||
Object
.
defineProperty
(
e
,
t
,{
enumerable
:
!
0
,
get
:
r
})},
b
.
r
=
function
(
e
){
"undefined"
!=
typeof
Symbol
&&
Symbol
.
toStringTag
&&
Object
.
defineProperty
(
e
,
Symbol
.
toStringTag
,{
value
:
"Module"
}),
Object
.
defineProperty
(
e
,
"__esModule"
,{
value
:
!
0
})},
b
.
t
=
function
(
t
,
e
){
if
(
1
&
e
&&
(
t
=
b
(
t
)),
8
&
e
)
return
t
;
if
(
4
&
e
&&
"object"
==
typeof
t
&&
t
&&
t
.
__esModule
)
return
t
;
var
r
=
Object
.
create
(
null
);
if
(
b
.
r
(
r
),
Object
.
defineProperty
(
r
,
"default"
,{
enumerable
:
!
0
,
value
:
t
}),
2
&
e
&&
"string"
!=
typeof
t
)
for
(
var
n
in
t
)
b
.
d
(
r
,
n
,
function
(
e
){
return
t
[
e
]}.
bind
(
null
,
n
));
return
r
},
b
.
n
=
function
(
e
){
var
t
=
e
&&
e
.
__esModule
?
function
(){
return
e
.
default
}:
function
(){
return
e
};
return
b
.
d
(
t
,
"a"
,
t
),
t
},
b
.
o
=
function
(
e
,
t
){
return
Object
.
prototype
.
hasOwnProperty
.
call
(
e
,
t
)},
b
.
p
=
"https://zws-imgs-pub.ezijing.com/static/build/learn-mba/"
,
b
.
oe
=
function
(
e
){
throw
console
.
error
(
e
),
e
};
var
t
=
window
.
webpackJsonp
=
window
.
webpackJsonp
||
[],
n
=
t
.
push
.
bind
(
t
);
t
.
push
=
e
,
t
=
t
.
slice
();
for
(
var
a
=
0
;
a
<
t
.
length
;
a
++
)
e
(
t
[
a
]);
var
p
=
n
;
u
()}([]);
\ No newline at end of file
\ No newline at end of file
client/components/player/chapterExam/chapterExam.vue
浏览文件 @
2173f62e
...
@@ -140,6 +140,8 @@ export default {
...
@@ -140,6 +140,8 @@ export default {
case
1
:
str
+=
'B,'
;
break
case
1
:
str
+=
'B,'
;
break
case
2
:
str
+=
'C,'
;
break
case
2
:
str
+=
'C,'
;
break
case
3
:
str
+=
'D,'
;
break
case
3
:
str
+=
'D,'
;
break
case
4
:
str
+=
'E,'
;
break
case
5
:
str
+=
'F,'
;
break
}
}
}
}
})
})
...
@@ -200,6 +202,8 @@ export default {
...
@@ -200,6 +202,8 @@ export default {
case
1
:
str
+=
'B,'
;
break
case
1
:
str
+=
'B,'
;
break
case
2
:
str
+=
'C,'
;
break
case
2
:
str
+=
'C,'
;
break
case
3
:
str
+=
'D,'
;
break
case
3
:
str
+=
'D,'
;
break
case
4
:
str
+=
'E,'
;
break
case
5
:
str
+=
'F,'
;
break
}
}
}
}
})
})
...
...
client/project/elearning-node/pages/myLearn/courseDetail.vue
浏览文件 @
2173f62e
...
@@ -395,7 +395,7 @@ export default {
...
@@ -395,7 +395,7 @@ export default {
!this.ckeditor && (this.ckeditor = CKEDITOR.replace('
editor
', {
!this.ckeditor && (this.ckeditor = CKEDITOR.replace('
editor
', {
height: 300,
height: 300,
uiColor: '
#
eeeeee
',
uiColor: '
#
eeeeee
',
filebrowserImageUploadUrl: '
/
api
/
editor
/
upload
',
filebrowserImageUploadUrl: '
/
api
/
ckeditor
/
img
/
upload
',
// resize_enabled: typeof this.props.resizable === '
boolean
' ? this.props.resizable : true,
// resize_enabled: typeof this.props.resizable === '
boolean
' ? this.props.resizable : true,
toolbar: [
toolbar: [
// { name: '
document
', items: [ '
Source
', '
-
', '
Save
', '
NewPage
', '
Preview
' ] },
// { name: '
document
', items: [ '
Source
', '
-
', '
Save
', '
NewPage
', '
Preview
' ] },
...
...
server/elearning-node/routes/index.js
浏览文件 @
2173f62e
...
@@ -228,8 +228,31 @@ const _rmdir = (dir, callback) => {
...
@@ -228,8 +228,31 @@ const _rmdir = (dir, callback) => {
callback
()
callback
()
}
}
const
ckeditorUpload
=
(
req
,
res
)
=>
{
/* 文件上传 */
function
sendHtml
(
url
,
msg
)
{
// req.query.CKEditorFuncNum 我这里用 ckeditor 没有传 这个值 直接默认
res
.
send
(
`<script>window.parent.CKEDITOR.tools.callFunction(
${
0
}
, "
${
url
||
''
}
", "
${
msg
||
''
}
");</script>`
)
}
if
(
req
.
files
.
length
)
{
if
(
!
req
.
files
[
0
].
mimetype
.
startsWith
(
'image'
))
{
sendHtml
(
''
,
'文件类型错误,请上传图片'
);
return
}
if
(
req
.
files
[
0
].
size
>
10
*
1024
*
1024
)
{
sendHtml
(
''
,
'图片大小超限'
);
return
}
req
.
files
.
forEach
((
elem
,
i
)
=>
{
/* 缓存文件中 名称替换,上传名称一致 会被覆盖 */
fs
.
renameSync
(
elem
.
path
,
elem
.
destination
+
elem
.
originalname
)
// response.successArr.push({
// fileParam: elem.fieldname,
// fileName: elem.originalname
// })
})
res
.
status
(
200
)
res
.
end
(
'1'
)
}
}
/* 统一API接口 */
/* 统一API接口 */
router
.
post
(
'/api/api-abc/dir/operate'
,
upload
.
any
(),
postDirOperate
)
router
.
post
(
'/api/ckeditor/img/upload'
,
upload
.
any
(),
ckeditorUpload
)
router
.
post
(
'/api/api-abc/dir/operate'
,
postDirOperate
)
router
.
use
(
'/api/*'
,
upload
.
any
(),
agentProcessor
(
'api'
))
router
.
use
(
'/api/*'
,
upload
.
any
(),
agentProcessor
(
'api'
))
module
.
exports
=
router
module
.
exports
=
router
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论