This commit is contained in:
尖叫 2023-11-29 18:10:11 +08:00
parent aa55c392cf
commit dc411fa5fd
2 changed files with 6 additions and 58 deletions

View File

@ -101,60 +101,8 @@ $this->params['breadcrumbs'][] = $this->title;
</div>
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">我的上级</label>
<div class="layui-input-inline">
<?=$parent?>
<?php if(!empty($parent)): ?>
<button class="layui-btn" id="updateUp">更换上级</button>
<?php else: ?>
<button class="layui-btn" id="updateUp">绑定上级</button>
<?php endif; ?>
</div>
</div>
<div style="overflow-x: auto; overflow-y: auto;height: 400px">
<label class="layui-form-label">邀请列表</label>
<div class="layui-input-block">
<table class="layui-table" align="center">
<colgroup>
<col width="30">
<col width="150">
<col width="150">
<col width="150">
<col width="150">
<col width="100">
</colgroup>
<thead>
<tr>
<th style="text-align: center">ID</th>
<th style="text-align: center">用户名</th>
<th style="text-align: center">手机号</th>
<th style="text-align: center">直属团队(人数)</th>
<th style="text-align: center">注册日期</th>
<th style="text-align: center">操作</th>
</tr>
</thead>
<tbody style="text-align: center">
<?php foreach ($down as $index => $item) :?>
<tr>
<td><?= $item['id'] ?></td>
<td><?= $item['nickname'] ?></td>
<td><?= $item['mobile_phone'] ?></td>
<td><?= $item['down_count'] ?></td>
<td><?= date('Y-m-d H:i:s',$item['created_at']) ?></td>
<td>
<a class="layui-btn layui-btn-sm" lay-event="edit" href="<?= '/admin/distribution/team?id='.$item['id'] ?>">分销详情</a>
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>

View File

@ -347,11 +347,11 @@ $level_id = \Yii::$app->request->get('level_id');
, {field: 'mobile', title: '手机号',templet:'<div>+{{d.mobile_prefix}} {{d.mobile_phone}}</div>'}
, {field: 'gender_cn', title: '性别'}
, {field: 'level_id', title: '会员等级', templet:'#levelTpl'}
, {field: 'account_balance', title: '账户余额'}
, {field: 'account_balance_with', title: '可提现余额'}
, {field: 'account_integral', title: '积分余额'}
, {field: 'parent_name', title: '上级用户'}
, {field: 'parent_mobile', title: '上级手机号'}
// , {field: 'account_balance', title: '账户余额'}
// , {field: 'account_balance_with', title: '可提现余额'}
// , {field: 'account_integral', title: '积分余额'}
// , {field: 'parent_name', title: '上级用户'}
// , {field: 'parent_mobile', title: '上级手机号'}
, {field: 'created_at_cn', title: '注册时间'}
, {field: 'status_cn', title: '状态', templet:'#statusTpl'}
, {title: '操作',fixed: 'right', toolbar: '#rowBarTpl', width: 280}