diff --git a/src/admin/templets/ad_add.htm b/src/admin/templets/ad_add.htm index 2f241411..5cc5bd67 100644 --- a/src/admin/templets/ad_add.htm +++ b/src/admin/templets/ad_add.htm @@ -11,7 +11,6 @@ -
@@ -78,9 +77,9 @@ 广告文档: -
+
    -
  • 代码
  • +
  • 代码
  • 文字
  • 图片
  • Flash
  • @@ -177,7 +176,23 @@ return false; } } + function showcode(idName) { + $("#advert").html("").html($("#formtxt>#" + idName).html()); + $("#adstyle").val(idName); + } + showcode('code'); $(document).ready(function() { + $("#changeTab>li").click(function() { + var tabLi = $(this); + var thistab = tabLi[0].id; + $(".content").each(function() { + if ("t_" + $(this)[0].id == thistab) { + $("#changeTab>li").removeClass("active"); + $("#t_" + $(this)[0].id).addClass("active"); + showcode($(this)[0].id); + } + }) + }); $('.datepicker').daterangepicker({ "singleDatePicker": true, "autoApply": true, @@ -203,27 +218,7 @@ }, function(start) { $(this).val(start.format("YYYY-MM-DD HH:mm")); }); - }) - - \ No newline at end of file diff --git a/src/admin/templets/album_add.htm b/src/admin/templets/album_add.htm index 08f7425b..4fe2bd77 100644 --- a/src/admin/templets/album_add.htm +++ b/src/admin/templets/album_add.htm @@ -28,7 +28,7 @@ - +
    @@ -396,7 +396,7 @@ data: formData, processData: false, contentType: false, - success: function (result) { + success: function(result) { if (result.code === 0) { // console.log(result) addImage(result.data, 0); @@ -405,7 +405,7 @@ ShowMsg(result.error.message); } }, - error: function (xhr, status, error) { + error: function(xhr, status, error) { ShowMsg(error); //处理上传失败后的回调 } }); diff --git a/src/admin/templets/album_edit.htm b/src/admin/templets/album_edit.htm index 33a1cfaf..66254458 100644 --- a/src/admin/templets/album_edit.htm +++ b/src/admin/templets/album_edit.htm @@ -27,7 +27,7 @@ -
    发布图片文档
    +
    @@ -432,7 +432,7 @@ data: formData, processData: false, contentType: false, - success: function (result) { + success: function(result) { if (result.code === 0) { let idx = val.target.getAttribute("for").replace("item",""); $(`input[name='imgurl${idx}']`).val(result.data); @@ -442,7 +442,7 @@ ShowMsg(result.error.message); } }, - error: function (xhr, status, error) { + error: function(xhr, status, error) { ShowMsg(error); //处理上传失败后的回调 } }); @@ -459,7 +459,7 @@ data: formData, processData: false, contentType: false, - success: function (result) { + success: function(result) { if (result.code === 0) { // console.log(result) addImage(result.data, 0); @@ -468,7 +468,7 @@ ShowMsg(result.error.message); } }, - error: function (xhr, status, error) { + error: function(xhr, status, error) { ShowMsg(error); //处理上传失败后的回调 } }); diff --git a/src/admin/templets/archives_add.htm b/src/admin/templets/archives_add.htm index 9544fd90..8946a395 100644 --- a/src/admin/templets/archives_add.htm +++ b/src/admin/templets/archives_add.htm @@ -23,7 +23,7 @@ -
    修改图片文档
    +
    diff --git a/src/admin/templets/archives_edit.htm b/src/admin/templets/archives_edit.htm index b08c4beb..05efd657 100644 --- a/src/admin/templets/archives_edit.htm +++ b/src/admin/templets/archives_edit.htm @@ -23,7 +23,7 @@ -
    发布自定义文档
    +
    diff --git a/src/admin/templets/archives_sg_add.htm b/src/admin/templets/archives_sg_add.htm index f20d1bf2..e259587e 100644 --- a/src/admin/templets/archives_sg_add.htm +++ b/src/admin/templets/archives_sg_add.htm @@ -23,7 +23,7 @@ -
    修改自定义文档
    +
    diff --git a/src/admin/templets/archives_sg_edit.htm b/src/admin/templets/archives_sg_edit.htm index 5a83f0a5..b7f1982b 100644 --- a/src/admin/templets/archives_sg_edit.htm +++ b/src/admin/templets/archives_sg_edit.htm @@ -24,7 +24,7 @@ -
    发布分类文档
    +
    diff --git a/src/admin/templets/article_add.htm b/src/admin/templets/article_add.htm index 8dde3062..fe8e54e9 100644 --- a/src/admin/templets/article_add.htm +++ b/src/admin/templets/article_add.htm @@ -22,7 +22,7 @@ -
    修改分类文档
    +
    diff --git a/src/admin/templets/article_edit.htm b/src/admin/templets/article_edit.htm index 4f8fc90b..ed455ec5 100644 --- a/src/admin/templets/article_edit.htm +++ b/src/admin/templets/article_edit.htm @@ -23,7 +23,7 @@ -
    发布文档
    +
    diff --git a/src/admin/templets/catalog_main.htm b/src/admin/templets/catalog_main.htm index a63c57d0..f16498f9 100644 --- a/src/admin/templets/catalog_main.htm +++ b/src/admin/templets/catalog_main.htm @@ -7,7 +7,6 @@ - @@ -31,7 +30,7 @@
    修改文档
    - +
    diff --git a/src/admin/templets/content_batch_up.htm b/src/admin/templets/content_batch_up.htm index 0e4878e2..9963d017 100644 --- a/src/admin/templets/content_batch_up.htm +++ b/src/admin/templets/content_batch_up.htm @@ -97,7 +97,7 @@ else v.style.display = "none"; }) } - $(document).ready(function () { + $(document).ready(function() { $('.datepicker').daterangepicker({ "singleDatePicker": true, "autoApply": true, @@ -121,7 +121,7 @@ monthNames: ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'], firstDay: 1 } - }, function (start) { + }, function(start) { $(this).val(start.format("YYYY-MM-DD HH:mm:ss")); }); }); diff --git a/src/admin/templets/diy_field_add.htm b/src/admin/templets/diy_field_add.htm index 5e903dee..1b636ffb 100644 --- a/src/admin/templets/diy_field_add.htm +++ b/src/admin/templets/diy_field_add.htm @@ -10,7 +10,6 @@ - diff --git a/src/admin/templets/diy_field_edit.htm b/src/admin/templets/diy_field_edit.htm index f363fa41..8836a458 100644 --- a/src/admin/templets/diy_field_edit.htm +++ b/src/admin/templets/diy_field_edit.htm @@ -10,7 +10,6 @@ - diff --git a/src/admin/templets/mychannel_field_add.htm b/src/admin/templets/mychannel_field_add.htm index aec02534..7d597173 100644 --- a/src/admin/templets/mychannel_field_add.htm +++ b/src/admin/templets/mychannel_field_add.htm @@ -10,7 +10,6 @@ - diff --git a/src/admin/templets/mychannel_field_edit.htm b/src/admin/templets/mychannel_field_edit.htm index 7ed7b87e..50ff7b5b 100644 --- a/src/admin/templets/mychannel_field_edit.htm +++ b/src/admin/templets/mychannel_field_edit.htm @@ -10,7 +10,6 @@ - diff --git a/src/admin/templets/soft_add.htm b/src/admin/templets/soft_add.htm index 8fdab9d1..cc489d3f 100644 --- a/src/admin/templets/soft_add.htm +++ b/src/admin/templets/soft_add.htm @@ -39,7 +39,7 @@ -
    网站栏目管理
    +
    diff --git a/src/admin/templets/soft_edit.htm b/src/admin/templets/soft_edit.htm index 1095f67a..a875ebfd 100644 --- a/src/admin/templets/soft_edit.htm +++ b/src/admin/templets/soft_edit.htm @@ -38,7 +38,7 @@ -
    发布软件文档
    +
    diff --git a/src/admin/templets/spec_add.htm b/src/admin/templets/spec_add.htm index 0ae05205..54bff0dc 100644 --- a/src/admin/templets/spec_add.htm +++ b/src/admin/templets/spec_add.htm @@ -61,7 +61,7 @@ -
    修改软件文档
    +
    diff --git a/src/admin/templets/spec_edit.htm b/src/admin/templets/spec_edit.htm index 0d68c8dd..09904a52 100644 --- a/src/admin/templets/spec_edit.htm +++ b/src/admin/templets/spec_edit.htm @@ -59,7 +59,7 @@ -
    发布专题
    +
    diff --git a/src/admin/templets/sys_cloud.htm b/src/admin/templets/sys_cloud.htm index 8ab74c34..c4a60944 100644 --- a/src/admin/templets/sys_cloud.htm +++ b/src/admin/templets/sys_cloud.htm @@ -102,7 +102,7 @@ tencent_secret_key: '', }; function LoadConfig() { - $.get("sys_cloud.php?dopost=cloud_get", function (data) { + $.get("sys_cloud.php?dopost=cloud_get", function(data) { try { rs = JSON.parse(data); if (rs.code === 0) { @@ -134,8 +134,8 @@ } }); } - $(document).ready(function () { - $("#btnSave").click(function () { + $(document).ready(function() { + $("#btnSave").click(function() { if ($("#cloudType1").is(":checked")) { cloudConfig.aliyun_enabled = true; } else { @@ -157,7 +157,7 @@ } cloudConfig.tencent_secret_id = $("#iptTencentSecretId").val(); cloudConfig.tencent_secret_key = $("#iptTencentSecretKey").val(); - $.post("sys_cloud.php?dopost=cloud_set", cloudConfig, function (result) { + $.post("sys_cloud.php?dopost=cloud_set", cloudConfig, function(result) { let data = JSON.parse(result); if (data.code === 0) { ShowMsg("云服务设置成功"); diff --git a/src/admin/templets/sys_info.htm b/src/admin/templets/sys_info.htm index 321bafae..d35a2cea 100644 --- a/src/admin/templets/sys_info.htm +++ b/src/admin/templets/sys_info.htm @@ -207,7 +207,7 @@ jQuery("#edit___cfg_cookie_encode").val(data); }); } - $(document).ready(function () { + $(document).ready(function() { $("#btnClear").click(() => { location.reload(); }) diff --git a/src/admin/templets/tpl_edit.htm b/src/admin/templets/tpl_edit.htm index 67b6b2d8..0d963bec 100644 --- a/src/admin/templets/tpl_edit.htm +++ b/src/admin/templets/tpl_edit.htm @@ -13,7 +13,6 @@ - diff --git a/src/static/web/css/admin.css b/src/static/web/css/admin.css index d156e13f..4e92a324 100644 --- a/src/static/web/css/admin.css +++ b/src/static/web/css/admin.css @@ -2,8 +2,8 @@ ::-webkit-scrollbar-track{background:#f5f5f5} ::-webkit-scrollbar-thumb{background:#dee2e6} *{font-size:14px;scrollbar-width:thin} -body{margin:0;line-height:1.6;letter-spacing:0.5px;font-size:14px;font-family:Helvetica Neue,Helvetica,PingFang SC,Tahoma,Arial,sans-serif;color:#545b62;background:#fff} -a{color:#545b62;text-decoration:none} +body{margin:0;line-height:1.6;letter-spacing:0.5px;font-size:14px;font-family:Helvetica Neue,Helvetica,PingFang SC,Tahoma,Arial,sans-serif;color:#6c757d;background:#fff} +a{color:#6c757d;text-decoration:none} a:hover{color:#007bff;text-decoration:none} img{margin-right:10px;max-width:100%;border-radius:0.5rem} ul,ol,li{margin:0;padding:0} @@ -15,15 +15,15 @@ table tr:first-child td:last-child{border-top-right-radius:0.5rem;border-top:0} table tr:last-child td:first-child{border-bottom-left-radius:0.5rem;border-bottom:0} table tr:last-child td:last-child{border-bottom-right-radius:0.5rem;border-bottom:0} td{word-break:break-all;word-wrap:break-word} -input{padding:0.375rem 0.75rem;height:30px;color:#545b62;background:#fff;border:1px solid #dee2e6;vertical-align:middle} +input{padding:0.375rem 0.75rem;height:30px;color:#6c757d;background:#fff;border:1px solid #dee2e6;vertical-align:middle} input[type=file]{padding:0;height:auto;border:0;border-radius:0!important;vertical-align:middle} input[type=button],input[type=submit],input[type=reset]{padding:0.375rem 0.75rem;height:30px;line-height:1.5;font-size:12px;color:#fff;background:#1eb867;border:0} -input[type=radio],input[type=checkbox],input[type=radio]:focus,input[type=checkbox]:focus{width:14px;height:14px;outline:none;box-shadow:none;vertical-align:middle} -select{padding:0.375rem 0.75rem;height:30px;color:#545b62;background:#fff;border:1px solid #dee2e6;vertical-align:middle} +input[type=radio],input[type=checkbox],input[type=radio]:focus,input[type=checkbox]:focus{width:14px;height:14px;outline:none;box-shadow:none;vertical-align:text-top} +select{padding:0.375rem 0.75rem;height:30px;color:#6c757d;background:#fff;border:1px solid #dee2e6;vertical-align:middle} select[multiple=yes]{height:180px} option{display:flex;padding:0;height:30px;align-items:center} -textarea{padding:0.375rem 0.75rem;color:#545b62;background:#fff;border:1px solid #dee2e6;vertical-align:middle} -input:focus,select:focus,textarea:focus{color:#495057;background:#fff;border-color:#80bdff;box-shadow:0 0 0 0.2rem rgba(0,123,255,.25);outline:0} +textarea{padding:0.375rem 0.75rem;color:#6c757d;background:#fff;border:1px solid #dee2e6;vertical-align:middle} +input:focus,select:focus,textarea:focus{color:#6c757d;background:#fff;border-color:#80bdff;box-shadow:0 0 0 0.2rem rgba(0,123,255,.25);outline:0} .install-box{margin:0 auto;width:800px} .install-box .card-header,.install-box .card-body{padding:1.25rem} .install-box h2,.install-box legend{margin:0;line-height:1.2;font-size:18px;font-weight:600;color:#393d49} @@ -47,7 +47,7 @@ body.menu-hide .body-right{left:0;transition:all 0.5s} .menu-body{width:100%;background:#fff;box-shadow:0 0.125rem 0.25rem rgba(0,0,0,.075)} .item-menu .link{position:relative;padding-left:50px;display:block;height:42px;line-height:42px;cursor:pointer} .item-menu li:last-child .link{border-bottom:0} -.item-menu li i{position:absolute;top:14px;left:20px;color:#545b62} +.item-menu li i{position:absolute;top:14px;left:20px;color:#6c757d} .item-menu li i.fa-angle-down{right:20px;left:auto} .item-menu li.open .link,.item-menu li.open i{color:#1eb867} .item-menu li.open i.fa-angle-down{transform:rotate(180deg)} @@ -61,7 +61,7 @@ body.menu-hide .body-right{left:0;transition:all 0.5s} .admin-head .item ul li:first-child{padding-left:1rem} .admin-head .item ul li a,.admin-head .admin ul li a{color:#fff} .admin-head .item ul li a:hover,.admin-head .admin ul li a:hover{color:#dee2e6} -.admin-head .item .search{position:absolute;top:20px;right:5px;height:20px;line-height:20px;color:#545b62;background:0;border:0} +.admin-head .item .search{position:absolute;top:20px;right:5px;height:20px;line-height:20px;color:#6c757d;background:0;border:0} .admin-head .admin{float:right;margin-right:30px;height:60px;line-height:60px} .admin-head .admin img{width:30px;height:30px;border-radius:50%} .admin-head .admin ul li{float:left;padding-left:30px;height:60px;line-height:60px} @@ -85,7 +85,7 @@ body.menu-hide .body-right{left:0;transition:all 0.5s} .colordlg{padding:0.5rem;background:#fff;border:1px solid #dee2e6;z-index:10005} .wsselect{padding:0.5rem;background:#fff;overflow:auto} .pubdlg{background:#fff;border:1px solid #dee2e6;z-index:8888} -.pubdlg .title{padding:0 0.5rem;height:30px;line-height:30px;color:#545b62;background:#f5f5f5;border-bottom:1px solid #dee2e6} +.pubdlg .title{padding:0 0.5rem;height:30px;line-height:30px;color:#6c757d;background:#f5f5f5;border-bottom:1px solid #dee2e6} .fullpagediv{position:absolute;top:0;left:0;width:100%;height:100%;background:#f5f5f5;opacity:0.6;z-index:1999} .quicksel{margin-left:10px;margin-top:10px;width:680px;height:420px;overflow:auto;z-index:10005} .quickselfoot{padding:0.5rem;background:#f5f5f5;border-top:1px solid #dee2e6} @@ -94,6 +94,12 @@ body.menu-hide .body-right{left:0;transition:all 0.5s} .quickselitem .soncat{margin-bottom:1rem;padding:0 10px} .quickselitem .item{display:inline-block;padding-left:10px} .mysource,.mywriter{width:300px;background:#fff;border:1px solid #dee2e6;z-index:10001} +.column .admin-td{border-bottom:1px solid #dee2e6!important} +.add-tab ul li{float:left;width:60px;line-height:30px;cursor:pointer} +.add-tab ul .active{color:#007bff} +.nw{float:left;width:160px} +.cls{clear:both} +.helpinfo{float:left;display:none;padding:10px;width:100%;background:#f5f5f5;border:1px solid #dee2e6;border-radius:0.5rem} #toolimg{position:absolute;display:none} #uploadfield{float:left} #uploadwait{z-index:19999} @@ -105,7 +111,7 @@ body.menu-hide .body-right{left:0;transition:all 0.5s} .tips-box{margin:70px auto 0;width:500px;height:auto;background:#fff;border-radius:0.5rem;box-shadow:0 0.125rem 0.25rem rgba(0,0,0,.075)} .tips-head{margin:0 20px;padding:18px 0;border-bottom:1px solid #f5f5f5} .tips-head p{margin:0;padding-left:10px;line-height:16px;text-align:left;border-left:3px solid #ff8400} -.tips-body{padding:20px;min-height:160px;color:#545b62;word-break:break-all;word-wrap:break-word} +.tips-body{padding:20px;min-height:160px;color:#6c757d;word-break:break-all;word-wrap:break-word} .user-img-sm{width:30px;height:30px;border-radius:50%;border:1px solid #eee} .thumbnail-md{max-width:200px;max-height:120px} .thumbnail-sm{max-width:80px;max-height:80px} @@ -118,13 +124,12 @@ body.menu-hide .body-right{left:0;transition:all 0.5s} .fileinput-button{display:inline-block;position:relative;overflow:hidden} .fileinput-button input{position:absolute;top:0;right:0;margin:0;opacity:0;direction:ltr;cursor:pointer} .maintable{width:98%!important;border:1px solid #dee2e6!important} -.table{margin-bottom:0;color:#545b62} +.table{margin-bottom:0;color:#6c757d} .table td,.table th{padding:0.5rem;vertical-align:middle} .form-control{display:inline-block} .fa{font-size:14px!important;color:inherit} .admin-win{background:#f5f5f5;border:1px solid #dee2e6!important} .admin-win-iframe{width:100%;height:360px} -.admin-border{border:1px solid #dee2e6!important} .admin-main-sort{margin-left:1rem;padding:0;width:30px;text-align:center} .admin-td{padding:0.5rem;border-bottom:1px solid #dee2e6} .admin-textarea-xl{width:100%;height:90px} @@ -141,7 +146,7 @@ table,input,select,textarea,.login-box,.menu-body,.coolbg,.mysource,.mywriter,.p .page-item:last-child .page-link{border-top-right-radius:0.5rem!important;border-bottom-right-radius:0.5rem!important} .input-group:not(.has-validation)>.custom-file:not(:last-child) .custom-file-label,.input-group:not(.has-validation)>.custom-file:not(:last-child) .custom-file-label::after,.input-group:not(.has-validation)>.custom-select:not(:last-child),.input-group:not(.has-validation)>.form-control:not(:last-child){border-top-right-radius:0!important;border-bottom-right-radius:0!important} .input-group>.input-group-append>.btn,.input-group>.input-group-append>.input-group-text,.input-group>.input-group-prepend:first-child>.btn:not(:first-child),.input-group>.input-group-prepend:first-child>.input-group-text:not(:first-child),.input-group>.input-group-prepend:not(:first-child)>.btn,.input-group>.input-group-prepend:not(:first-child)>.input-group-text{border-top-left-radius:0!important;border-bottom-left-radius:0!important} -.btn-sm{padding:0.375rem 0.55rem;height:30px;line-height:1.5;font-size:12px} +.btn-sm{padding:0.375rem 0.6rem;height:30px;line-height:1.5;font-size:12px} .btn-xs{padding:0.22rem;height:20px;line-height:1;font-size:12px;border-radius:0.35rem!important} .btn+.btn{margin-left:10px} .btn-version{float:left;margin-top:18px;margin-left:5px} diff --git a/src/static/web/css/style.css b/src/static/web/css/style.css index c6dc991b..72c658e4 100644 --- a/src/static/web/css/style.css +++ b/src/static/web/css/style.css @@ -2,8 +2,8 @@ ::-webkit-scrollbar-track{background:#f5f5f5} ::-webkit-scrollbar-thumb{background:#dee2e6} *{scrollbar-width:thin} -body{margin:0;line-height:1.6;letter-spacing:0.5px;font-size:14px;font-family:Helvetica Neue,Helvetica,PingFang SC,Tahoma,Arial,sans-serif;color:#545b62;background:#fff} -a{color:#545b62;text-decoration:none} +body{margin:0;line-height:1.6;letter-spacing:0.5px;font-size:14px;font-family:Helvetica Neue,Helvetica,PingFang SC,Tahoma,Arial,sans-serif;color:#6c757d;background:#fff} +a{color:#6c757d;text-decoration:none} a:hover{color:#007bff;text-decoration:none} img{max-width:100%;border-radius:0.5rem} ul,ol,li{margin:0;padding:0;list-style:none} @@ -78,14 +78,14 @@ input[type=file]{padding:0;height:auto;border:0} .user-img-sm{width:36px;height:36px;border-radius:50%;border:1px solid #eee} .user-img-xs{width:30px;height:30px;border-radius:50%;border:1px solid #eee} .user-meter i{font-size:24px!important;color:#1eb867} -.userspace .info{font-size:14px;font-weight:300;color:#545b62} +.userspace .info{font-size:14px;font-weight:300;color:#6c757d} .nav-link{padding:0 10px;height:36px;line-height:36px} .navbar-dark .navbar-nav .nav-link{color:#eee} .list-group-item.active a{color:#fff} .list-group-flush>.list-group-item{cursor:pointer} .pannel-main-container{padding:1.5rem;background:#fff} .input-group-append .btn-sm{line-height:1.8} -.table{color:#545b62} +.table{color:#6c757d} .table td,.table th{padding:0.5rem;vertical-align:middle} .form-control{display:inline-block;height:36px} .form-control,.fa{font-size:14px!important;color:inherit}
    发布专题