From 51007da170b237b2a0d13b29ba957929386bd541 Mon Sep 17 00:00:00 2001 From: pengda <10266652509@qq.com> Date: Tue, 25 Mar 2025 16:07:11 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BC=96=E8=BE=91=E5=8A=A8=E6=95=88=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/define.php | 2 +- view/js/index.js | 57 ++++++++++++++++---------------------- view/templates/include/footer.html | 2 +- view/templates/index/login.html | 5 +--- view/templates/weibo/home.html | 4 +-- 5 files changed, 29 insertions(+), 41 deletions(-) diff --git a/config/define.php b/config/define.php index d7c5d9c..1b4d021 100644 --- a/config/define.php +++ b/config/define.php @@ -37,7 +37,7 @@ define('CSS_URL', '//zhishiku.yizherenxin.cn'); //css/js版本 - define('CSS_JS_VERSION', '1.0.0000006'); + define('CSS_JS_VERSION', '1.0.0000007'); define('ALIYUN_OSS_ACCESS_KEY_ID', 'LTAI5tRBq7yr1vcdvhqNMb7P'); define('ALIYUN_OSS_ACCESS_KEY_SECRET', 'E4No4AjlWGrHSULsR8apZkTAC8DMw6'); diff --git a/view/js/index.js b/view/js/index.js index 48d2d55..1ec0506 100644 --- a/view/js/index.js +++ b/view/js/index.js @@ -41,7 +41,7 @@ $(document).ready(function () { $('.img_list2').removeClass('pd84') $('.normal-input').val(res.data.refer); - $('.char-count').text(res.data.refer.length + '/100'); + $('.char-count').text(res.data.refer.length + '/200'); if(res.data.refer.length>0){ $('.normal-form').show(); $('.normal-input').addClass('h74') @@ -61,7 +61,7 @@ $(document).ready(function () { } $('.answer-input').val(res.data.text); - $('.char-count1').text(res.data.text.length + '/100'); + $('.char-count1').text(res.data.text.length + '/200'); if ($('.modal').hasClass('addmodal')) { $('.modal').removeClass('addmodal') @@ -105,6 +105,7 @@ $(document).ready(function () { $('.modal').addClass('addmodal') } + $('#id').val('') $('#header_title').html('新增自录入') $('.modal, .modal-overlay').fadeIn(); }); @@ -138,13 +139,13 @@ $(document).ready(function () { // 关闭弹框 $('#cancel, .modal-overlay').click(function () { $('.modal, .modal-overlay').fadeOut(); - $('.edit-input').val('') - $('.wordNum').html('0/100') + // $('.edit-input').val('') + // $('.wordNum').html('0/200') }); $('#close_modal').click(function () { $('.modal, .modal-overlay').fadeOut(); - $('.edit-input').val('') - $('.wordNum').html('0/100') + // $('.edit-input').val('') + // $('.wordNum').html('0/200') }); // 上传图片 @@ -500,11 +501,11 @@ $(document).ready(function () { `; } - html1 += `
+ html1 += `
${item.wid != '' ? '微博' :'自录入'} - ${item.refer ? `${item.refer}` :''} + ${item.refer} ` + item.name + ` 录入:` + item.created_at + ` ${item.wid ? `微博地址` :''} @@ -654,27 +655,18 @@ $(document).ready(function () { answer }, success: function (res) { - alert(res.info) - if(res.status){ + if(!res.status){ + alert(res.info) + } + if(id){ + $('.item_index_'+id).find('.refer_text').html(desc) + $('.item_index_'+id).find('.desc_text').html(answer) + }else{ window.location.reload(); } } }) - // if ($('.modal').hasClass('editmodal')) { //编辑 - // var desc = $('.normal-input').val().trim() - // var answer = $('.answer-input').val().trim() - // // cur_editdata.id //当前编辑数据 后续用其他参数也可 - // - // } else if ($('.modal').hasClass('addmodal')) { //新增 - // var radio_val = $('.radio-wrap').find('.radio_box_active input').val(); - // // 区分信息段、问答 - // if (radio_val == '1') { - // - // } else { - // - // } - // } $('.modal, .modal-overlay').fadeOut(); }) @@ -695,10 +687,15 @@ $(document).ready(function () { status }, success: function (res) { - alert(res.info) - if(res.status){ - window.location.reload(); + if(!res.status){ + alert(res.info) } + + $('.item_index_'+id).fadeOut(300, function() { + $(this).remove(); + }); + + $('.index-nav-wrap-li[type="2"]').click(); } }) @@ -719,8 +716,6 @@ $(document).ready(function () { $('.modal, .modal-overlay').fadeOut(); }) $('.list_all').on('click','.deleteBtn',function(){ - if (!confirm("你确定要删除这条数据吗?")) return false; - const id = $(this).data('id'); const that = $(this); // 列表删除 @@ -744,8 +739,6 @@ $(document).ready(function () { }) }) $('.list_all').on('click','.passBtn',function(){ - if (!confirm("你确定要通过这条数据吗?")) return false; - const id = $(this).data('id'); const that = $(this); // 列表通过 @@ -769,8 +762,6 @@ $(document).ready(function () { }) }) $('.list_all').on('click','.checkBtn',function(){ - if (!confirm("你确定要通过这条数据吗?")) return false; - const id = $(this).data('id'); const that = $(this); // 恢复待审批 diff --git a/view/templates/include/footer.html b/view/templates/include/footer.html index 5e07c81..4cd3a2c 100644 --- a/view/templates/include/footer.html +++ b/view/templates/include/footer.html @@ -1,4 +1,4 @@
-

© 2012-2025 仁心堂 , Inc. All rights reserved.

+

© 2024-2025 仁心堂 , Inc. All rights reserved.

 京ICP备2024089600号-2

\ No newline at end of file diff --git a/view/templates/index/login.html b/view/templates/index/login.html index 3a92093..6c13545 100644 --- a/view/templates/index/login.html +++ b/view/templates/index/login.html @@ -123,10 +123,7 @@
-
-

Copyright ©2012-2025 .

-

All Rights Reserved 底部随便写的

-
+ {include file="include/footer.html"}