wupengfei 2 年之前
父节点
当前提交
4bea930265

+ 16 - 12
.idea/workspace.xml

@@ -2,8 +2,12 @@
 <project version="4">
   <component name="ChangeListManager">
     <list default="true" id="1a36929e-c054-4875-a943-593a74e55fa4" name="Default Changelist" comment="">
+      <change afterPath="$PROJECT_DIR$/application/operate/controller/Sponsor.php" afterDir="false" />
+      <change afterPath="$PROJECT_DIR$/application/operate/view/sponsor/apply.html" afterDir="false" />
+      <change afterPath="$PROJECT_DIR$/application/operate/view/sponsor/form.html" afterDir="false" />
+      <change afterPath="$PROJECT_DIR$/application/operate/view/sponsor/index.html" afterDir="false" />
+      <change afterPath="$PROJECT_DIR$/application/operate/view/sponsor/index_search.html" afterDir="false" />
       <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
-      <change beforePath="$PROJECT_DIR$/application/api/controller/Forum.php" beforeDir="false" afterPath="$PROJECT_DIR$/application/api/controller/Forum.php" afterDir="false" />
     </list>
     <option name="SHOW_DIALOG" value="false" />
     <option name="HIGHLIGHT_CONFLICTS" value="true" />
@@ -132,7 +136,7 @@
     <property name="ASKED_ADD_EXTERNAL_FILES" value="true" />
     <property name="RunOnceActivity.ShowReadmeOnStart" value="true" />
     <property name="WebServerToolWindowFactoryState" value="false" />
-    <property name="last_opened_file_path" value="$PROJECT_DIR$/../dineng" />
+    <property name="last_opened_file_path" value="$PROJECT_DIR$/application/operate/view" />
     <property name="node.js.detected.package.eslint" value="true" />
     <property name="node.js.detected.package.tslint" value="true" />
     <property name="node.js.path.for.package.eslint" value="project" />
@@ -143,19 +147,19 @@
     <property name="two.files.diff.last.used.folder" value="$PROJECT_DIR$" />
   </component>
   <component name="RecentsManager">
-    <key name="CopyFile.RECENT_KEYS">
-      <recent name="D:\zs\gaoyixia\config" />
-      <recent name="D:\zs\gaoyixia\application\common\model" />
-      <recent name="D:\zs\gaoyixia\application\operate\view\supplier_classify" />
-      <recent name="D:\zs\gaoyixia\application\operate\controller" />
-      <recent name="D:\zs\gaoyixia\application\operate\view" />
-    </key>
     <key name="MoveFile.RECENT_KEYS">
       <recent name="D:\zs\gaoyixia\public\wx_cert" />
       <recent name="D:\zs\gaoyixia\public\a" />
       <recent name="D:\zs\gaoyixia\public" />
       <recent name="D:\zs\gaoyixia\application\api\controller" />
     </key>
+    <key name="CopyFile.RECENT_KEYS">
+      <recent name="D:\zs\gaoyixia\application\operate\view" />
+      <recent name="D:\zs\gaoyixia\application\operate\controller" />
+      <recent name="D:\zs\gaoyixia\config" />
+      <recent name="D:\zs\gaoyixia\application\common\model" />
+      <recent name="D:\zs\gaoyixia\application\operate\view\supplier_classify" />
+    </key>
   </component>
   <component name="SvnConfiguration">
     <configuration />
@@ -299,7 +303,7 @@
       <workItem from="1682125691470" duration="22160000" />
       <workItem from="1682211747955" duration="24164000" />
       <workItem from="1682297702251" duration="24254000" />
-      <workItem from="1682470472625" duration="2005000" />
+      <workItem from="1682470472625" duration="5579000" />
     </task>
     <servers />
   </component>
@@ -433,10 +437,10 @@
       <screen x="0" y="0" width="2560" height="1400" />
     </state>
     <state x="420" y="147" width="1942" height="1088" key="DiffContextDialog/0.0.2560.1400@0.0.2560.1400" timestamp="1681953355372" />
-    <state x="1418" y="514" key="FileChooserDialogImpl" timestamp="1682055528372">
+    <state x="1418" y="514" key="FileChooserDialogImpl" timestamp="1682474236933">
       <screen x="0" y="0" width="2560" height="1400" />
     </state>
-    <state x="1418" y="514" key="FileChooserDialogImpl/0.0.2560.1400@0.0.2560.1400" timestamp="1682055528372" />
+    <state x="1418" y="514" key="FileChooserDialogImpl/0.0.2560.1400@0.0.2560.1400" timestamp="1682474236933" />
     <state x="1423" y="617" key="NewPhpClassDialog" timestamp="1674891311967">
       <screen x="0" y="0" width="2560" height="1400" />
     </state>

+ 228 - 0
application/operate/controller/Sponsor.php

@@ -0,0 +1,228 @@
+<?php
+namespace app\operate\controller;
+use app\common\model\User;
+use library\Controller;
+use think\Db;
+/**
+ * 主办方
+ * Class Sponsor
+ * @package app\operate\controller
+ */
+class Sponsor extends Controller
+{
+    protected $table = 'ActivitySponsor';
+
+    /**
+     * 列表
+     * @auth true
+     * @menu true
+     * @throws \think\Exception
+     * @throws \think\db\exception\DataNotFoundException
+     * @throws \think\db\exception\ModelNotFoundException
+     * @throws \think\exception\DbException
+     * @throws \think\exception\PDOException
+     */
+    public function index()
+    {
+        $this->title = '列表';
+        $where = [];
+        $where[] = ['f.is_deleted','=',0];
+        if($title = input('title')) $where[] = ['f.title','like','%'.$title.'%'];
+        $query = $this->_query($this->table)->alias('f')
+            ->field('f.*')
+            ->where($where)
+            ->order('sort desc,f.id asc')->page();
+    }
+
+
+    /**
+     * 添加
+     * @auth true
+     * @menu true
+     * @throws \think\Exception
+     * @throws \think\db\exception\DataNotFoundException
+     * @throws \think\db\exception\ModelNotFoundException
+     * @throws \think\exception\DbException
+     * @throws \think\exception\PDOException
+     */
+    public function add()
+    {
+        $this->title = '添加';
+        $this->_form($this->table, 'form');
+    }
+
+    /**
+     * 编辑
+     * @auth true
+     * @menu true
+     * @throws \think\Exception
+     * @throws \think\db\exception\DataNotFoundException
+     * @throws \think\db\exception\ModelNotFoundException
+     * @throws \think\exception\DbException
+     * @throws \think\exception\PDOException
+     */
+    public function edit()
+    {
+        $this->title = '编辑';
+        $this->_form($this->table, 'form');
+    }
+
+    /**
+     * 删除
+     * @auth true
+     * @throws \think\Exception
+     * @throws \think\exception\PDOException
+     */
+    public function del()
+    {
+        $this->_save($this->table, ['is_deleted' => '1']);
+    }
+
+    /**
+     * 表单数据处理
+     * @param array $data
+     */
+    protected function _form_filter(&$data)
+    {
+        if ($this->request->isGet() && $this->request->action() == 'add') {
+            $this->isAddMode = 1;
+            $this->ladder = [];
+        }
+
+        if ($this->request->isGet() && $this->request->action() == 'edit') {
+            $this->isAddMode = 0;
+            $this->ladder = isset_full($data,'ladder') ? json_decode($data['ladder'],true):[];
+        }
+
+
+    }
+
+    /**
+     * 报名记录
+     * @auth true
+     * @menu true
+     * @throws \think\Exception
+     * @throws \think\db\exception\DataNotFoundException
+     * @throws \think\db\exception\ModelNotFoundException
+     * @throws \think\exception\DbException
+     * @throws \think\exception\PDOException
+     */
+    public function apply()
+    {
+        $id = $this->request->get('act_id');
+        $name = $this->request->get('name');
+        $phone = $this->request->get('phone');
+        $this->title = '报名记录';
+        $where = [];
+        $where[]= ['a.act_id','=' ,$id];
+        $where[]= ['a.is_deleted','=' ,0];
+        $where[]= ['a.status','=' ,1];
+        $where[]= ['a.status','=' ,1];
+        if($name)  $where[]= ['a.name','like' ,'%'.$name.'%'];
+        if($phone)  $where[]= ['a.phone','like' ,'%'.$phone.'%'];
+        $query = $this->_query('activity_apply')
+            ->alias('a')
+            ->field('a.*,u.name user_name,u.headimg')
+            ->where($where)
+            ->leftJoin('store_member u','u.id = a.user_id')
+            ->order('a.id desc')->page();
+        $this->fetch();
+    }
+
+    /**
+     * 上架
+     * @auth true
+     * @menu true
+     * @throws \think\Exception
+     * @throws \think\db\exception\DataNotFoundException
+     * @throws \think\db\exception\ModelNotFoundException
+     * @throws \think\exception\DbException
+     * @throws \think\exception\PDOException
+     */
+    public function up()
+    {
+        $this->_save($this->table, ['status' => '1']);
+    }
+
+    /**
+     * 取消
+     * @auth true
+     * @menu true
+     * @throws \think\Exception
+     * @throws \think\db\exception\DataNotFoundException
+     * @throws \think\db\exception\ModelNotFoundException
+     * @throws \think\exception\DbException
+     * @throws \think\exception\PDOException
+     */
+    public function down()
+    {
+        $this->_save($this->table, ['status' => '2']);
+    }
+
+
+
+    public function export(){
+
+        $id = $this->request->get('act_id');
+        $name = $this->request->get('name');
+        $phone = $this->request->get('phone');
+        $this->title = '报名记录';
+        $where = [];
+        $where[]= ['a.act_id','=' ,$id];
+        $where[]= ['a.is_deleted','=' ,0];
+        $where[]= ['a.status','=' ,1];
+        $where[]= ['a.status','=' ,1];
+        if($name)  $where[]= ['a.name','like' ,'%'.$name.'%'];
+        if($phone)  $where[]= ['a.phone','like' ,'%'.$phone.'%'];
+        $data =Db::name('activity_apply')
+            ->alias('a')
+            ->field('a.*,u.name user_name,u.headimg')
+            ->where($where)
+            ->leftJoin('store_member u','u.id = a.user_id')
+            ->order('a.id desc')->select();
+        if(empty($data)) $this->error('暂无可以导出的数据');
+        foreach ($data as  $k=>&$v) {
+
+        }
+        $field=array(
+            'A' => array('order_no', '订单号'),
+            'B' => array('name', '联系人'),
+            'C' => array('phone', '电话'),
+            'D' => array('money','订单金额'),
+            'E' => array('num','人数'),
+            'F' => array('email','邮箱'),
+            'G' => array('create_at', '时间'),
+        );
+        $this->phpExcelList($field,$data,'报名列表');
+    }
+
+    public function phpExcelList($field=[],$list=[],$title='文件'){
+        $PHPExcel=new \PHPExcel();
+        $PHPSheet=$PHPExcel->getActiveSheet();
+        $PHPSheet->setTitle('demo'); //给当前主办方sheet设置名称
+        foreach($list as $key=>$value)
+        {
+            foreach($field as $k=>$v){
+                if($key == 0){
+                    $PHPSheet= $PHPExcel->getActiveSheet()->setCellValue($k.'1',$v[1]);
+                }
+                $i=$key+2;
+                $PHPExcel->getActiveSheet()->setCellValue($k . $i, $value[$v[0]]);
+            }
+        }
+        $PHPWriter = \PHPExcel_IOFactory::createWriter($PHPExcel,'Excel2007'); //按照指定格式生成Excel文件,
+        header('Content-Type: application/vnd.ms-excel'); // 告诉浏览器生成一个excel05版的表格
+        header("Content-Disposition: attachment;filename={$title}.xls"); //告诉浏览器输出文件的名称
+        header('Cache-Control: max-age=0'); //禁止缓存
+        $PHPWriter->save("php://output"); //输出到浏览器
+    }
+
+    protected function _form_result(&$data)
+    {
+        $this->success('操作成功', 'javascript:history.back()');
+    }
+
+
+
+
+}

+ 83 - 0
application/operate/view/sponsor/apply.html

@@ -0,0 +1,83 @@
+{extend name='admin@main'}
+
+{block name="content"}
+<div class="think-box-shadow">
+    <fieldset>
+        <legend>条件搜索</legend>
+        <form class="layui-form layui-form-pane form-search" action="{:request()->url()}" onsubmit="return false" method="get" autocomplete="off">
+            <div class="layui-form-item layui-inline">
+                <label class="layui-form-label">联系方式</label>
+                <div class="layui-input-inline">
+                    <input name="phone" value="{$Think.get.phone|default=''}" placeholder="请输入联系方式" class="layui-input">
+                </div>
+            </div>
+            <div class="layui-form-item layui-inline">
+                <label class="layui-form-label">联系人</label>
+                <div class="layui-input-inline">
+                    <input name="name" value="{$Think.get.name|default=''}" placeholder="请输入联系人" class="layui-input">
+                    <input type="hidden" name="act_id" value="{$Think.get.act_id|default=''}"  class="layui-input">
+                </div>
+            </div>
+
+            <div class="layui-form-item layui-inline">
+                <button class="layui-btn layui-btn-primary"><i class="layui-icon">&#xe615;</i> 搜 索</button>
+            </div>
+            <div class="layui-form-item layui-inline" style="margin-left: 5px;">
+                <div  data-title="导出" class='layui-btn layui-btn-sm layui-btn-primary' id="download">导出</div>
+            </div>
+        </form>
+        <script>
+            form.render();
+            $('#download').click(function () {
+                window.location.href = "{:url('export')}?phone={$Think.get.phone|default=''}&name={$Think.get.name|default=''}&act_id={$Think.get.act_id|default=''}" + $(this).parents('form').serialize();
+            });
+        </script>
+    </fieldset>
+
+    <table class="layui-table margin-top-20" lay-skin="line">
+        <thead>
+        <tr>
+            <th class='text-left nowrap'>报名会员</th>
+            <th class='text-left nowrap'>报名订单</th>
+            <th class='text-left nowrap'>报名信息</th>
+            <th class='text-left nowrap'>报名时间</th>
+        </tr>
+        </thead>
+        <tbody>
+        {foreach $list as $key=>$vo}
+        <tr>
+            <td class='text-left nowrap'>
+                <img    class="margin-right-5 text-top" data-tips-image="{$vo.headimg|default=''}"  src="{$vo.headimg|default=''}" width="50px">
+                <div class="inline-block">
+                    会员ID:{$vo.user_id|default=''}<br><br>
+                    名称: {$vo.user_name|default=''}
+                </div>
+            </td>
+
+            <td class='text-left nowrap'>
+                <div class="inline-block">
+                    单号:{$vo.order_no|default=''}<br/>
+                    金额:{$vo.money|default=''}<br/>
+                    人数:{$vo.num|default=''}
+                </div>
+            </td>
+
+            <td class='text-left nowrap'>
+                <div class="inline-block">
+                    联系人:{$vo.name|default=''}<br/>
+                    电话:{$vo.phone|default=''}<br/>
+                    邮箱:{$vo.email|default=''}
+                </div>
+            </td>
+            <td class='text-left nowrap'>{$vo.create_at|default='--'}</td>
+        </tr>
+        {/foreach}
+        </tbody>
+    </table>
+
+    {empty name='list'}<span class="notdata">没有记录哦</span>{else}{$pagehtml|raw|default=''}{/empty}
+</div>
+{/block}
+
+
+

+ 160 - 0
application/operate/view/sponsor/form.html

@@ -0,0 +1,160 @@
+{extend name='admin@main'}
+<style>
+
+</style>
+{block name="content"}
+<form onsubmit="return false;" id="GoodsForm" data-auto="true" method="post" class='layui-form layui-card' autocomplete="off">
+    <div class="layui-card-body think-box-shadow padding-left-40">
+
+        <div class="layui-form-item layui-row layui-col-space15">
+
+            <label class="layui-col-xs15 relative">
+                <span class="color-green">主办方名称</span>
+                <input name="title" required class="layui-input" placeholder="请输入主办方名称" value="{$vo.title|default=''}">
+            </label>
+        </div>
+
+
+        <div class="layui-form-item layui-row layui-col-space15">
+            <label class="layui-col-xs15 relative">
+                <span class="color-green">标签</span>
+                <input name="label" required class="layui-input" placeholder="请输入活动标签" value="{$vo.label|default=''}">
+            </label>
+        </div>
+
+
+
+        <div class="layui-form-item layui-row layui-col-space15">
+            <label class="layui-col-xs15 relative">
+                <span class="color-green">活动地址</span>
+                <input name="address" required class="layui-input" placeholder="请输入活动活动地址" value="{$vo.address|default=''}">
+            </label>
+        </div>
+
+
+        <div class="layui-form-item layui-row layui-col-space9">
+            <span class="color-green label-required-prev">图片</span>
+            <table class="layui-table relative layui-col-space9">
+                <thead>
+                <tr>
+                    <td width="auto" class="text-left"><input name="cover" type="hidden" value="{$vo.cover|default=''}"></td>
+                </tr>
+                </thead>
+            </table>
+            <script> $('[name="cover"]').uploadOneImage()</script>
+        </div>
+
+        <div class="layui-form-item layui-row layui-col-space9">
+            <label class="layui-col-xs15 relative">
+                <span class="color-green">详情</span>
+                <textarea name="content">{$vo.content|default=""}</textarea>
+            </label>
+        </div>
+        <div class="layui-form-item text-center">
+            {notempty name='vo.id'}<input type="hidden" name="id" value="{$vo.id}">{/notempty}
+            <button class="layui-btn" type="submit">保存</button>
+            <button class="layui-btn layui-btn-danger" type='button' onclick="history.go(-1)" data-close>返回</button>
+        </div>
+
+    </div>
+</form>
+{/block}
+
+{block name='script'}
+
+<script>
+    layui.form.render();
+    require(['ckeditor', 'angular'], function () {
+        window.createEditor('[name="content"]', {
+            height: 500,
+
+        });
+    })
+    layui.use('form', function () {
+        var form = layui.form;
+        //日期时间范围
+        laydate.render({
+            elem: '#start_time'
+            ,type: 'datetime'
+        });
+        laydate.render({
+            elem: '#end_time'
+            ,type: 'datetime'
+        });
+    })
+
+    // 添加设置
+    $(document).on('click',".add_goods_no",function () {
+        var knum = $('.no_html tr').length;
+        var no_html = get_ht(knum);
+        $(".no_html").append(no_html);
+        form.render();
+        console.log(a);// 别删这个!!!
+    })
+    // 删除设置
+    $(document).on('click',".del_no",function (){
+        var knum = $('.no_html tr').length;
+        if(knum == 1) {
+            layer.msg('不能全部删除!')
+            form.render();
+            console.log(a);// 别删这个!!!
+        }
+        var index= $(".del_no").index(this);
+        $(".no_detail").eq(index).remove();
+        form.render();
+        console.log(a);// 别删这个!!!
+    })
+    var is_add = parseInt('{$isAddMode|default=0}');
+    if(is_add){
+        $(".no_html").html(get_ht(0));
+    }else{
+        var ladder = {:json_encode($ladder)};
+        console.log(ladder);
+        if(ladder && ladder.length > 0) {
+            var no_html = '';
+            $.each(ladder,function (lk,lv) {
+                no_html  += ' <tr  class="no_detail change_del" data-dh ="'+lk+'">';
+                no_html  +=     "<td class='text-left nowrap'>" +
+                    "<input type='text'  class='layui-input' name='ladder_title[]' value='"+lv.ladder_title+"'/>" +
+                    "</td>";
+                no_html  +=     "<td class='text-left nowrap'>" +
+                    "<input type=''  class='layui-input' name='ladder_num[]' value='"+lv.ladder_num+"'/>" +
+                    "</td>";
+                no_html  +=     "<td class='text-left nowrap'>" +
+                    "<input type=''  class='layui-input' name='ladder_price[]' value='"+lv.ladder_price+"'/>" +
+                    "</td>";
+                no_html  +=     "<td class='text-left nowrap'>" +
+                    "<a class=\"layui-btn layui-btn-sm layui-btn-danger del_no\">删 除</a>" +
+                    "<a class=\"layui-btn layui-btn-sm layui-btn-sm add_goods_no\">添 加</a>" +
+                    "</td>"
+                no_html  += "</tr>";
+            })
+            $(".no_html").html(no_html);
+        }else{
+            $(".no_html").html(get_ht(0));
+        }
+        window.form.render();
+    }
+    function  get_ht(k) {
+        var award_length = $(".no_detail").length;
+        var no_html = '';
+        no_html  += ' <tr  class="no_detail change_del" data-dh ="'+k+'">';
+        no_html  +=     "<td class='text-left nowrap'>" +
+            "<input type='text'  class='layui-input' name='ladder_title[]' value=''/>" +
+            "</td>";
+        no_html  +=     "<td class='text-left nowrap'>" +
+            "<input type=''  class='layui-input' name='ladder_num[]' value=''/>" +
+            "</td>";
+        no_html  +=     "<td class='text-left nowrap'>" +
+            "<input type=''  class='layui-input' name='ladder_price[]' value=''/>" +
+            "</td>";
+        no_html  +=     "<td class='text-left nowrap'>" +
+            "<a class=\"layui-btn layui-btn-sm layui-btn-danger del_no\">删 除</a>" +
+            "<a class=\"layui-btn layui-btn-sm layui-btn-sm add_goods_no\">添 加</a>" +
+            "</td>"
+        no_html  += "</tr>";
+        return   no_html;
+    }
+
+</script>
+{/block}

+ 74 - 0
application/operate/view/sponsor/index.html

@@ -0,0 +1,74 @@
+{extend name='admin@main'}
+
+{block name="button"}
+<button data-open='{:url("add")}' data-title="添加" class='layui-btn layui-btn-sm layui-btn-primary'>添加</button>
+{/block}
+{block name="content"}
+<div class="think-box-shadow">
+    {include file='sponsor/index_search'}
+    <table class="layui-table margin-top-20" lay-skin="line">
+        <thead>
+        <tr>
+            <th class='list-table-sort-td'>
+                <button type="button" data-reload class="layui-btn layui-btn-xs">刷 新</button>
+            </th>
+            <th class='text-left nowrap'>主办方</th>
+            <th class='text-left nowrap'>封面</th>
+            <th class='text-left '>添加时间</th>
+            <th class="text-left" style="width: 20%">操作</th>
+        </tr>
+        </thead>
+        <tbody>
+        {foreach $list as $key=>$vo}
+        <tr>
+            <td class='list-table-sort-td'>
+                <input data-action-blur="{:request()->url()}" data-value="id#{$vo.id};action#sort;sort#{value}" data-loading="false" value="{$vo.sort}" class="list-sort-input">
+            </td>
+            <td class='text-left nowrap'>{$vo.title|default='--'}</td>
+            <td class='text-left nowrap'><img data-tips-image="{$vo.cover|default=''}"  src="{$vo.cover|default=''}" height="50" width="110px"></td>
+            <td class='text-left'>{$vo.create_at|default='--'}</td>
+            <td class='text-left' style="width: 20%">
+                <a data-title="编辑" class="layui-btn layui-btn-sm" data-open='{:url("edit")}?id={$vo.id}'>编 辑</a>
+                <a data-title="报名记录" class="layui-btn layui-btn-sm" data-open='{:url("apply")}?act_id={$vo.id}'>报名记录</a>
+
+                {if isset($vo.status) and $vo.status eq 1}
+                <a class="layui-btn layui-btn-sm layui-btn-warm" data-action="{:url('down')}" data-value="id#{$vo.id};status#2">取 消</a>
+                {else}
+                <a class="layui-btn layui-btn-sm layui-btn-warm" data-action="{:url('up')}" data-value="id#{$vo.id};status#1">上 架</a>
+                {/if}
+
+                <span class="layui-btn layui-btn-sm layui-btn-danger" onclick="btn_confirm('删除','del','{$vo.id}');">删 除</span>
+            </td>
+        </tr>
+        {/foreach}
+        </tbody>
+    </table>
+
+    {empty name='list'}<span class="notdata">没有记录哦</span>{else}{$pagehtml|raw|default=''}{/empty}
+</div>
+<script>
+    function btn_confirm(msg,fun,id) {
+        layer.confirm('请确定是否'+msg, {btn: ['确定', '取消'], title: "提示"}, function () {
+            var url = "/operate/sponsor/"+fun;
+            layer.closeAll();
+            $.ajax({
+                type: "post",
+                url: url,
+                data: {id:id},
+                dataType: "json",
+                async: false,
+                success: function (data) {
+                    layer.msg(data.info);
+                    setTimeout(function () {
+                        window.location.reload();
+                    },1000)
+                }
+            });
+        });
+    }
+
+</script>
+{/block}
+
+
+

+ 16 - 0
application/operate/view/sponsor/index_search.html

@@ -0,0 +1,16 @@
+<fieldset>
+    <legend>条件搜索</legend>
+    <form class="layui-form layui-form-pane form-search" action="{:request()->url()}" onsubmit="return false" method="get" autocomplete="off">
+        <div class="layui-form-item layui-inline">
+            <label class="layui-form-label">主办方</label>
+            <div class="layui-input-inline">
+                <input name="title" value="{$Think.get.title|default=''}" placeholder="请输入主办方名称" class="layui-input">
+            </div>
+        </div>
+
+        <div class="layui-form-item layui-inline">
+            <button class="layui-btn layui-btn-primary"><i class="layui-icon">&#xe615;</i> 搜 索</button>
+        </div>
+    </form>
+    <script>form.render()</script>
+</fieldset>