glcc safari兼容问题

This commit is contained in:
谢思 2023-05-04 15:40:55 +08:00
parent d2258067eb
commit 6db2266fe4
3 changed files with 19 additions and 1 deletions

14
package-lock.json generated
View File

@ -4561,6 +4561,11 @@
"integrity": "sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg==",
"dev": true
},
"cssfilter": {
"version": "0.0.10",
"resolved": "http://173.15.15.82:8081/repository/npm-all/cssfilter/-/cssfilter-0.0.10.tgz",
"integrity": "sha512-FAaLDaplstoRsDR8XGYH51znUN0UY7nMc6Z9/fvE8EXGwvJE9hu7W2vHwx1+bd6gCYnln9nLbzxFTrcO9YQDZw=="
},
"cssnano": {
"version": "4.1.11",
"resolved": "http://173.15.15.82:8081/repository/npm-all/cssnano/-/cssnano-4.1.11.tgz",
@ -21771,6 +21776,15 @@
"resolved": "http://173.15.15.82:8081/repository/npm-all/xmlchars/-/xmlchars-2.2.0.tgz",
"integrity": "sha512-JZnDKK8B0RCDw84FNdDAIpZK+JuJw+s7Lz8nksI7SIuU3UXJJslUthsi+uWBUYOwPFwW7W7PRLRfUKpxjtjFCw=="
},
"xss": {
"version": "1.0.14",
"resolved": "http://173.15.15.82:8081/repository/npm-all/xss/-/xss-1.0.14.tgz",
"integrity": "sha512-og7TEJhXvn1a7kzZGQ7ETjdQVS2UfZyTlsEdDOqvQF7GoxNfY+0YLCzBy1kPdsDDx4QuNAonQPddpsn6Xl/7sw==",
"requires": {
"commander": "^2.20.3",
"cssfilter": "0.0.10"
}
},
"xtend": {
"version": "4.0.2",
"resolved": "http://173.15.15.82:8081/repository/npm-all/xtend/-/xtend-4.0.2.tgz",

View File

@ -185,6 +185,7 @@
}
.introduceBox{
display: flex;
align-items: center;
.introduceImg{
width: 32vw;
margin-left: 3vw;

View File

@ -99,7 +99,10 @@ const Glcc = (propsF) => {
//
function judge(nowTime, timeRnge){
const timeArr = timeRnge.split(",").map(item=>{return new Date(item).getTime()});
const timeArr = timeRnge.split(",").map(item=>{
const data = item && item.replaceAll('-', '/');
return new Date(data).getTime()
});
return nowTime > timeArr[0] && nowTime < timeArr[1]
}