wupengfei 1 year ago
parent
commit
d48a852721

+ 3 - 2
.idea/workspace.xml

@@ -3,8 +3,9 @@
   <component name="ChangeListManager">
     <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/operate/controller/ActivityApplyItem.php" beforeDir="false" afterPath="$PROJECT_DIR$/application/operate/controller/ActivityApplyItem.php" afterDir="false" />
+      <change beforePath="$PROJECT_DIR$/application/operate/controller/ActivityQrcode.php" beforeDir="false" afterPath="$PROJECT_DIR$/application/operate/controller/ActivityQrcode.php" afterDir="false" />
       <change beforePath="$PROJECT_DIR$/application/operate/view/activity_apply_item/index.html" beforeDir="false" afterPath="$PROJECT_DIR$/application/operate/view/activity_apply_item/index.html" afterDir="false" />
+      <change beforePath="$PROJECT_DIR$/application/operate/view/activity_qrcode/index.html" beforeDir="false" afterPath="$PROJECT_DIR$/application/operate/view/activity_qrcode/index.html" afterDir="false" />
     </list>
     <option name="SHOW_DIALOG" value="false" />
     <option name="HIGHLIGHT_CONFLICTS" value="true" />
@@ -379,7 +380,7 @@
       <workItem from="1689813742376" duration="13449000" />
       <workItem from="1689900489647" duration="18483000" />
       <workItem from="1690159826319" duration="22343000" />
-      <workItem from="1690246325106" duration="6097000" />
+      <workItem from="1690246325106" duration="6248000" />
     </task>
     <servers />
   </component>

+ 11 - 0
application/operate/controller/ActivityQrcode.php

@@ -81,6 +81,17 @@ class ActivityQrcode extends Controller
         $this->_save($this->table, ['is_deleted' => '1']);
     }
 
+    /**
+     * 批量删除
+     * @auth true
+     * @throws \think\Exception
+     * @throws \think\exception\PDOException
+     */
+    public function remove()
+    {
+        $this->_save($this->table, ['is_deleted' => '1']);
+    }
+
 
     protected function _form_filter(&$data)
     {

+ 1 - 0
application/operate/view/activity_apply_item/index.html

@@ -112,6 +112,7 @@
                 {else}
                 <a data-title="详情" class="layui-btn layui-btn-sm " data-modal='{:url("edit")}?id={$vo.id}'>查看详情</a>
                 {/if}
+                <span class="layui-btn layui-btn-sm layui-btn-danger" onclick="btn_confirm('删除','remove','{$vo.id}');">删 除</span>
                 {eq name='vo.refund_status' value='4'}
                 <span class="layui-btn layui-btn-sm layui-btn-danger" onclick="btn_confirm('确认退款','refund','{$vo.id}');">退款</span>
                 {/eq}

+ 4 - 0
application/operate/view/activity_qrcode/index.html

@@ -2,6 +2,8 @@
 
 {block name="button"}
 <button data-modal='{:url("add")}?act_id={$Think.get.act_id}' data-title="添加" class='layui-btn layui-btn-sm layui-btn-primary'>添加</button>
+<button data-action='{:url("remove")}'  data-confirm="确定要删除吗?" data-csrf="{:systoken('remove')}" data-rule="id#{key}" class='layui-btn layui-btn-sm layui-btn-primary'>批量删除</button>
+
 {/block}
 
 
@@ -11,6 +13,7 @@
     <table class="layui-table margin-top-20" lay-skin="line">
         <thead>
         <tr>
+            <th class='list-table-check-td think-checkbox'><input data-auto-none data-check-target='.list-check-box' type='checkbox'></th>
             <th class='text-left nowrap'>ID</th>
             <th class='text-left nowrap'>活动标题</th>
             <th class='text-left nowrap'>手机号</th>
@@ -22,6 +25,7 @@
         <tbody>
         {foreach $list as $key=>$vo}
         <tr>
+            <td class='list-table-check-td think-checkbox'><input class="list-check-box" value='{$vo.id}' type='checkbox'></td>
             <td class='text-left nowrap'>{$vo.id|default=''}</td>
             <td class='text-left nowrap'>{$vo.act_title}</td>
             <td class='text-left nowrap'>{$vo.phone}</td>