Browse Source

简化图集

tags/6.3.0
叙述、别离 1 year ago
parent
commit
14f2f7fe52
7 changed files with 15 additions and 12 deletions
  1. +0
    -1
      src/admin/templets/album_add.htm
  2. +0
    -1
      src/admin/templets/album_edit.htm
  3. +1
    -1
      src/static/ckeditor/contents.css
  4. +0
    -1
      src/static/web/css/admin.album.min.css
  5. +6
    -0
      src/static/web/css/admin.css
  6. +5
    -5
      src/static/web/js/style.js
  7. +3
    -3
      src/static/web/js/user.js

+ 0
- 1
src/admin/templets/album_add.htm View File

@@ -9,7 +9,6 @@
<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/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 src="/static/web/js/jquery.min.js"></script>
<script src="/static/web/js/bootstrap.min.js"></script>


+ 0
- 1
src/admin/templets/album_edit.htm View File

@@ -9,7 +9,6 @@
<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/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 src="/static/web/js/jquery.min.js"></script>
<script src="/static/web/js/bootstrap.min.js"></script>


+ 1
- 1
src/static/ckeditor/contents.css View File

@@ -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}


+ 0
- 1
src/static/web/css/admin.album.min.css View File

@@ -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}

+ 6
- 0
src/static/web/css/admin.css View File

@@ -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}


+ 5
- 5
src/static/web/js/style.js View File

@@ -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);


+ 3
- 3
src/static/web/js/user.js View File

@@ -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("文件上传失败");//处理上传失败后的回调
}
});


Loading…
Cancel
Save