|
@@ -15,8 +15,7 @@ const {
|
|
|
config,
|
|
|
getUrlArgObject,
|
|
|
openNewWin,
|
|
|
- Toast,
|
|
|
- Toasts
|
|
|
+ Toast
|
|
|
} = require('./promise.js');
|
|
|
const $ = require("jquery");
|
|
|
require("./jquery-migrate");
|
|
@@ -318,15 +317,14 @@ function getchecks() {
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
-function isNumber(val) {
|
|
|
-
|
|
|
- var regPos = /^\d+(\.\d+)?$/; //非负浮点数
|
|
|
- var regNeg = /^(-(([0-9]+\.[0-9]*[1-9][0-9]*)|([0-9]*[1-9][0-9]*\.[0-9]+)|([0-9]*[1-9][0-9]*)))$/; //负浮点数
|
|
|
- if (regPos.test(val) && regNeg.test(val)) {
|
|
|
- return true;
|
|
|
- } else {
|
|
|
- return false;
|
|
|
- }
|
|
|
+function Toasts(mess) {
|
|
|
+ var str = `<div id="mess"><img class="warn" style="margin-right:14px" src=${warn}/><span></span></div>`;
|
|
|
+ $("body").append(str);
|
|
|
+ $("#mess").fadeIn().find("span").html(mess);
|
|
|
+ document.getElementById("mess").style.cssText = "display:flex;align-items:center;max-width:60%;min-width: 150px;padding:0 14px;height: 30px;color: #FFB609;line-height: 30px;text-align: center;border-radius: 4px;position: fixed;top: 75px;left: 50%;transform: translate(-50%, -50%);z-index: 999999;background: #FDF6EA;font-size: 16px;";
|
|
|
+ setTimeout(function () {
|
|
|
+ $("#mess").fadeOut();
|
|
|
+ }, 1000)
|
|
|
|
|
|
}
|
|
|
function getResult(pushInfo, textType) {
|