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
b749c2d2
Commit
b749c2d2
authored
May 20, 2020
by
陈超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
A
parent
becef30d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
1 deletions
+21
-1
addons/theme/stv1/_static_w3g/js/extension.js
+20
-0
apps/news/Tpl/default/Topic/index_w3g.html
+1
-1
No files found.
addons/theme/stv1/_static_w3g/js/extension.js
View file @
b749c2d2
...
@@ -137,4 +137,23 @@ Array.prototype.hx_swap = function(r, l, handler) {
...
@@ -137,4 +137,23 @@ Array.prototype.hx_swap = function(r, l, handler) {
Array
.
prototype
.
hx_lastIndex
=
function
()
{
Array
.
prototype
.
hx_lastIndex
=
function
()
{
return
this
.
length
>
0
?
this
.
length
-
1
:
0
return
this
.
length
>
0
?
this
.
length
-
1
:
0
}
Date
.
prototype
.
format
=
function
(
fmt
)
{
//author: meizz
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
;
}
}
\ No newline at end of file
apps/news/Tpl/default/Topic/index_w3g.html
View file @
b749c2d2
...
@@ -100,7 +100,7 @@
...
@@ -100,7 +100,7 @@
return
{
return
{
id
:
r
.
id
,
id
:
r
.
id
,
title
:
r
.
title
,
title
:
r
.
title
,
time
:
new
Date
(
r
.
dateline
).
format
(
"yyyy-
mm
-dd"
)
time
:
new
Date
(
r
.
dateline
).
format
(
"yyyy-
MM
-dd"
)
}
}
}))
}))
}
}
...
...
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