wupengfei před 2 roky
rodič
revize
ba0a2fa856

+ 1 - 1
.idea/workspace.xml

@@ -146,7 +146,7 @@
       <workItem from="1661476137493" duration="628000" />
       <workItem from="1661480993675" duration="3163000" />
       <workItem from="1661561991957" duration="3680000" />
-      <workItem from="1661734371076" duration="12082000" />
+      <workItem from="1661734371076" duration="12855000" />
     </task>
     <servers />
   </component>

+ 6 - 2
application/user/controller/Member.php

@@ -50,8 +50,12 @@ class Member extends Controller
         $money_order   = input('money_order') == 1 ? 'asc' : 'desc';
         $query = $this->_query($this->table)->where('is_deleted',0)
             ->like('name,phone')
-            ->equal('status,vip,group,is_open_official_DDC');
-        $query->dateBetween('create_at')->order("id $id_order ,integral $money_order")->page();
+            ->equal('status,vip,group,is_open_official_DDC')->dateBetween('create_at');
+        if(input('money_order')){
+            $query->order("money $money_order")->page();
+        }else{
+            $query->order("id $id_order")->page();
+        }
     }
     /**
      * 数据列表处理

+ 1 - 1
application/user/view/member/index.html

@@ -67,7 +67,7 @@
                 {/if}
 
                 {if auth("store/member/remove")}
-                 <a class="layui-btn layui-btn-sm layui-btn-danger" data-confirm="确定要删除该用户吗?" data-action="{:url('remove')}" data-value="id#{$vo.id}">删 除</a>
+                <a class="layui-btn layui-btn-sm layui-btn-danger" data-confirm="确定要删除该用户吗?" data-action="{:url('remove')}" data-value="id#{$vo.id}">删 除</a>
                 {/if}
             </td>
         </tr>