Commit 74a5a304 authored by 刘明珠's avatar 刘明珠

myAlert:样式调整

parent 1fcef14a
...@@ -45,7 +45,7 @@ function getIEVersion() { ...@@ -45,7 +45,7 @@ function getIEVersion() {
//封装等待框 //封装等待框
(function($) { (function($) {
var renderHtml = function() { var renderHtml = function() {
var _html = '<div id="loadingDiv" style="display: none; cursor:progress;"><div id="over" style=" position: absolute;top: 0;left: 0; width: 100%;height: 100%; background-color: #f5f5f5;opacity:0.5;z-index: 9999991;"></div><div id="layout" style="position: absolute;top: 40%; left: 40%;width: 20%; height: 20%; z-index: 9999999;text-align:center;"><img id="showloading" src="/web/onlineReport/static/tools/images/loading2.gif" /></div></div>'; var _html = '<div id="loadingDiv" style="display: none; cursor:progress;"><div id="over" style=" position: absolute;top: 0;left: 0; width: 100%;height: 100%; background-color: #f5f5f5;opacity:0.5;z-index: 9999991;"></div><div id="layout" style="position: absolute;top: 40%; left: 40%;width: 20%; height: 20%; z-index: 9999999;text-align:center;"><img id="showloading" src="../../static/tools/images/loading2.gif" /></div></div>';
$("body").append(_html); $("body").append(_html);
} }
renderHtml(); renderHtml();
...@@ -98,7 +98,7 @@ function getIEVersion() { ...@@ -98,7 +98,7 @@ function getIEVersion() {
var _html = ""; var _html = "";
_html += '<div id="mb_box"></div><div id="mb_con"><span id="mb_tit">' + title + '</span>' _html += '<div id="mb_box"></div><div id="mb_con"><span id="mb_tit">' + title + '</span>'
if (type == "confirm") { if (type == "confirm") {
_html += '<img id="mb_img" src="/web/onlineReport/static/tools/images/close.png">'; _html += '<img id="mb_img" src="../../static/tools/images/close.png">';
_html += '<div id="mb_msg">' + msg + '</div>'; _html += '<div id="mb_msg">' + msg + '</div>';
} }
if (type == "alert") { if (type == "alert") {
...@@ -222,7 +222,7 @@ function getIEVersion() { ...@@ -222,7 +222,7 @@ function getIEVersion() {
float: 'left', float: 'left',
width: '92%', width: '92%',
display: 'block', display: 'block',
fontSize: '14px', fontSize: '16px',
color: '#444', color: '#444',
padding: '10px 15px', padding: '10px 15px',
backgroundColor: '#fff', backgroundColor: '#fff',
...@@ -249,12 +249,13 @@ function getIEVersion() { ...@@ -249,12 +249,13 @@ function getIEVersion() {
$("#mb_msg").css({ $("#mb_msg").css({
clear: 'both', clear: 'both',
padding: '30px', padding: '20px',
lineHeight: '40px', lineHeight: '30px',
textAlign: 'left', textAlign: 'left',
fontSize: '16px', fontSize: '16px',
color: '#4c4c4c', color: '#4c4c4c',
marginBottom: '50px', marginBottom: '50px',
textIndent: '2em'
}); });
$("#mb_ico").css({ $("#mb_ico").css({
...@@ -363,11 +364,11 @@ function alertBox(type, msg, showTime, callBack) { ...@@ -363,11 +364,11 @@ function alertBox(type, msg, showTime, callBack) {
var srcUrl; var srcUrl;
var divCss = "alert alert-" + type + " alert-dismissable"; var divCss = "alert alert-" + type + " alert-dismissable";
if (type == "success") { if (type == "success") {
srcUrl = '/web/onlineReport/static/tools/images/smile.png'; srcUrl = '../../static/tools/images/smile.png';
} else if (type == "info") { } else if (type == "info") {
srcUrl = '/web/onlineReport/static/tools/images/tan.png'; srcUrl = '../../static/tools/images/tan.png';
} else { } else {
srcUrl = '/web/onlineReport/static/tools/images/tan1.png'; srcUrl = '../../static/tools/images/tan1.png';
} }
if (showTime == null) showTime = 3000; if (showTime == null) showTime = 3000;
var divAlertBox; var divAlertBox;
...@@ -433,7 +434,7 @@ function alertDanger(msg, showTime, callBack) { ...@@ -433,7 +434,7 @@ function alertDanger(msg, showTime, callBack) {
} }
function alertBoxHide() { function alertBoxHide() {
// $("#divConfirmBox").fadeOut(1000); $("#divAlertBox").fadeOut(1000);
$("#divAlertBoxCover").remove(); $("#divAlertBoxCover").remove();
alertBoxArr.shift(); alertBoxArr.shift();
completedOk = false; completedOk = false;
...@@ -441,7 +442,9 @@ function alertBoxHide() { ...@@ -441,7 +442,9 @@ function alertBoxHide() {
setTimeout(function() { setTimeout(function() {
alertBox(alertBoxArr[0].type, alertBoxArr[0].msg, alertBoxArr[0].showTime, alertBoxArr[0].callBack); alertBox(alertBoxArr[0].type, alertBoxArr[0].msg, alertBoxArr[0].showTime, alertBoxArr[0].callBack);
}, 500); }, 500);
}; }else{
// window.close();
}
} }
function box(jqObj) { function box(jqObj) {
...@@ -494,17 +497,17 @@ function box(jqObj) { ...@@ -494,17 +497,17 @@ function box(jqObj) {
content += "<div class='container-pageBtn-control'>"; content += "<div class='container-pageBtn-control'>";
//content += "<a class='prePageOne'><<</a>"; //content += "<a class='prePageOne'><<</a>";
//content += "<a class='prePage'><</a>"; //content += "<a class='prePage'><</a>";
content += "<img class='prePageFF' src='/web/onlineReport/static/tools/images/pagination_first.gif'/>"; content += "<img class='prePageFF' src='../../static/tools/images/pagination_first.gif'/>";
content += "<img class='prePageF' src='/web/onlineReport/static/tools/images/pagination_prev.gif'>"; content += "<img class='prePageF' src='../../static/tools/images/pagination_prev.gif'>";
content += "<input class='select-input-page margin-top' value='" + current + "'></a>"; content += "<input class='select-input-page margin-top' value='" + current + "'></a>";
//content += "<a class='nextPage'>></a>"; //content += "<a class='nextPage'>></a>";
//content += "<a class='prePageLast'>>></a>"; //content += "<a class='prePageLast'>>></a>";
content += "<img class='prePageL' src='/web/onlineReport/static/tools/images/pagination_next.gif'/>"; content += "<img class='prePageL' src='../../static/tools/images/pagination_next.gif'/>";
content += "<img class='prePageLL' src='/web/onlineReport/static/tools/images/pagination_last.gif'>"; content += "<img class='prePageLL' src='../../static/tools/images/pagination_last.gif'>";
content += "</div>"; content += "</div>";
//content += "<img class='page-refresh-btn' src='/web/onlineReport/static/tools/images/pagination_load.png'/>"; //content += "<img class='page-refresh-btn' src='../../static/tools/images/pagination_load.png'/>";
//content += "<span class='totalSize'> 共<span>" + totalNum + "</span>条记录 </span>"; //content += "<span class='totalSize'> 共<span>" + totalNum + "</span>条记录 </span>";
me.element.html(content); me.element.html(content);
}, },
...@@ -1210,7 +1213,7 @@ var JSTOOL = function() { ...@@ -1210,7 +1213,7 @@ var JSTOOL = function() {
function init() { function init() {
var $loading = $("<div></div>"); var $loading = $("<div></div>");
$loading.addClass("table-body-loading"); $loading.addClass("table-body-loading");
$loading.html("<div> <img src='/web/onlineReport/static/tools/images/loading2.gif' alt=''/><div>"); $loading.html("<div> <img src='../../static/tools/images/loading2.gif' alt=''/><div>");
var html = "<div class='table-responsive' style='width:" + tableObj.containerWidth + "'>" + var html = "<div class='table-responsive' style='width:" + tableObj.containerWidth + "'>" +
"<div class='table-header-container' style='height:44px;'>" "<div class='table-header-container' style='height:44px;'>"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment