Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
梁建民
/
activity
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
0087062a
authored
Jul 31, 2025
by
liangjianmin
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Update year display in visualizations to dynamically show the current year
parent
e16fb89b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
4 deletions
js/vis/index.js
vis.html
js/vis/index.js
View file @
0087062a
...
...
@@ -209,6 +209,12 @@
$
(
"#month"
).
text
((
month
<
10
)
?
(
'0'
+
month
)
:
month
);
$
(
"#day"
).
text
((
day
<
10
)
?
(
'0'
+
day
)
:
day
);
$
(
"#week"
).
text
(
week
[
weekDay
]);
// 动态设置年份显示
$
(
"#current_year_1"
).
text
(
year
);
$
(
"#current_year_2"
).
text
(
year
);
$
(
"#current_year_3"
).
text
(
year
);
$
(
"#current_year_4"
).
text
(
year
);
$
.
ajax
({
url
:
"http://wthrcdn.etouch.cn/weather_mini?city=深圳"
,
dataType
:
'json'
,
...
...
vis.html
View file @
0087062a
...
...
@@ -41,11 +41,11 @@
<div
class=
"data-left"
>
<div
class=
"box mb47"
>
<div
class=
"echarts"
id=
"daily_pv"
></div>
<b
class=
"title row rowCenter verCenter"
>
日均访问量PV (2016-
2024
)
</b>
<b
class=
"title row rowCenter verCenter"
>
日均访问量PV (2016-
<span
id=
"current_year_1"
></span>
)
</b>
</div>
<div
class=
"box mb47"
>
<div
class=
"echarts"
id=
"daily_active_users"
></div>
<b
class=
"title row rowCenter verCenter"
>
日均活跃用户 (2016-
2024
)
</b>
<b
class=
"title row rowCenter verCenter"
>
日均活跃用户 (2016-
<span
id=
"current_year_2"
></span>
)
</b>
</div>
<div
class=
"boxs"
>
<div
class=
"echarts"
id=
"customer_application"
></div>
...
...
@@ -55,11 +55,11 @@
<div
class=
"data-right"
>
<div
class=
"box mb47"
>
<div
class=
"echarts"
id=
"daily_order_users"
></div>
<b
class=
"title row rowCenter verCenter"
>
日均下单用户 (2016-
2024
)
</b>
<b
class=
"title row rowCenter verCenter"
>
日均下单用户 (2016-
<span
id=
"current_year_3"
></span>
)
</b>
</div>
<div
class=
"box mb20"
>
<div
class=
"echarts"
id=
"daily_order"
></div>
<b
class=
"title row rowCenter verCenter"
>
日均订单数 (2016-
2024
)
</b>
<b
class=
"title row rowCenter verCenter"
>
日均订单数 (2016-
<span
id=
"current_year_4"
></span>
)
</b>
</div>
<div
class=
"boxs media"
>
<p
class=
"t1"
>
猎芯旗下自媒体:
</p>
...
...
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