You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

74 lines
1.5 KiB
JavaScript

export const phoneNum = /^((1)|(\\+861)|(861))[0-9]{10}$/;
export const email = /^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/;
// export const http = "https://www.decaisoft.com:443/";
// export const https = "https://www.decaisoft.com:443/img";
export const http = "http://139.9.58.205:21/img/";
export const https = "http://139.9.58.205:8077/tydFile/";
var month = "";
if (new Date().getMonth() + 1 < 10) {
month = "0" + (new Date().getMonth() + 1);
} else {
month = new Date().getMonth() + 1;
dabao;
}
var day = "";
if (new Date().getDate() < 10) {
day = "0" + new Date().getDate();
} else {
day = new Date().getDate();
}
var hours = "";
if (new Date().getHours() < 10) {
hours = "0" + new Date().getHours();
} else {
hours = new Date().getHours();
}
var Min = null;
if (new Date().getMinutes() < 10) {
Min = "0" + new Date().getMinutes();
} else {
Min = new Date().getMinutes();
}
var seconds = null;
if (new Date().getSeconds() < 10) {
seconds = "0" + new Date().getSeconds();
} else {
seconds = new Date().getSeconds();
}
export const date =
new Date().getFullYear() +
"" +
month +
"" +
day +
"" +
hours +
"" +
Min +
"" +
seconds;
export const dates =
new Date().getFullYear() +
"/" +
month +
"/" +
day +
" " +
hours +
":" +
Min +
":" +
seconds;
export const dayStatisticDate =
new Date().getFullYear() + "-" + month + "-" + new Date().getDate();
export const months = new Date().getFullYear() + "-" + month + "";