| @@ -9,7 +9,6 @@ | |||||
| <link rel="stylesheet" href="/static/web/css/admin.css"> | <link rel="stylesheet" href="/static/web/css/admin.css"> | ||||
| <link rel="stylesheet" href="/static/web/css/daterangepicker.css"> | <link rel="stylesheet" href="/static/web/css/daterangepicker.css"> | ||||
| <link rel="stylesheet" href="/static/web/css/cropper.min.css"> | <link rel="stylesheet" href="/static/web/css/cropper.min.css"> | ||||
| <link rel="stylesheet" href="/static/web/css/admin.album.min.css"> | |||||
| <script>const cfg_uplitpic_cut = '<?php echo $cfg_uplitpic_cut;?>';</script> | <script>const cfg_uplitpic_cut = '<?php echo $cfg_uplitpic_cut;?>';</script> | ||||
| <script src="/static/web/js/jquery.min.js"></script> | <script src="/static/web/js/jquery.min.js"></script> | ||||
| <script src="/static/web/js/bootstrap.min.js"></script> | <script src="/static/web/js/bootstrap.min.js"></script> | ||||
| @@ -9,7 +9,6 @@ | |||||
| <link rel="stylesheet" href="/static/web/css/admin.css"> | <link rel="stylesheet" href="/static/web/css/admin.css"> | ||||
| <link rel="stylesheet" href="/static/web/css/daterangepicker.css"> | <link rel="stylesheet" href="/static/web/css/daterangepicker.css"> | ||||
| <link rel="stylesheet" href="/static/web/css/cropper.min.css"> | <link rel="stylesheet" href="/static/web/css/cropper.min.css"> | ||||
| <link rel="stylesheet" href="/static/web/css/admin.album.min.css"> | |||||
| <script>const cfg_uplitpic_cut = '<?php echo $cfg_uplitpic_cut;?>';</script> | <script>const cfg_uplitpic_cut = '<?php echo $cfg_uplitpic_cut;?>';</script> | ||||
| <script src="/static/web/js/jquery.min.js"></script> | <script src="/static/web/js/jquery.min.js"></script> | ||||
| <script src="/static/web/js/bootstrap.min.js"></script> | <script src="/static/web/js/bootstrap.min.js"></script> | ||||
| @@ -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} | 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{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} | 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} | 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.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} | img.left{border:1px solid #ccc;float:left;margin-right:15px;padding:5px} | ||||
| @@ -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} | |||||
| @@ -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)} | .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} | .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} | .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 ul .active{color:var(--blue)} | ||||
| .add-tab li{float:left;width:60px;line-height:30px;cursor:pointer} | .add-tab li{float:left;width:60px;line-height:30px;cursor:pointer} | ||||
| .nw{float:left;width:160px} | .nw{float:left;width:160px} | ||||
| @@ -52,7 +52,7 @@ function DedeConfirm(content = "", title = "确认提示") { | |||||
| backdrop: 'static', | backdrop: 'static', | ||||
| show: true | show: true | ||||
| }); | }); | ||||
| $("#DedeModal" + modalID).on('hidden.bs.modal', function (e) { | |||||
| $("#DedeModal" + modalID).on('hidden.bs.modal', function(e) { | |||||
| $("#DedeModal" + modalID).remove(); | $("#DedeModal" + modalID).remove(); | ||||
| }) | }) | ||||
| }) | }) | ||||
| @@ -76,7 +76,7 @@ function ShowMsg(content, ...args) { | |||||
| noClose = true; | noClose = true; | ||||
| } | } | ||||
| } | } | ||||
| String.prototype.replaceAll = function (s1, s2) { | |||||
| String.prototype.replaceAll = function(s1, s2) { | |||||
| return this.replace(new RegExp(s1, "gm"), s2); | return this.replace(new RegExp(s1, "gm"), s2); | ||||
| } | } | ||||
| footer = footer.replaceAll("~modalID~", modalID); | footer = footer.replaceAll("~modalID~", modalID); | ||||
| @@ -91,7 +91,7 @@ function ShowMsg(content, ...args) { | |||||
| backdrop: 'static', | backdrop: 'static', | ||||
| show: true | show: true | ||||
| }); | }); | ||||
| $("#DedeModal" + modalID).on('hidden.bs.modal', function (e) { | |||||
| $("#DedeModal" + modalID).on('hidden.bs.modal', function(e) { | |||||
| $("#DedeModal" + modalID).remove(); | $("#DedeModal" + modalID).remove(); | ||||
| }) | }) | ||||
| return modalID; | return modalID; | ||||
| @@ -99,7 +99,7 @@ function ShowMsg(content, ...args) { | |||||
| //隐藏并销毁modal | //隐藏并销毁modal | ||||
| function CloseModal(modalID) { | function CloseModal(modalID) { | ||||
| $("#" + modalID).modal('hide'); | $("#" + modalID).modal('hide'); | ||||
| $("#" + modalID).on('hidden.bs.modal', function (e) { | |||||
| $("#" + modalID).on('hidden.bs.modal', function(e) { | |||||
| if ($("#" + modalID).length > 0) { | if ($("#" + modalID).length > 0) { | ||||
| $("#" + modalID).remove(); | $("#" + modalID).remove(); | ||||
| } | } | ||||
| @@ -136,7 +136,7 @@ function ErrAddSaveDo(modalID) { | |||||
| if (typeof PHPURL === "undefined") { | if (typeof PHPURL === "undefined") { | ||||
| const PHPURL = "/apps"; | const PHPURL = "/apps"; | ||||
| } | } | ||||
| $.post(PHPURL + "/erraddsave.php", parms, function (data) { | |||||
| $.post(PHPURL + "/erraddsave.php", parms, function(data) { | |||||
| let result = JSON.parse(data); | let result = JSON.parse(data); | ||||
| if (result.code === 200) { | if (result.code === 200) { | ||||
| CloseModal(modalID); | CloseModal(modalID); | ||||
| @@ -22,7 +22,7 @@ function SelectFile(sform, stype) { | |||||
| $(frm).append(tmp); | $(frm).append(tmp); | ||||
| } | } | ||||
| $(`#${tmp.id}`).click(); | $(`#${tmp.id}`).click(); | ||||
| $(`#${tmp.id}`).off('change').change(function (val) { | |||||
| $(`#${tmp.id}`).off('change').change(function(val) { | |||||
| const f = val.target.files[0]; | const f = val.target.files[0]; | ||||
| var formData = new FormData(); | var formData = new FormData(); | ||||
| var fileData = f; | var fileData = f; | ||||
| @@ -33,14 +33,14 @@ function SelectFile(sform, stype) { | |||||
| data: formData, | data: formData, | ||||
| processData: false, | processData: false, | ||||
| contentType: false, | contentType: false, | ||||
| success: function (result) { | |||||
| success: function(result) { | |||||
| if (result.code === 0) { | if (result.code === 0) { | ||||
| $(ipt).val(result.data); | $(ipt).val(result.data); | ||||
| } else { | } else { | ||||
| ShowMsg("文件上传失败,错误原因:"+result.error.message); | ShowMsg("文件上传失败,错误原因:"+result.error.message); | ||||
| } | } | ||||
| }, | }, | ||||
| error: function (xhr, status, error) { | |||||
| error: function(xhr, status, error) { | |||||
| ShowMsg("文件上传失败");//处理上传失败后的回调 | ShowMsg("文件上传失败");//处理上传失败后的回调 | ||||
| } | } | ||||
| }); | }); | ||||