hy-farm/muchang/backend/views/rebate/rebate_user_list.php
2026-05-29 19:54:56 +08:00

129 lines
6.0 KiB
PHP
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!-- 单个用户推广列表-->
<?php
use common\utils\CommUtil;
use yii\widgets\LinkPager;
$startDate = Yii::$app->request->get('startDate');
$endDate = Yii::$app->request->get('endDate');
$userID = Yii::$app->request->get('user_id');
$level = Yii::$app->request->get('level');
?>
<section class="content-header">
<!-- 查询-->
<div class="box box-primary">
<div id="app" class="box-body">
<el-row align="middle">
<el-col :span="6">
<div class="grid-content">
<el-date-picker
v-model="startDate"
type="date"
placeholder="开始日期">
</el-date-picker>
<span class="">-</span>
<el-date-picker
v-model="endDate"
type="date"
placeholder="结束日期">
</el-date-picker>
</div>
</el-col>
<el-col :span="3">
<div class="grid-content">
<el-input v-model="userID">
<template slot="prepend">玩家ID</template>
</el-input>
</div>
</el-col>
<el-col :span="2">
<div class="grid-content">
<el-select v-model="level" placeholder="推广等级" clearable >
<el-option
v-for="item in levels"
:key="item.value"
:label="item.label"
:value="item.value">
</el-option>
</el-select>
</div>
</el-col>
<el-button type="primary" @click="submit">查询</el-button>
</el-row>
</div>
</div>
</section>
<?php if (isset($list)): ?>
<!-- Main content -->
<section class="content">
<div class="box">
<div class="box-header">
<h3 class="box-title">推广列表</h3> <span class="pull-right">父级用户:<?=$parentUser?></span>
</div>
<!-- /.box-header -->
<div class="box-body">
<div id="example2_wrapper" class="dataTables_wrapper form-inline dt-bootstrap">
<div class="row">
<div class="col-sm-6"></div>
<div class="col-sm-6"></div>
</div>
<div class="row">
<div class="col-sm-12">
<table id="example2" class="table table-bordered table-hover dataTable" role="grid" aria-describedby="example2_info">
<thead>
<tr role="row">
<th class="sorting" tabindex="0" aria-controls="example2" rowspan="1" colspan="1" aria-label="Browser: activate to sort column ascending">用户ID</th>
<th class="sorting" tabindex="0" aria-controls="example2" rowspan="1" colspan="1" aria-label="Browser: activate to sort column ascending">电话</th>
<th class="sorting" tabindex="0" aria-controls="example2" rowspan="1" colspan="1" aria-label="Platform(s): activate to sort column ascending">昵称</th>
<th class="sorting" tabindex="0" aria-controls="example2" rowspan="1" colspan="1" aria-label="Platform(s): activate to sort column ascending">真实姓名</th>
<th class="sorting" tabindex="0" aria-controls="example2" rowspan="1" colspan="1" aria-label="Platform(s): activate to sort column ascending">推广等级</th>
<th class="sorting" tabindex="0" aria-controls="example2" rowspan="1" colspan="1" aria-label="CSS grade: activate to sort column ascending">创建时间</th>
</tr>
</thead>
<tbody>
<?php foreach ($list as $item): ?>
<tr role="row">
<td><?= $item['child_user_id'] ?></td>
<td><?= $item['phone'] ?></td>
<td><?= $item['nickname'] ?></td>
<td><?= $item['realname'] ?></td>
<td><?= $item['level'] ?></td>
<td><?= CommUtil::formatDate($item['created_at']) ?></td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>
</div>
<div class="row">
<div class="col-sm-5">
<div class="dataTables_info" id="example2_info" role="status" aria-live="polite"><?= sprintf('玩家总数%d', $totalCount); ?></div>
</div>
<div class="col-sm-7">
<div class="dataTables_paginate paging_simple_numbers" id="example2_paginate">
<?= LinkPager::widget(['pagination' => $pages]); ?>
</div>
</div>
</div>
</div>
</div>
<!-- /.box-body -->
</div>
</section>
<?php endif; ?>
<script>
let sumbitURL = "<?=\yii\helpers\Url::to(["rebate/rebate-user-list"]) ?>";
let startDate = "<?=$startDate ?>";
let endDate = "<?=$endDate?>";
let userID = "<?=$userID?>";
let level = "<?=$level?>";
</script>
<script src="<?= Yii::$app->getHomeUrl() ?>logicjs/rebate_user_list.js"></script>