wupengfei 2 年之前
父節點
當前提交
9d0c3f9f3b
共有 2 個文件被更改,包括 6 次插入0 次删除
  1. 1 0
      application/user/controller/Member.php
  2. 5 0
      application/user/view/member/index.html

+ 1 - 0
application/user/controller/Member.php

@@ -48,6 +48,7 @@ class Member extends Controller
         $this->title = '会员信息管理';
         $id_order = input('id_order') == 1 ? 'asc' : 'desc';
         $money_order   = input('money_order') == 1 ? 'asc' : 'desc';
+        $this->total_money = Db::name('store_member')->where('is_deleted',0)->sum('money');
         $query = $this->_query($this->table)->where('is_deleted',0)
             ->like('name,phone')
             ->equal('status,vip,group,is_open_official_DDC')->dateBetween('create_at');

+ 5 - 0
application/user/view/member/index.html

@@ -6,6 +6,11 @@
 
 {block name="content"}
 <div class="think-box-shadow">
+    <div style="background-color: #e3e3c7 ;height: 50px;overflow: hidden">
+        <p style="line-height: 50px;font-size: 16px">&nbsp;&nbsp;
+            用户总余额:<span style='color:red'>{$total_money|default='0'}</span>
+        </p>
+    </div>
     {include file='member/index_search'}
     <table class="layui-table margin-top-10" lay-skin="line">
         {notempty name='list'}