wupengfei 2 년 전
부모
커밋
58e0c12ae1
4개의 변경된 파일25개의 추가작업 그리고 3개의 파일을 삭제
  1. 3 1
      .idea/workspace.xml
  2. 7 2
      application/api/controller/Qc.php
  3. 8 0
      application/operate/controller/ForumReport.php
  4. 7 0
      application/operate/view/forum_report/form.html

+ 3 - 1
.idea/workspace.xml

@@ -4,6 +4,8 @@
     <list default="true" id="1a36929e-c054-4875-a943-593a74e55fa4" name="Default Changelist" comment="">
       <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
       <change beforePath="$PROJECT_DIR$/application/api/controller/Qc.php" beforeDir="false" afterPath="$PROJECT_DIR$/application/api/controller/Qc.php" afterDir="false" />
+      <change beforePath="$PROJECT_DIR$/application/operate/controller/ForumReport.php" beforeDir="false" afterPath="$PROJECT_DIR$/application/operate/controller/ForumReport.php" afterDir="false" />
+      <change beforePath="$PROJECT_DIR$/application/operate/view/forum_report/form.html" beforeDir="false" afterPath="$PROJECT_DIR$/application/operate/view/forum_report/form.html" afterDir="false" />
     </list>
     <option name="SHOW_DIALOG" value="false" />
     <option name="HIGHLIGHT_CONFLICTS" value="true" />
@@ -199,7 +201,7 @@
       <workItem from="1670201125142" duration="9015000" />
       <workItem from="1670287594399" duration="11535000" />
       <workItem from="1670461023846" duration="27678000" />
-      <workItem from="1670547445908" duration="3396000" />
+      <workItem from="1670547445908" duration="4956000" />
     </task>
     <servers />
   </component>

+ 7 - 2
application/api/controller/Qc.php

@@ -14,6 +14,11 @@ class Qc extends Base {
 
     public function index()
     {
+
+    }
+
+    public function index22()
+    {
         $app_name = sysconf('app_name');
         $app_logo = sysconf('app_logo');
         $search_log =  UserSearch::getSearchTitle($this->user_id,1);
@@ -32,8 +37,8 @@ class Qc extends Base {
             ->where('a.is_deleted = 0 AND a.status =1 AND k.is_deleted = 0 AND k.status = 1')
             ->order('is_recommend DESC')
             ->orderRaw("rand()")
-            ->buildSql();
-        var_dump($list);die();
+            ->limit($this->off_set,$this->page_num)
+            ->select()->toArray();
         foreach ($list as $v)
         {
             var_dump($v['id'].'--'.$v['is_recommend']);

+ 8 - 0
application/operate/controller/ForumReport.php

@@ -73,5 +73,13 @@ class ForumReport extends Controller
         $this->_form($this->table,'form');
     }
 
+    protected function _form_filter(&$data)
+    {
+        if($this->request->action() == 'edit' && $this->request->isGet())
+        {
+            $data['title'] = UserForum::where('id',$data['report_id'])->value('title');
+        }
+    }
+
 
 }

+ 7 - 0
application/operate/view/forum_report/form.html

@@ -3,6 +3,13 @@
     <div class="layui-card-body">
 
         <div class="layui-row margin-bottom-15">
+            <label class="layui-col-xs2 think-form-label">举报标题:</label>
+            <label class="layui-col-xs10">
+               <input value="{$vo.title}" class="layui-input"/>
+            </label>
+        </div>
+
+        <div class="layui-row margin-bottom-15">
             <label class="layui-col-xs2 think-form-label">回复内容:</label>
             <label class="layui-col-xs10">
                 <textarea name="reply" rows="10" cols="100">{$vo.reply|default=''}</textarea>