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
9b368a77
Commit
9b368a77
authored
Jun 24, 2021
by
maolipeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:过期提醒优化
parent
761f9c24
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
13 deletions
+23
-13
src/modules/root/CollegeManagePage.jsx
+23
-13
No files found.
src/modules/root/CollegeManagePage.jsx
View file @
9b368a77
...
@@ -30,26 +30,35 @@ function ExpirationPopover(props) {
...
@@ -30,26 +30,35 @@ function ExpirationPopover(props) {
return
return
}
}
//即将过期
//即将过期
if
(
props
.
surplusDayTime
===
30
)
{
if
(
props
.
surplusDayTime
===
30
||
props
.
surplusDayTime
<=
7
)
{
if
(
storage
.
get
(
"expiration_tip"
+
User
.
getUserId
()
+
"_thirty"
)
==
null
||
storage
.
get
(
"expiration_tip"
+
User
.
getUserId
()
+
"_thirty"
)
===
"true"
)
{
let
daysflag
=
storage
.
get
(
"expiration_tip"
+
User
.
getUserId
()
+
"_days"
)
setShowType
(
1
)
if
(
daysflag
===
null
||
daysflag
!==
moment
().
format
(
"YYYYMMDD"
))
{
}
return
}
if
(
props
.
surplusDayTime
<=
7
)
{
let
daysflag
=
storage
.
getObj
(
"expiration_tip"
+
User
.
getUserId
()
+
"_7day"
);
if
(
!
daysflag
)
{
setShowType
(
2
)
return
}
if
(
daysflag
[
props
.
surplusDayTime
-
1
]
===
0
)
{
setShowType
(
2
)
setShowType
(
2
)
}
}
}
}
// if (props.surplusDayTime === 30) {
// if (storage.get("expiration_tip"+User.getUserId()+"_thirty") == null || storage.get("expiration_tip"+User.getUserId()+"_thirty") === "true") {
// setShowType(1)
// }
// return
// }
// if (props.surplusDayTime <= 7) {
// let daysflag = storage.getObj("expiration_tip"+User.getUserId()+"_7day");
// if (!daysflag) {
// setShowType(2)
// return
// }
// if (daysflag[props.surplusDayTime - 1] === 0) {
// setShowType(2)
// }
// }
},[
props
.
endTime
,
props
.
surplusDayTime
])
},[
props
.
endTime
,
props
.
surplusDayTime
])
function
iknow
()
{
function
iknow
()
{
storage
.
set
(
"expiration_tip_login"
,
false
)
storage
.
set
(
"expiration_tip"
+
User
.
getUserId
()
+
"_days"
,
moment
().
format
(
"YYYYMMDD"
))
/*
if (props.surplusDayTime === 0 ) {
if (props.surplusDayTime === 0 ) {
//已过期
//已过期
storage.set("expiration_tip_login",false)
storage.set("expiration_tip_login",false)
...
@@ -60,6 +69,7 @@ function ExpirationPopover(props) {
...
@@ -60,6 +69,7 @@ function ExpirationPopover(props) {
daysflag[props.surplusDayTime - 1] = 1
daysflag[props.surplusDayTime - 1] = 1
storage.setObj("expiration_tip"+User.getUserId()+"_7day",daysflag)
storage.setObj("expiration_tip"+User.getUserId()+"_7day",daysflag)
}
}
*/
setShowType
(
0
)
setShowType
(
0
)
}
}
...
...
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