Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
xiaomai-cloud-class-web
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
xiaomai-cloud-class
xiaomai-cloud-class-web
Commits
6ae29f73
Commit
6ae29f73
authored
Jul 01, 2021
by
maolipeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:到期提醒时间格式修改
parent
bd13213b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
src/modules/home/HomeTip.tsx
+2
-1
src/modules/root/CollegeManagePage.jsx
+1
-1
No files found.
src/modules/home/HomeTip.tsx
View file @
6ae29f73
...
@@ -3,6 +3,7 @@ import "./HomeTip.less"
...
@@ -3,6 +3,7 @@ import "./HomeTip.less"
import
{
VersionContext
}
from
"@/store/context"
;
import
{
VersionContext
}
from
"@/store/context"
;
import
ContactWidget
from
'@/components/ContactWidget'
;
import
ContactWidget
from
'@/components/ContactWidget'
;
import
{
Carousel
}
from
"antd"
;
import
{
Carousel
}
from
"antd"
;
import
moment
from
"moment"
;
export
default
function
HomeTip
()
{
export
default
function
HomeTip
()
{
...
@@ -43,7 +44,7 @@ export default function HomeTip() {
...
@@ -43,7 +44,7 @@ export default function HomeTip() {
{
{
tipType
===
2
&&
(
tipType
===
2
&&
(
<
div
className=
"content"
>
<
div
className=
"content"
>
<
span
className=
"icon iconfont"
style=
{
{
color
:
"#FF4F4F"
,
marginRight
:
"8px"
}
}
>

</
span
>
版本到期提醒:当前企业购买的小麦企学院服务已于
{
expirationTime
}
到期,到期后仍可访问,但功能不可使用,建议尽快续费购买哦~
<
span
className=
"icon iconfont"
style=
{
{
color
:
"#FF4F4F"
,
marginRight
:
"8px"
}
}
>

</
span
>
版本到期提醒:当前企业购买的小麦企学院服务已于
{
moment
(
versionInfo
?.
validEndTimeST
).
format
(
"YYYY-MM-DD HH:mm:ss"
)
}
到期,到期后仍可访问,但功能不可使用,建议尽快续费购买哦~
<
ContactWidget
placement=
"bottom"
trigger=
"hover"
><
div
className=
"renew-btn"
>
立即续费
</
div
></
ContactWidget
>
<
ContactWidget
placement=
"bottom"
trigger=
"hover"
><
div
className=
"renew-btn"
>
立即续费
</
div
></
ContactWidget
>
</
div
>
</
div
>
)
)
...
...
src/modules/root/CollegeManagePage.jsx
View file @
6ae29f73
...
@@ -85,7 +85,7 @@ function ExpirationPopover(props) {
...
@@ -85,7 +85,7 @@ function ExpirationPopover(props) {
<
div
className=
"title"
>
{
props
.
surplusDayTime
===
0
?
"服务已到期"
:
"服务到期提醒"
}
</
div
>
<
div
className=
"title"
>
{
props
.
surplusDayTime
===
0
?
"服务已到期"
:
"服务到期提醒"
}
</
div
>
{
{
showType
===
3
?
(
showType
===
3
?
(
<
div
className=
"tip-text"
>
当前企业购买的小麦企学院服务已于
<
span
style=
{
{
color
:
"#FF4F4F"
}
}
>
{
moment
(
props
.
endTime
).
format
(
"YYYY-MM-DD"
)
}
</
span
>
到期,到期后仍可访问,但功能不可使用,建议尽快续费购买哦~
</
div
>
<
div
className=
"tip-text"
>
当前企业购买的小麦企学院服务已于
<
span
style=
{
{
color
:
"#FF4F4F"
}
}
>
{
moment
(
props
.
endTime
).
format
(
"YYYY-MM-DD
HH:mm:ss
"
)
}
</
span
>
到期,到期后仍可访问,但功能不可使用,建议尽快续费购买哦~
</
div
>
)
:
(
)
:
(
<
div
className=
"tip-text"
>
当前企业购买的小麦企学院服务
<
span
style=
{
{
color
:
"#FF4F4F"
}
}
>
仅剩
{
props
.
surplusDayTime
}
天
</
span
>
(于
<
span
>
{
moment
(
props
.
endTime
).
format
(
"YYYY-MM-DD"
)
}
</
span
>
到期),为了不影响使用,建议尽快续费购买哦~
</
div
>
<
div
className=
"tip-text"
>
当前企业购买的小麦企学院服务
<
span
style=
{
{
color
:
"#FF4F4F"
}
}
>
仅剩
{
props
.
surplusDayTime
}
天
</
span
>
(于
<
span
>
{
moment
(
props
.
endTime
).
format
(
"YYYY-MM-DD"
)
}
</
span
>
到期),为了不影响使用,建议尽快续费购买哦~
</
div
>
)
)
...
...
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