Browse Source

修改用户管理

邹景立 3 years ago
parent
commit
1d65a682a1
2 changed files with 15 additions and 14 deletions
  1. 3 3
      app/data/controller/user/Admin.php
  2. 12 11
      app/data/view/user/admin/index.html

+ 3 - 3
app/data/controller/user/Admin.php

@@ -111,7 +111,7 @@ class Admin extends Controller
     }
 
     /**
-     * 取消上级代理
+     * 设为总部用户
      * @auth true
      * @throws \think\db\exception\DataNotFoundException
      * @throws \think\db\exception\DbException
@@ -128,8 +128,8 @@ class Admin extends Controller
         ]);
         // 刷新用户等级及上级等级
         UserUpgradeService::instance()->upgrade($user['id'], true);
-        sysoplog('前端用户管理', "取消用户[{$map['id']}]绑定的上级代理");
-        $this->success('取消上级代理成功!');
+        sysoplog('前端用户管理', "设置用户[{$map['id']}]为总部用户");
+        $this->success('设为总部用户成功!');
     }
 
     /**

+ 12 - 11
app/data/view/user/admin/index.html

@@ -98,35 +98,36 @@
                     <div>间接团队 <b>{$vo.teams_users_indirect}</b> 人 ( 业绩 <b>{$vo.teams_amount_indirect+0}</b> 元 )</div>
                 </td>
                 <td class="nowrap">
-                    <div>
-                        累计交易:<b class="color-blue font-s14">{$vo.order_amount_total+0}</b> 元
-                        {if $vo.buy_vip_entry}<b class="color-green margin-left-5">已入会</b>{else}<b class="color-desc margin-left-5">未入会</b>{/if}
-                    </div>
                     <div>注册时间:{$vo.create_at|format_datetime}</div>
-                    <div>使用状态:{if $vo.status eq 0}<b class="color-red">已冻结</b>{elseif $vo.status eq 1}<b class="color-green">已激活</b>{/if}
-                        <!--{notempty name='vo.pids'}-->
-                        <b class="margin-left-5 color-green">永久绑定</b>
+                    <div>
+                        代理关联:<!--{notempty name='vo.pids'}-->
+                        <b class="color-green">永久绑定</b>
                         <!--{if auth('parent')}-->
                         <a data-width="1080px" data-height="700px" data-iframe="{:url('parent')}?uid={$vo.id}" class="margin-left-5 notselect">更改绑定</a>
                         <!--{/if}-->
                         <!--{else}-->
                         {notempty name='vo.pid0'}
-                        <b class="margin-left-5 color-red">临时绑定</b>
+                        <b class="color-red">临时绑定</b>
                         <!--{if auth('forever')}-->
                         <a data-confirm="改为永久绑定其代理后不能撤回,确认修改吗?" data-load="{:url('forever')}?id={$vo.id}" class="margin-left-5 notselect">改为永久</a>
                         <!--{/if}-->
                         {else}
-                        <b class="margin-left-5 color-desc">没有绑定</b>
+                        <b class="color-desc">没有绑定</b>
                         <!--{if auth('parent')}-->
                         <a data-width="1080px" data-height="700px" data-iframe="{:url('parent')}?uid={$vo.id}" class="margin-left-5 notselect">设置绑定</a>
                         <!--{/if}-->
                         {/notempty}
                         <!--{/notempty}-->
                         <!--{if auth('unbind')}-->
-                        <a data-confirm="取消绑定后只能在后台设置其代理,确认取消吗?" data-load="{:url('unbind')}?id={$vo.id}" class="margin-left-5 notselect">取消绑定</a>
+                        <a data-confirm="设为总部后只能在后台设置其代理,确认设置吗?" data-load="{:url('unbind')}?id={$vo.id}" class="margin-left-5 notselect">设为总部</a>
                         <!--{/if}-->
                     </div>
-
+                    <div>
+                        <span>用户状态:</span>
+                        <span>{if $vo.status eq 0}<b class="color-red">已冻结</b>{elseif $vo.status eq 1}<b class="color-green">已激活</b>{/if}</span>
+                        <span class="margin-left-5">{if $vo.buy_vip_entry}<b class="color-green">已入会</b>{else}<b class="color-desc">未入会</b>{/if}</span>
+                        <span class="margin-left-5">已累计交易 <b class="color-blue font-s14">{$vo.order_amount_total+0}</b> 元</span>
+                    </div>
                 </td>
                 <td class="nowrap">