199 lines
18 KiB
PHP
199 lines
18 KiB
PHP
<?php /*a:3:{s:71:"/www/wwwroot/app.cxhxy.dev.1nww.com/app/store/view/food/user/index.html";i:1700553054;s:67:"/www/wwwroot/app.cxhxy.dev.1nww.com/app/store/view/layout/food.html";i:1700553054;s:81:"/www/wwwroot/app.cxhxy.dev.1nww.com/app/store/view/food/user/tpl/tp_recharge.html";i:1700553054;}*/ ?>
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en">
|
|
|
|
<head>
|
|
|
|
<meta charset="utf-8"/>
|
|
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
|
|
|
|
<title><?php echo htmlentities($app_name); ?>管理后台</title>
|
|
|
|
<meta name="author" content="<?php echo htmlentities($web['name']); ?>">
|
|
|
|
<meta name="keywords" content="<?php echo htmlentities($web['keywords']); ?>">
|
|
|
|
<meta name="description" content="<?php echo htmlentities($web['description']); ?>">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
|
|
|
<meta name="referrer" content="no-referrer-when-downgrade">
|
|
|
|
<meta http-equiv="Cache-Control" content="no-siteapp"/>
|
|
|
|
<link rel="icon" href="/favicon.png" type="image/x-icon">
|
|
|
|
<link rel="stylesheet" href="/assets/plugins/amazeui/amazeui.css?v=<?php echo htmlentities($version); ?>"/>
|
|
|
|
<link rel="stylesheet" href="/assets/css/hema.app.css?v=<?php echo htmlentities($version); ?>"/>
|
|
|
|
<link rel="stylesheet" href="/addons/upload/css/file.library.css?v=<?php echo htmlentities($version); ?>"/>
|
|
|
|
<script src="/assets/plugins/jquery/jquery.min.js?v=<?php echo htmlentities($version); ?>"></script>
|
|
|
|
<link rel="stylesheet" href="/assets/plugins/iconfont/iconfont.css?v=<?php echo htmlentities($version); ?>">
|
|
|
|
<script src="/assets/plugins/iconfont/iconfont.js?v=<?php echo htmlentities($version); ?>"></script>
|
|
|
|
<script>
|
|
|
|
BASE_URL = "<?php echo isset($base_url) ? $base_url : ''; ?>";
|
|
|
|
STORE_URL = "<?php echo isset($store_url) ? $store_url : ''; ?>";
|
|
|
|
APPLET_ID = "<?php echo isset($applet_id) ? $applet_id : 0; ?>";
|
|
|
|
</script>
|
|
|
|
</head>
|
|
|
|
|
|
|
|
<body data-type="">
|
|
|
|
<div class="am-g tpl-g">
|
|
|
|
<!-- 头部 -->
|
|
|
|
<header class="tpl-header">
|
|
|
|
<!-- 右侧内容 -->
|
|
|
|
<div class="tpl-header-fluid">
|
|
|
|
<!-- 侧边切换 -->
|
|
|
|
<div class="am-fl tpl-header-button switch-button">
|
|
|
|
<i class="iconfont iconzhedie"></i>
|
|
|
|
</div>
|
|
|
|
<!-- 刷新页面 -->
|
|
|
|
<div class="am-fl tpl-header-button refresh-button">
|
|
|
|
<i class="iconfont iconshuaxin"></i>
|
|
|
|
</div>
|
|
|
|
<!-- 超链接-->
|
|
|
|
<div class="am-fl tpl-header-navbar">
|
|
|
|
<ul>
|
|
|
|
<!-- 网站首页 -->
|
|
|
|
<li class="am-text-sm">
|
|
|
|
<a href="/">
|
|
|
|
<i class="iconfont iconshouye"></i> 网站首页
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
<!-- 其它功能-->
|
|
|
|
<div class="am-fr tpl-header-navbar">
|
|
|
|
<ul>
|
|
|
|
<li class="am-text-sm">
|
|
|
|
<div class="am-dropdown" data-am-dropdown="{boundary: '.am-topbar'}">
|
|
|
|
<div class="am-topbar-btn am-dropdown-toggle" data-am-dropdown-toggle>
|
|
|
|
<img src="<?php echo htmlentities($user['user']['avatar']); ?>" />
|
|
|
|
<?php echo htmlentities($user['user']['user_name']); ?>
|
|
|
|
<span class="am-icon-caret-down"></span>
|
|
|
|
</div>
|
|
|
|
<ul class="am-dropdown-content">
|
|
|
|
<li><a href="/user">用户中心</a></li>
|
|
|
|
<li><a href="/store/<?php echo htmlentities($app_type); ?>.setting/renew">修改密码</a></li>
|
|
|
|
<li><a href="/store/passport/<?php echo htmlentities($logout); ?>?app_type=<?php echo htmlentities($app_type); ?>">安全退出</a></li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
</header>
|
|
|
|
<!-- 侧边导航栏 -->
|
|
|
|
<div class="left-sidebar dis-flex">
|
|
|
|
<!-- 一级菜单 -->
|
|
|
|
<ul class="sidebar-nav">
|
|
|
|
<li class="sidebar-nav-heading"><?php echo htmlentities($app_name); ?> <small>V<?php echo htmlentities((isset($version) && ($version !== '')?$version:'1.0.0')); ?></small></li>
|
|
|
|
<?php foreach($menus as $key => $item): ?>
|
|
|
|
<li class="sidebar-nav-link">
|
|
|
|
<a href="<?php echo isset($item['index'])?url($item['index']):'javascript:void(0);'; ?>"
|
|
|
|
class="<?php echo !empty($item['active']) ? 'active' : ''; ?>">
|
|
|
|
<?php if(isset($item['is_svg']) && $item['is_svg'] === true): ?>
|
|
|
|
<svg class="icon sidebar-nav-link-logo" aria-hidden="true">
|
|
|
|
<use xlink:href="#<?php echo htmlentities($item['icon']); ?>"></use>
|
|
|
|
</svg>
|
|
|
|
<?php else: ?>
|
|
|
|
<i class="iconfont sidebar-nav-link-logo <?= $item['icon'] ?>"
|
|
|
|
style="color:<?php echo isset($item['color'])?$item['color']:''; ?>;"></i>
|
|
|
|
<?php endif; ?>
|
|
|
|
<?php echo htmlentities($item['name']); ?>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<?php endforeach; ?>
|
|
|
|
</ul>
|
|
|
|
<!-- 子级菜单-->
|
|
|
|
<?php $second = isset($menus[$group]['submenu']) ? $menus[$group]['submenu'] : []; if(!empty($second)): ?>
|
|
|
|
<ul class="left-sidebar-second">
|
|
|
|
<li class="sidebar-second-title"><?php echo htmlentities($menus[$group]['name']); ?></li>
|
|
|
|
<li class="sidebar-second-item">
|
|
|
|
<?php foreach($second as $item): if(!isset($item['submenu'])): ?>
|
|
|
|
<!-- 二级菜单-->
|
|
|
|
<a href="<?= url($item['index']) ?>" class="<?= $item['active'] ? 'active' : '' ?>">
|
|
|
|
<?= $item['name']; ?>
|
|
|
|
</a>
|
|
|
|
<?php else: ?>
|
|
|
|
<!-- 三级菜单-->
|
|
|
|
<div class="sidebar-third-item">
|
|
|
|
<a href="javascript:void(0);"
|
|
|
|
class="sidebar-nav-sub-title <?php echo !empty($item['active']) ? 'active' : ''; ?>">
|
|
|
|
<i class="iconfont icongengduo"></i>
|
|
|
|
<?php echo htmlentities($item['name']); ?>
|
|
|
|
</a>
|
|
|
|
<ul class="sidebar-third-nav-sub">
|
|
|
|
<?php foreach($item['submenu'] as $third): ?>
|
|
|
|
<li>
|
|
|
|
<a class="<?php echo !empty($third['active']) ? 'active' : ''; ?>"
|
|
|
|
href="<?php echo url($third['index']); ?>">
|
|
|
|
<?php echo htmlentities($third['name']); ?>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<?php endforeach; ?>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
<?php endif; ?>
|
|
|
|
<?php endforeach; ?>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
<?php endif; ?>
|
|
|
|
</div>
|
|
|
|
<!-- 内容区域 start -->
|
|
|
|
<div class="tpl-content-wrapper <?php echo empty($second) ? 'no-sidebar-second' : ''; ?>">
|
|
|
|
|
|
|
|
<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 am-cf">
|
|
|
|
<form class="toolbar-form" action="<?php echo url('food.user/index'); ?>">
|
|
|
|
<div class="am-u-sm-12">
|
|
|
|
<div class="am fr">
|
|
|
|
<div class="am-form-group am-fl">
|
|
|
|
<select name="gender" data-am-selected="{btnSize: 'sm', placeholder: '性别不限'}">
|
|
|
|
<option value="all" <?= $gender == 'all' ?'selected':''?>>全部</option>
|
|
|
|
<option value="1" <?= $gender == '1' ?'selected':''?>>先生</option>
|
|
|
|
<option value="2" <?= $gender == '2' ?'selected':''?>>女士</option>
|
|
|
|
<option value="0" <?= $gender == '0' ?'selected':''?>>未知</option>
|
|
|
|
</select>
|
|
|
|
</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="请输入微信昵称、ID、手机号" value="<?php echo htmlentities($search); ?>">
|
|
|
|
<div class="am-input-group-btn">
|
|
|
|
<button class="am-btn am-btn-default am-icon-search" type="submit"></button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
<div class="am-scrollable-horizontal am-u-sm-12">
|
|
|
|
<table width="100%" class="am-table am-table-hover tpl-table-black">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>编号</th>
|
|
|
|
<th>头像</th>
|
|
|
|
<th>昵称</th>
|
|
|
|
<th>性别</th>
|
|
|
|
<th>手机</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"><?php echo htmlentities($item['user_id']); ?></td>
|
|
|
|
<td class="am-text-middle">
|
|
|
|
<img src="<?php echo htmlentities($item['avatar']['url']); ?>" width="72" height="72" alt="">
|
|
|
|
</td>
|
|
|
|
<td class="am-text-middle"><?php echo htmlentities((isset($item['nickname']) && ($item['nickname'] !== '')?$item['nickname']:'--')); ?></td>
|
|
|
|
<td class="am-text-middle"><?php echo htmlentities($item['gender']['text']); ?></td>
|
|
|
|
<td class="am-text-middle"><?php echo htmlentities($item['phone']); ?></td>
|
|
|
|
<td class="am-text-middle"><?php echo htmlentities($item['pay']); ?></td>
|
|
|
|
<td class="am-text-middle"><?php echo htmlentities($item['money']); ?></td>
|
|
|
|
<td class="am-text-middle"><?php echo htmlentities($item['score']); ?></td>
|
|
|
|
<td class="am-text-middle"><?php echo htmlentities((isset($item['province']) && ($item['province'] !== '')?$item['province']:'--')); ?></td>
|
|
|
|
<td class="am-text-middle"><?php echo htmlentities((isset($item['city']) && ($item['city'] !== '')?$item['city']:'--')); ?></td>
|
|
|
|
<td class="am-text-middle"><?php echo htmlentities($item['platform']['text']); ?></td>
|
|
|
|
<td class="am-text-middle">
|
|
|
|
<div class="tpl-table-black-operation">
|
|
|
|
<a class="j-recharge tpl-table-black-operation-default"
|
|
|
|
href="javascript:void(0);"
|
|
|
|
title="用户充值"
|
|
|
|
data-user_id="<?php echo htmlentities($item['user_id']); ?>"
|
|
|
|
data-money="<?php echo htmlentities($item['money']); ?>"
|
|
|
|
<i class="iconfont icon-qiandai"></i>充值
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<?php endforeach; else: ?>
|
|
|
|
<tr>
|
|
|
|
<td colspan="12" class="am-text-center">暂无记录</td>
|
|
|
|
</tr>
|
|
|
|
<?php endif; ?>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
<div class="am-u-lg-12 am-cf">
|
|
|
|
<div class="am-fr"><?php echo $list->render(); ?> </div>
|
|
|
|
<div class="am-fr pagination-total am-margin-right">
|
|
|
|
<div class="am-vertical-align-middle">总记录:<?php echo $list->total(); ?></div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- 模板:用户充值 -->
|
|
|
|
<script id="tpl-recharge" type="text/template">
|
|
|
|
<div class="am-padding-xs am-padding-top-sm">
|
|
|
|
<div class="am-form-group">
|
|
|
|
<label class="am-u-sm-3 am-form-label">当前余额</label>
|
|
|
|
<div class="am-u-sm-8 am-u-end">
|
|
|
|
<input type="hidden" name="data[user_id]" value="{{ user_id }}">
|
|
|
|
<div class="am-form--static">{{ money }}</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="am-form-group">
|
|
|
|
<label class="am-u-sm-3 am-form-label">操作方式</label>
|
|
|
|
<div class="am-u-sm-8 am-u-end">
|
|
|
|
<label class="am-radio-inline">
|
|
|
|
<input type="radio" name="data[mode]" value="10" data-am-ucheck checked> 充值
|
|
|
|
</label>
|
|
|
|
<label class="am-radio-inline">
|
|
|
|
<input type="radio" name="data[mode]" value="40" data-am-ucheck> 赠送
|
|
|
|
</label>
|
|
|
|
<label class="am-radio-inline">
|
|
|
|
<input type="radio" name="data[mode]" value="50" data-am-ucheck> 扣除
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="am-form-group">
|
|
|
|
<label class="am-u-sm-3 am-form-label form-require">变更金额</label>
|
|
|
|
<div class="am-u-sm-8 am-u-end">
|
|
|
|
<input type="number" min="0" class="tpl-form-input" placeholder="请输入要变更的金额" name="data[value]" value="" required>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<?php if($user['applet']['shop_mode']['value']==20): ?>
|
|
|
|
<div class="am-form-group">
|
|
|
|
<label class="am-u-sm-3 am-form-label form-require">选择门店</label>
|
|
|
|
<div class="am-u-sm-8 am-u-end">
|
|
|
|
<select name="data[shop_id]" required >
|
|
|
|
<option value="">请选择门店</option>
|
|
|
|
<?php if(isset($shop)): foreach($shop as $item): ?>
|
|
|
|
<option value="<?php echo htmlentities($item['shop_id']); ?>"><?php echo htmlentities($item['shop_name']); ?></option>
|
|
|
|
<?php endforeach; ?>
|
|
|
|
<?php endif; ?>
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<?php endif; ?>
|
|
|
|
<div class="am-form-group">
|
|
|
|
<label class="am-u-sm-3 am-form-label">操作备注</label>
|
|
|
|
<div class="am-u-sm-8 am-u-end">
|
|
|
|
<textarea rows="2" name="data[remark]" placeholder="请输入操作备注" class="am-field-valid"></textarea>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</script>
|
|
|
|
<script>
|
|
|
|
$(function () {
|
|
|
|
/**
|
|
|
|
* 账户充值
|
|
|
|
*/
|
|
|
|
$('.j-recharge').on('click', function () {
|
|
|
|
var data = $(this).data();
|
|
|
|
$.showAction({
|
|
|
|
title: '余额操作',
|
|
|
|
area: '460px',
|
|
|
|
content: template('tpl-recharge', data),
|
|
|
|
uCheck: true,
|
|
|
|
success: function ($content) {
|
|
|
|
$('#my-form').formPost({
|
|
|
|
url: "<?php echo url('food.user/recharge'); ?>"
|
|
|
|
});
|
|
|
|
},
|
|
|
|
btn2: function ($content) {
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
</script>
|
|
|
|
</div>
|
|
|
|
<!-- 内容区域 end -->
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<script src="/assets/plugins/layer/layer.js?v=<?php echo htmlentities($version); ?>"></script>
|
|
|
|
<script src="/assets/plugins/jquery/jquery.form.min.js?v=<?php echo htmlentities($version); ?>"></script>
|
|
|
|
<script src="/assets/plugins/amazeui/amazeui.min.js?v=<?php echo htmlentities($version); ?>"></script>
|
|
|
|
<script src="/assets/js/hema.app.js?v=<?php echo htmlentities($version); ?>"></script>
|
|
|
|
<script src="/assets/js/webuploader.html5only.js?v=<?php echo htmlentities($version); ?>"></script>
|
|
|
|
<script src="/assets/js/art-template.js?v=<?php echo htmlentities($version); ?>"></script>
|
|
|
|
<script src="/addons/upload/js/file.library.js?v=<?php echo htmlentities($version); ?>"></script>
|
|
|
|
</body>
|
|
|
|
|
|
|
|
</html>
|
|
|