瀏覽代碼

时间修改

wyq 3 年之前
父節點
當前提交
d4358cf8c0
共有 3 個文件被更改,包括 3 次插入3 次删除
  1. 1 1
      src/js/informationOut.js
  2. 1 1
      src/js/promise.js
  3. 1 1
      src/js/staticInfo.js

+ 1 - 1
src/js/informationOut.js

@@ -471,7 +471,7 @@ function getResult(pushInfo, textType) {
         $(".foot").css('display', 'block')
       }
     } else {
-      Toast('温馨提示:必填选项不能为空~', 500000, 'warn')
+      Toast('温馨提示:必填选项不能为空~', 500, 'warn')
     }
   })
   $(".printing").hover(

+ 1 - 1
src/js/promise.js

@@ -348,7 +348,7 @@ const Toast = function (msg, duration,type) {
     m.innerHTML = '<div style="margin:auto"><img class="warn" style="width:32px;margin-right:14px;float:left" src="./../images/icon-success.png" /><span>' + msg +'</span></div>'
   }
   
-  m.style.cssText = "width:300px;margin-left:-150px;display:flex;vertical-align:middle;padding:25px 14px;height: 30px;color: #fff;line-height: 30px;text-align: center;border-radius: 8px;position: fixed;top: 50%;left: 50%;transform: translate(-50%, -50%);z-index: 999999;background: #333;font-size: 16px;";
+  m.style.cssText = "display:flex;vertical-align:middle;padding:25px 14px;height: 30px;color: #fff;line-height: 30px;text-align: center;border-radius: 8px;position: fixed;top: 50%;left: 50%;transform: translate(-50%, -50%);z-index: 999999;background: #333;font-size: 16px;";
   $('.warn').css('margin-top','10px')
   document.body.appendChild(m);
   setTimeout(function () {

+ 1 - 1
src/js/staticInfo.js

@@ -411,7 +411,7 @@ function getResult(pushInfo, textType) {
         $(".foot").css('display', 'block')
       }
     } else {
-      Toast('温馨提示:必填选项不能为空~', 500000, 'warn')
+      Toast('温馨提示:必填选项不能为空~', 500, 'warn')
     }
   })
   $(".printing").hover(