wupengfei 2 年之前
父節點
當前提交
bd4f4ab8ee
共有 3 個文件被更改,包括 23 次插入1 次删除
  1. 2 1
      .idea/workspace.xml
  2. 19 0
      application/api/controller/Expedite.php
  3. 2 0
      application/operate/view/cover/index.html

+ 2 - 1
.idea/workspace.xml

@@ -3,6 +3,7 @@
   <component name="ChangeListManager">
     <list default="true" id="1a36929e-c054-4875-a943-593a74e55fa4" name="Default Changelist" comment="aa">
       <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
+      <change beforePath="$PROJECT_DIR$/application/api/controller/Expedite.php" beforeDir="false" afterPath="$PROJECT_DIR$/application/api/controller/Expedite.php" afterDir="false" />
       <change beforePath="$PROJECT_DIR$/application/operate/view/cover/index.html" beforeDir="false" afterPath="$PROJECT_DIR$/application/operate/view/cover/index.html" afterDir="false" />
     </list>
     <option name="SHOW_DIALOG" value="false" />
@@ -178,7 +179,7 @@
       <workItem from="1667177955215" duration="18480000" />
       <workItem from="1667205194069" duration="1057000" />
       <workItem from="1667206310151" duration="2427000" />
-      <workItem from="1667263628412" duration="15369000" />
+      <workItem from="1667263628412" duration="15832000" />
     </task>
     <servers />
   </component>

+ 19 - 0
application/api/controller/Expedite.php

@@ -584,6 +584,25 @@ class Expedite extends Base
     }
 
 
+    /**
+     * @title 获取模块封面
+     * @desc  获取模块封面
+     * @author  qc
+     * @url /api/Expedite/getModulesCover
+     * @method GET
+     * @param name:tag type:string default:-- desc:标识【video=>视频,article=>图文,datum=>资料,activity=>活动,demand=>需求,forum=>论坛,press=>新闻,supplier=>供应商,recruit=>招聘,mall=>商城】
+     * @return name:cover type:string default:-- desc:封面
+     * @return name:place type:string default:-- desc:归属模块
+     * @return name:tag type:string default:-- desc:归属标识【可以按照这个值查询或是区分所属模块】
+     */
+    public function getModulesCover()
+    {
+        $tag = input('get.tag');
+        $sel_tag = $tag ? [$tag] : ['video','article','datum','activity','demand','forum','press','supplier','recruit','mall'];
+        $list = Db::name('cover')->where('tag','in',$sel_tag)->column('tag,cover,tag,place','tag');
+        $this->success('ok',$list);
+    }
+
 
 
 

+ 2 - 0
application/operate/view/cover/index.html

@@ -1,7 +1,9 @@
 {extend name='admin@main'}
+<!--
 {block name="button"}
 <button data-modal='{:url("add")}' data-title="添加" class='layui-btn layui-btn-sm layui-btn-primary'>添加</button>
 {/block}
+-->
 
 {block name="content"}
 <div class="think-box-shadow">