diff --git a/src/admin/templets/album_add.htm b/src/admin/templets/album_add.htm index 38b2cb61..1e0500af 100644 --- a/src/admin/templets/album_add.htm +++ b/src/admin/templets/album_add.htm @@ -9,7 +9,6 @@ - diff --git a/src/admin/templets/album_edit.htm b/src/admin/templets/album_edit.htm index 42b12f36..8ef2565c 100644 --- a/src/admin/templets/album_edit.htm +++ b/src/admin/templets/album_edit.htm @@ -9,7 +9,6 @@ - diff --git a/src/static/ckeditor/contents.css b/src/static/ckeditor/contents.css index 0e7b6b11..aa601de6 100644 --- a/src/static/ckeditor/contents.css +++ b/src/static/ckeditor/contents.css @@ -8,7 +8,7 @@ pre{white-space:pre-wrap;word-wrap:break-word;-moz-tab-size:4;tab-size:4} span[lang]{font-style:italic} figure{text-align:center;outline:solid 1px #ccc;background:rgba(0,0,0,0.05);padding:10px;margin:10px 20px;display:inline-block} figure > figcaption{text-align:center;display:block} -img{max-width:100%;border-radius:.5rem} +img{max-width:100%;border-radius:0.5rem} a > img{padding:1px;margin:1px;border:none;outline:1px solid #0782C1} img.right{border:1px solid #ccc;float:right;margin-left:15px;padding:5px} img.left{border:1px solid #ccc;float:left;margin-right:15px;padding:5px} diff --git a/src/static/web/css/admin.album.min.css b/src/static/web/css/admin.album.min.css deleted file mode 100644 index 07b24fd1..00000000 --- a/src/static/web/css/admin.album.min.css +++ /dev/null @@ -1 +0,0 @@ -#btnsubmit{margin:0px 0px 0px 150px}.swfupload{vertical-align:top}.message{margin:10px 0;padding:10px 20px;background:rgb(255,255,204);border:1px solid rgb(255,221,153);overflow:hidden}.picinfo{margin:10px 0;height:30px;line-height:30px}.atlas{float:left;margin-right:10px;margin-bottom:10px;width:220px;height:auto;background:#f8fafb;text-align:center;border-radius:0.5rem}.atlas-head{height:120px}.atlas-head img{margin:0;max-width:220px;max-height:120px;border-radius:0.5rem 0.5rem 0 0!important}.atlas-input{width:220px}.atlas-box{margin:.5rem 0}.atlas-foot input[type=text]{border-radius:0 0 0.5rem 0.5rem!important} \ No newline at end of file diff --git a/src/static/web/css/admin.css b/src/static/web/css/admin.css index 2826ece8..4666f036 100644 --- a/src/static/web/css/admin.css +++ b/src/static/web/css/admin.css @@ -91,6 +91,12 @@ body.menu-show .body-right{left:220px;transition:all 0.5s} .quickselfoot{padding:0.5rem;background:var(--bg);border-top:1px solid var(--gray-300)} .mysource,.mywriter{width:300px;background:var(--white);border:1px solid var(--gray-300);z-index:10001} .column .admin-td{border-bottom:1px solid var(--gray-300)!important} +.atlas{float:left;margin-right:10px;margin-bottom:10px;width:220px;height:auto;background:var(--bg);text-align:center;border-radius:0.5rem} +.atlas-head{height:120px} +.atlas-head img{margin:0;max-width:220px;max-height:120px;border-radius:0.5rem 0.5rem 0 0!important} +.atlas-input{width:220px} +.atlas-box{margin:0.5rem 0} +.atlas-foot input[type=text]{border-radius:0 0 0.5rem 0.5rem!important} .add-tab ul .active{color:var(--blue)} .add-tab li{float:left;width:60px;line-height:30px;cursor:pointer} .nw{float:left;width:160px} diff --git a/src/static/web/js/style.js b/src/static/web/js/style.js index 41432693..ea59937d 100644 --- a/src/static/web/js/style.js +++ b/src/static/web/js/style.js @@ -52,7 +52,7 @@ function DedeConfirm(content = "", title = "确认提示") { backdrop: 'static', show: true }); - $("#DedeModal" + modalID).on('hidden.bs.modal', function (e) { + $("#DedeModal" + modalID).on('hidden.bs.modal', function(e) { $("#DedeModal" + modalID).remove(); }) }) @@ -76,7 +76,7 @@ function ShowMsg(content, ...args) { noClose = true; } } - String.prototype.replaceAll = function (s1, s2) { + String.prototype.replaceAll = function(s1, s2) { return this.replace(new RegExp(s1, "gm"), s2); } footer = footer.replaceAll("~modalID~", modalID); @@ -91,7 +91,7 @@ function ShowMsg(content, ...args) { backdrop: 'static', show: true }); - $("#DedeModal" + modalID).on('hidden.bs.modal', function (e) { + $("#DedeModal" + modalID).on('hidden.bs.modal', function(e) { $("#DedeModal" + modalID).remove(); }) return modalID; @@ -99,7 +99,7 @@ function ShowMsg(content, ...args) { //隐藏并销毁modal function CloseModal(modalID) { $("#" + modalID).modal('hide'); - $("#" + modalID).on('hidden.bs.modal', function (e) { + $("#" + modalID).on('hidden.bs.modal', function(e) { if ($("#" + modalID).length > 0) { $("#" + modalID).remove(); } @@ -136,7 +136,7 @@ function ErrAddSaveDo(modalID) { if (typeof PHPURL === "undefined") { const PHPURL = "/apps"; } - $.post(PHPURL + "/erraddsave.php", parms, function (data) { + $.post(PHPURL + "/erraddsave.php", parms, function(data) { let result = JSON.parse(data); if (result.code === 200) { CloseModal(modalID); diff --git a/src/static/web/js/user.js b/src/static/web/js/user.js index 328d894c..d0abe07b 100644 --- a/src/static/web/js/user.js +++ b/src/static/web/js/user.js @@ -22,7 +22,7 @@ function SelectFile(sform, stype) { $(frm).append(tmp); } $(`#${tmp.id}`).click(); - $(`#${tmp.id}`).off('change').change(function (val) { + $(`#${tmp.id}`).off('change').change(function(val) { const f = val.target.files[0]; var formData = new FormData(); var fileData = f; @@ -33,14 +33,14 @@ function SelectFile(sform, stype) { data: formData, processData: false, contentType: false, - success: function (result) { + success: function(result) { if (result.code === 0) { $(ipt).val(result.data); } else { ShowMsg("文件上传失败,错误原因:"+result.error.message); } }, - error: function (xhr, status, error) { + error: function(xhr, status, error) { ShowMsg("文件上传失败");//处理上传失败后的回调 } });