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 () {