宝体数据调用接口
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

120 lines
6.8 KiB

<div class="row-content am-cf">
<div class="row">
<div class="am-u-sm-12 am-u-md-12 am-u-lg-12">
<div class="widget am-cf">
<div class="widget-head am-cf">
<div class="widget-title am-cf">余额明细</div>
</div>
<div class="widget-body am-fr">
<!-- 工具栏 -->
<div class="page_toolbar am-margin-bottom-xl am-cf">
<form id="form-search" class="toolbar-form" action="">
<input type="hidden" name="s" value="/<?= $request->pathinfo() ?>">
<div class="am fr">
<div class="am-form-group am-fl">
<?php $scene = $request->get('scene'); ?>
<select name="scene"
data-am-selected="{btnSize: 'sm', placeholder: '余额变动场景'}">
<option value=""></option>
<option value="-1"
<?= $scene === '-1' ? 'selected' : '' ?>>全部
</option>
<?php foreach ($attributes['scene'] as $attr): ?>
<option value="<?= $attr['value'] ?>"
<?= $scene === (string)$attr['value'] ? 'selected' : '' ?>>
<?= $attr['name'] ?>
</option>
<?php endforeach; ?>
</select>
</div>
<div class="am-form-group tpl-form-border-form am-fl">
<input type="text" name="start_time"
class="am-form-field"
value="<?= $request->get('start_time') ?>" placeholder="请选择起始日期"
data-am-datepicker>
</div>
<div class="am-form-group tpl-form-border-form am-fl">
<input type="text" name="end_time"
class="am-form-field"
value="<?= $request->get('end_time') ?>" placeholder="请选择截止日期"
data-am-datepicker>
</div>
<div class="am-form-group am-fl">
<div class="am-input-group am-input-group-sm tpl-form-border-form">
<input type="text" class="am-form-field" name="search" placeholder="请输入用户昵称"
value="<?= $request->get('search') ?>">
<div class="am-input-group-btn">
<button class="am-btn am-btn-default am-icon-search" type="submit"></button>
</div>
</div>
</div>
</div>
</form>
</div>
<div class="am-scrollable-horizontal am-u-sm-12">
<table width="100%" class="am-table am-table-compact am-table-striped
tpl-table-black am-text-nowrap">
<thead>
<tr>
<th>ID</th>
<th>微信头像</th>
<th>微信昵称</th>
<th>余额变动场景</th>
<th>变动金额</th>
<th>描述/说明</th>
<th>管理员备注</th>
<th>创建时间</th>
</tr>
</thead>
<tbody>
<?php if (!$list->isEmpty()): foreach ($list as $item): ?>
<tr>
<td class="am-text-middle"><?= $item['log_id'] ?></td>
<td class="am-text-middle">
<a href="<?= $item['user']['avatarUrl'] ?>" title="点击查看大图" target="_blank">
<img src="<?= $item['user']['avatarUrl'] ?>" width="72" height="72" alt="">
</a>
</td>
<td class="am-text-middle">
<p class=""><?= $item['user']['nickName'] ?></p>
<p class="am-link-muted">(用户ID:<?= $item['user']['user_id'] ?>)</p>
</td>
<td class="am-text-middle">
<span class="am-badge am-badge-secondary"><?= $item['scene']['text'] ?></span>
</td>
<td class="am-text-middle">
<?= $item['money'] > 0 ? '+' : '' ?><?= $item['money'] ?>
</td>
<td class="am-text-middle"><?= $item['describe'] ?: '--' ?></td>
<td class="am-text-middle"><?= $item['remark'] ?: '--' ?></td>
<td class="am-text-middle"><?= $item['create_time'] ?></td>
</tr>
<?php endforeach; else: ?>
<tr>
<td colspan="11" class="am-text-center">暂无记录</td>
</tr>
<?php endif; ?>
</tbody>
</table>
</div>
<div class="am-u-lg-12 am-cf">
<div class="am-fr"><?= $list->render() ?> </div>
<div class="am-fr pagination-total am-margin-right">
<div class="am-vertical-align-middle">总记录:<?= $list->total() ?></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<script>
$(function () {
// 删除元素
var url = "<?= url('market.coupon/delete') ?>";
$('.item-delete').delete('coupon_id', url);
});
</script>