Showing
2 changed files
with
5 additions
and
10 deletions
@@ -458,20 +458,16 @@ layui.extend({ | @@ -458,20 +458,16 @@ layui.extend({ | ||
458 | imgUrl="/src/style/img/fault.png"; | 458 | imgUrl="/src/style/img/fault.png"; |
459 | } | 459 | } |
460 | if(toastType=='faultprogress'){ | 460 | if(toastType=='faultprogress'){ |
461 | - imgUrl="/src/style/img/faultprogress.png"; | 461 | + imgUrl="/src/style/img/faultover.png"; |
462 | } | 462 | } |
463 | if(toastType=='faultover'){ | 463 | if(toastType=='faultover'){ |
464 | - imgUrl="/src/style/img/faultover.png"; | 464 | + imgUrl="/src/style/img/faultprogress.png"; |
465 | } | 465 | } |
466 | setTimeout(function () { | 466 | setTimeout(function () { |
467 | new msgTips({ | 467 | new msgTips({ |
468 | dom: ".right-bottom-tips", | 468 | dom: ".right-bottom-tips", |
469 | title: title, | 469 | title: title, |
470 | - message: `<p style="line-height: 24px;background: url(${imgUrl}) no-repeat;background-size: 100%;height: 160px;padding: 10px;background-position-x: right;padding-left: 29px;padding-top: 145px;"> | ||
471 | - <span class="title closeFault" style="position: relative;top: -75px;left: 170px;">X</span> | ||
472 | - <span style="position: relative;left: 35px;top: -21px; font-weight: bold;">${title}</span> | ||
473 | - ${content} | ||
474 | - </p>`, | 470 | + message: `<p style="line-height: 24px;background: url(${imgUrl}) no-repeat;background-size: 100%;height: 160px;background-position-x: right;padding-left: 25px;padding-top: 145px;"><span >${content}</span><span class="title closeFault" style="position: relative;top: -126px;left: 22px;">X</span><span style="position: relative;left: -89px;top: -96px; font-weight: bold;float: right;">${title}</span></p>`, |
475 | duration: 10000, | 471 | duration: 10000, |
476 | space: 10, | 472 | space: 10, |
477 | firstSpace: 8, | 473 | firstSpace: 8, |
@@ -489,7 +485,6 @@ layui.extend({ | @@ -489,7 +485,6 @@ layui.extend({ | ||
489 | //} | 485 | //} |
490 | } | 486 | } |
491 | }) | 487 | }) |
492 | - | ||
493 | }, delay); | 488 | }, delay); |
494 | }else{ | 489 | }else{ |
495 | setTimeout(function () { | 490 | setTimeout(function () { |
@@ -98,7 +98,7 @@ layui.define(['layer', 'laytpl', 'form'], function (exports) { | @@ -98,7 +98,7 @@ layui.define(['layer', 'laytpl', 'form'], function (exports) { | ||
98 | $(options.dom).append(newContainer); | 98 | $(options.dom).append(newContainer); |
99 | } else if(options.toastType=='faultinfo'||options.toastType=='faultprogress'||options.toastType=='faultover'){ | 99 | } else if(options.toastType=='faultinfo'||options.toastType=='faultprogress'||options.toastType=='faultover'){ |
100 | 100 | ||
101 | - var container = "<div class='fault_ez_tips "+options.toastType+"' style="+firstDirection+":"+options.margin+"px;transform:translateX("+minus+"110%);width: 226px;bottom: 8px !important; ></div>" | 101 | + var container = "<div class='fault_ez_tips "+options.toastType+"' style="+firstDirection+":"+options.margin+"px;transform:translateX("+minus+"110%); ></div>" |
102 | 102 | ||
103 | // var head = "<div class='faultTitle faultClearfix'><i class='faultTips_icon_l fl'></i><i class='FaultTips_icon_r close'></i></div>"; | 103 | // var head = "<div class='faultTitle faultClearfix'><i class='faultTips_icon_l fl'></i><i class='FaultTips_icon_r close'></i></div>"; |
104 | var head = ""; | 104 | var head = ""; |
@@ -127,7 +127,7 @@ layui.define(['layer', 'laytpl', 'form'], function (exports) { | @@ -127,7 +127,7 @@ layui.define(['layer', 'laytpl', 'form'], function (exports) { | ||
127 | 'transition-timing-function':options.timingFun, | 127 | 'transition-timing-function':options.timingFun, |
128 | // 'width':options.width, | 128 | // 'width':options.width, |
129 | 'width':'226px', | 129 | 'width':'226px', |
130 | - 'bottom':'8px' | 130 | + 'bottom':'620px' |
131 | }); | 131 | }); |
132 | var height = $(newContainer).outerHeight(true); | 132 | var height = $(newContainer).outerHeight(true); |
133 | var len = $('.fault_ez_tips').size(); | 133 | var len = $('.fault_ez_tips').size(); |
-
Please register or login to post a comment