Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
eduline
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
冷斌
eduline
Commits
eb2cb014
Commit
eb2cb014
authored
Jun 07, 2020
by
冷斌
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bug
parent
cec9418d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
20 deletions
+5
-20
apps/home/Tpl/default/Home/exams_w3g.html
+5
-20
No files found.
apps/home/Tpl/default/Home/exams_w3g.html
View file @
eb2cb014
...
...
@@ -125,7 +125,7 @@
</div>
</div>
<div
class=
"class_right layout_center"
>
<div
class=
"button_green layout_center"
>
查看详情
</div>
<div
class=
"button_green layout_center"
@
click=
"onShow(item)"
>
查看详情
</div>
</div>
</div>
<span
style=
"margin-top: 35vh;"
v-if=
"myYiZuo.length == 0"
class=
"text_14_400 color_999999 self_center"
>
没有找到!
</span>
...
...
@@ -203,24 +203,6 @@
<script
type=
"text/javascript"
>
Date
.
prototype
.
Format
=
function
(
fmt
)
{
var
o
=
{
"M+"
:
this
.
getMonth
()
+
1
,
//月份
"d+"
:
this
.
getDate
(),
//日
"H+"
:
this
.
getHours
(),
//小时
"m+"
:
this
.
getMinutes
(),
//分
"s+"
:
this
.
getSeconds
(),
//秒
"q+"
:
Math
.
floor
((
this
.
getMonth
()
+
3
)
/
3
),
//季度
"S"
:
this
.
getMilliseconds
()
//毫秒
};
if
(
/
(
y+
)
/
.
test
(
fmt
))
fmt
=
fmt
.
replace
(
RegExp
.
$1
,
(
this
.
getFullYear
()
+
""
).
substr
(
4
-
RegExp
.
$1
.
length
));
for
(
var
k
in
o
)
if
(
new
RegExp
(
"("
+
k
+
")"
).
test
(
fmt
))
fmt
=
fmt
.
replace
(
RegExp
.
$1
,
(
RegExp
.
$1
.
length
==
1
)
?
(
o
[
k
])
:
((
"00"
+
o
[
k
]).
substr
((
""
+
o
[
k
]).
length
)));
return
fmt
;
}
new
Vue
({
el
:
'#app'
,
data
:
function
()
{
...
...
@@ -409,7 +391,6 @@
if
(
res
.
status
==
1
)
{
let
array
=
res
.
data
.
data
.
length
>
0
?
res
.
data
.
data
:
[]
that
.
myYiZuo
=
[].
concat
(
array
.
map
(
r
=>
{
console
.
log
(
r
.
update_time
,
new
Date
(
r
.
update_time
*
1000
).
Format
(
'yyyy-mm-dd HH:MM:ss'
))
return
{
id
:
r
.
exams_paper_id
,
title
:
r
.
paper_info
.
exams_paper_title
,
...
...
@@ -422,6 +403,10 @@
}
})
},
onShow
:
function
()
{
let
url
=
"{:U('exams/index/examsroom')}"
+
"&paper_id="
+
item
.
id
+
"&joinType=1&review=true"
window
.
location
.
href
=
url
},
//加载我收藏的题
loadMyTi
:
function
()
{
let
that
=
this
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment