|
@@ -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 () {
|