songxingwei 3 years ago
parent
commit
ba8ae7654e

+ 3 - 0
application/store/controller/Member.php

@@ -50,6 +50,9 @@ class Member extends Controller
         if (isset($_GET['keyword']) && $_GET['keyword']){
             $query->where('id|nickname','like','%'.$_GET['keyword'].'%');
         }
+        if (isset($_GET['addre']) && $_GET['addre']){
+            $query->where('province|city|area|address','like','%'.$_GET['addre'].'%');
+        }
         $query->dateBetween('create_at')->order('id desc')->page();
     }
 

+ 6 - 0
application/store/view/member/index_search.html

@@ -56,6 +56,12 @@
             </div>
         </div>
         <div class="layui-form-item layui-inline">
+            <label class="layui-form-label">地区关键词</label>
+            <div class="layui-input-inline">
+                <input name="addre" value="{$Think.get.addre|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="create_at" value="{$Think.get.create_at|default=''}" placeholder="请选择发送时间" class="layui-input">