From c4181486b500ae0416b839b0bf079f2bf44382c2 Mon Sep 17 00:00:00 2001 From: pengda <10266652509@qq.com> Date: Thu, 20 Mar 2025 16:07:30 +0800 Subject: [PATCH] =?UTF-8?q?=E8=87=AA=E5=BD=95=E5=85=A5=E5=8F=8A=E7=BC=96?= =?UTF-8?q?=E8=BE=91=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- control/weibo.php | 4 ++-- model/mWeibo.php | 4 ++++ view/js/index.js | 12 ++++++------ view/templates/weibo/home.html | 10 +++++----- 4 files changed, 17 insertions(+), 13 deletions(-) diff --git a/control/weibo.php b/control/weibo.php index 1ed8617..8377d3e 100644 --- a/control/weibo.php +++ b/control/weibo.php @@ -55,8 +55,8 @@ class weibo extends publicBase { public function ajax_edit_weibo() { $id = trim($this->post('id')); - $text = trim($this->post('desc')); - $refer = trim($this->post('answer')); + $text = trim($this->post('answer')); + $refer = trim($this->post('desc')); $status = $this->post('status') + 0; if ($id) { diff --git a/model/mWeibo.php b/model/mWeibo.php index afec76a..a777059 100644 --- a/model/mWeibo.php +++ b/model/mWeibo.php @@ -33,6 +33,10 @@ class mWeibo extends mBase { if (empty($list)) return array(); foreach ($list as &$v) { + $v['name'] = '微博粉丝'; + if($v['uid'] == 2282201403) $v['name'] = '张宝旬'; + if($v['uid'] == 1) $v['name'] = '管理员'; + $pic_ids = json_decode($v['pic_ids'], 1); $pic_arr = array(); if ($pic_ids) { diff --git a/view/js/index.js b/view/js/index.js index 028915f..e7ba837 100644 --- a/view/js/index.js +++ b/view/js/index.js @@ -8,13 +8,13 @@ $(document).ready(function () { var radio_val = $(this).attr('value') $('.edit-input').val('') if (radio_val == '1') { - $('.answer-form').hide() + $('.normal-form').hide() $('.common-input').html('录入信息') $('.normal-input').removeClass('h74') } else { - $('.common-input').html('提问信息') + $('.common-input').html('回答信息') $('.normal-input').addClass('h74') - $('.answer-form').show() + $('.normal-form').show() } $('.radio-wrap .radio_box').removeClass('radio_box_active'); $(this).parent().addClass('radio_box_active'); @@ -38,8 +38,8 @@ $(document).ready(function () { $('.edit-input').val('') $('.radio-form').hide(); - $('.answer-form').hide(); - $('.normal-input').val(res.data.text); + $('.normal-form').hide(); + $('.answer-input').val(res.data.text); $('.char-count').text(res.data.text.length + '/100'); if ($('.modal').hasClass('addmodal')) { @@ -497,7 +497,7 @@ $(document).ready(function () {