This commit is contained in:
test_service 2023-12-01 16:15:25 +08:00
parent d3170b4d1c
commit d9a24f6f53
7 changed files with 1105 additions and 1 deletions

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1,198 @@
<?php /*a:2:{s:75:"/www/wwwroot/app.cxhxy.dev.1nww.com/app/store/view/food/statistics/opt.html";i:1700553054;s:67:"/www/wwwroot/app.cxhxy.dev.1nww.com/app/store/view/layout/food.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">
<form id="my-form" class="am-form tpl-form-line-form" action="<?php echo url('food.statistics/index'); ?>" data-am-validator>
<div class="widget-body">
<fieldset>
<div class="widget-head am-cf">
<div class="widget-title am-fl">门店经营数据统计</div>
</div>
<?php if($user['applet']['shop_mode']['value']==20): ?>
<div class="am-form-group">
<label class="am-u-sm-3 am-u-lg-2 am-form-label form-require">选择门店 </label>
<div class="am-u-sm-9 am-u-end">
<select name="shop_id" required
data-am-selected="{searchBox: 1, btnSize: 'sm', placeholder:'请选择门店'}">
<option value=""></option>
<option value="0">全部门店</option>
<?php if(isset($shoplist)): foreach($shoplist 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-u-lg-2 am-form-label form-require">起始日期 </label>
<div class="am-u-sm-9 am-u-end">
<input type="text" name="time_star" class="am-form-field" placeholder="请选择日期" data-am-datepicker readonly required />
</div>
</div>
<div class="am-form-group">
<label class="am-u-sm-3 am-u-lg-2 am-form-label form-require">结束日期 </label>
<div class="am-u-sm-9 am-u-end">
<input type="text" name="time_end" class="am-form-field" placeholder="请选择日期" data-am-datepicker readonly required />
</div>
</div>
<div class="am-form-group">
<div class="am-u-sm-10 am-u-sm-push-2 am-margin-top-lg">
<button type="submit" class="j-submit am-btn am-btn-sm am-btn-secondary">确认并下一步
</button>
</div>
</div>
</fieldset>
</div>
</form>
</div>
</div>
</div>
</div>
</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>

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,297 @@
<?php /*a:4:{s:81:"/www/wwwroot/app.cxhxy.dev.1nww.com/app/store/view/food/goods/category/index.html";i:1700553054;s:67:"/www/wwwroot/app.cxhxy.dev.1nww.com/app/store/view/layout/food.html";i:1700553054;s:79:"/www/wwwroot/app.cxhxy.dev.1nww.com/app/store/view/food/goods/category/add.html";i:1700553054;s:80:"/www/wwwroot/app.cxhxy.dev.1nww.com/app/store/view/food/goods/category/edit.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">商品分类 - <?= $shop_name?></div>
</div>
<div class="widget-body am-fr">
<div class="am-u-sm-12 am-u-md-6 am-u-lg-6">
<div class="am-form-group">
<div class="am-btn-toolbar">
<div class="am-btn-group am-btn-group-sm">
<a href="javascript:void(0);" class="hema-add am-btn am-btn-primary am-radius">
<span class="am-icon-plus"></span> 添加
</a>
</div>
</div>
</div>
</div>
<div class="am-u-sm-12">
<table width="100%" class="am-table am-table-hover tpl-table-black">
<thead>
<tr>
<th>分类ID</th>
<th>分类名称</th>
<th>分类排序</th>
<th>添加时间</th>
<th>操作</th>
</tr>
</thead>
<tbody>
<?php if(!empty($list)): foreach($list as $item): ?>
<tr>
<td class="am-text-middle"><?php echo htmlentities($item['category_id']); ?></td>
<td class="am-text-middle"><?php echo htmlentities($item['name']); ?></td>
<td class="am-text-middle"><?php echo htmlentities($item['sort']); ?></td>
<td class="am-text-middle"><?php echo htmlentities($item['create_time']); ?></td>
<td class="am-text-middle">
<div class="tpl-table-black-operation">
<a href="javascript:;" class="hema-edit" data-id="<?php echo htmlentities($item['category_id']); ?>">
<i class="am-icon-pencil"></i> 编辑
</a>
<a href="javascript:;" class="hema-del tpl-table-black-operation-del"
data-id="<?php echo htmlentities($item['category_id']); ?>">
<i class="am-icon-trash"></i> 删除
</a>
</div>
</td>
</tr>
<?php endforeach; else: ?>
<tr>
<td colspan="5" class="am-text-center">暂无记录</td>
</tr>
<?php endif; ?>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- 添加 -->
<script id="tpl-add" type="text/template">
<div class="am-padding-xs am-padding-top-sm">
<div class="am-form-group">
<label class="am-u-sm-3 am-u-lg-2 am-form-label form-require">分类名称 </label>
<div class="am-u-sm-9 am-u-end">
<input type="text" class="tpl-form-input" name="data[name]" value="" required>
</div>
</div>
<div class="am-form-group">
<label class="am-u-sm-3 am-u-lg-2 am-form-label form-require">显示排序 </label>
<div class="am-u-sm-9 am-u-end">
<input type="number" class="tpl-form-input" name="data[sort]" value="100" required>
<small>数字越小越靠前</small>
</div>
</div>
</div>
</script>
<!-- 编辑 -->
<script id="tpl-edit" type="text/template">
<div class="am-padding-xs am-padding-top-sm">
<div class="am-form-group">
<label class="am-u-sm-3 am-u-lg-2 am-form-label form-require">分类名称 </label>
<div class="am-u-sm-9 am-u-end">
<input type="text" class="tpl-form-input" name="data[name]" value="{{ model.name }}" required>
</div>
</div>
<div class="am-form-group">
<label class="am-u-sm-3 am-u-lg-2 am-form-label form-require">显示排序 </label>
<div class="am-u-sm-9 am-u-end">
<input type="number" class="tpl-form-input" name="data[sort]" value="{{ model.sort }}" required>
<small>数字越小越靠前</small>
</div>
</div>
</div>
</script>
<script>
$(function () {
let shop_id="<?php echo htmlentities($shop_id); ?>"
//添加
$('.hema-add').on('click', function () {
$.showAction({
title: '添加',
area: '750px',
content: template('tpl-add', {}),
uCheck: true,
success: function ($content) {
$('#my-form').formPost({
url: "<?php echo url('food.goods.category/add'); ?>?shop_id=" + shop_id
});
},
btn2: function ($content) {
return true;
}
});
});
//编辑
$('.hema-edit').on('click', function () {
var data = $(this).data();
$.get("<?php echo url('food.goods.category/edit'); ?>?shop_id=" + shop_id + "&id=" + data.id, function (result) {
if(result.code == 0){
$.show_error(result.msg);
return false;
}
$.showAction({
title: '编辑',
area: '750px',
content: template('tpl-edit', {model:result.data.model}),
uCheck: true,
success: function ($content) {
$('#my-form').formPost({
url: "<?php echo url('food.goods.category/edit'); ?>?shop_id=" + shop_id + "&id=" + data.id
});
},
btn2: function ($content) {
return true;
}
});
});
});
// 删除元素
var url = "<?php echo url('food.goods.category/delete'); ?>";
$('.hema-del').del('id', url);
});
</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>

View File

@ -0,0 +1,411 @@
<?php /*a:2:{s:72:"/www/wwwroot/app.cxhxy.dev.1nww.com/app/store/view/food/order/index.html";i:1700553054;s:67:"/www/wwwroot/app.cxhxy.dev.1nww.com/app/store/view/layout/food.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"><?php echo htmlentities($title); ?></div>
</div>
<div class="widget-body am-fr">
<!-- 工具栏 -->
<div class="page_toolbar am-margin-bottom-xs am-fr">
<form class="toolbar-form" action="<?php echo url('food.order/export_order'); ?>" method="post">
<div class="am-u-sm-12">
<div class="am fr">
<?php if($user['applet']['shop_mode']['value']==20): ?>
<div class="am-form-group am-fl">
<select name="data[shop_id]"
data-am-selected="{btnSize: 'sm', placeholder: '全部门店'}">
<option value=""></option>
<?php if(isset($category)): foreach($category as $item): ?>
<option value="<?php echo htmlentities($item['shop_id']); ?>"><?php echo htmlentities($item['shop_name']); ?></option>
<?php endforeach; ?>
<?php endif; ?>
</select>
</div>
<?php endif; ?>
<div class="am-form-group tpl-form-border-form am-fl">
<input type="text" name="data[star]"
class="am-form-field"
value="" placeholder="请选择起始日期"
data-am-datepicker required>
</div>
<div class="am-form-group tpl-form-border-form am-fl">
<input type="text" name="data[end]"
class="am-form-field"
value="" placeholder="请选择截止日期"
data-am-datepicker required>
</div>
<div class="am-form-group am-fl">
<div class="am-btn-toolbar">
<div class="am-btn-group am-btn-group-xs">
<button class="am-btn am-btn-secondary am-radius" type="submit">
<span class="am-icon-download"></span> 订单导出
</button>
</div>
</div>
</div>
</div>
</div>
</form>
<form class="toolbar-form" action="<?php echo url('food.order/all_list'); ?>">
<div class="am-u-sm-12">
<div class="am-fr">
<?php if($user['applet']['shop_mode']['value']==20): ?>
<div class="am-form-group am-fl">
<select name="shop_id"
data-am-selected="{btnSize: 'sm', placeholder: '全部门店'}">
<option value=""></option>
<?php if(isset($category)): foreach($category as $item): ?>
<option value="<?php echo htmlentities($item['shop_id']); ?>" <?php echo $shop_id==$item['shop_id'] ? 'selected' : ''; ?>><?php echo htmlentities($item['shop_name']); ?></option>
<?php endforeach; ?>
<?php endif; ?>
</select>
</div>
<?php endif; ?>
<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="<?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="order-list am-scrollable-horizontal am-u-sm-12 am-margin-top-xs">
<table width="100%" class="am-table am-table-hover tpl-table-black am-table-centered am-text-nowrap am-margin-bottom-xs">
<thead>
<tr>
<th class="goods-detail">商品信息</th>
<th width="100px">单价/数量</th>
<th>实付款</th>
<th>买家</th>
<th>交易状态</th>
<th>操作</th>
</tr>
</thead>
<tbody>
<?php if(!$list->isEmpty()): foreach($list as $order): ?>
<tr class="order-empty">
<td colspan="6"></td>
</tr>
<tr>
<td class="am-text-middle am-text-left" colspan="6">
<?php if($order['order_mode']['value']==10): ?>
<span class="am-margin-right-lg"># 堂食 #</span>
<?php if($order['table_id'] == 0): ?>
<span class="am-margin-right-lg">取餐号:<?php echo htmlentities($order['row_no']); ?></span>
<?php else: ?>
<span class="am-margin-right-lg">餐桌:<?php echo htmlentities((isset($order['table']['table_name']) && ($order['table']['table_name'] !== '')?$order['table']['table_name']:"--")); ?></span>
<?php endif; ?>
<span class="am-margin-right-lg">起菜时间:<?php echo htmlentities($order['arrive_time']['text']); ?></span>
<?php endif; if($order['order_mode']['value']==20): ?>
<span class="am-margin-right-lg"># 外卖 #</span>
<span class="am-margin-right-lg">取餐号:<?php echo htmlentities($order['row_no']); ?></span>
<span class="am-margin-right-lg">外送时间:<?php echo htmlentities($order['arrive_time']['text']); ?></span>
<?php endif; if($order['order_mode']['value']==30): ?>
<span class="am-margin-right-lg"># 外带 #</span>
<span class="am-margin-right-lg">取餐号:<?php echo htmlentities($order['row_no']); ?></span>
<span class="am-margin-right-lg">取餐时间:<?php echo htmlentities($order['arrive_time']['text']); ?></span>
<?php endif; if($order['order_mode']['value']==40): ?>
<span class="am-margin-right-lg"># 外带 #</span>
<span class="am-margin-right-lg">取餐号:<?php echo htmlentities($order['row_no']); ?></span>
<span class="am-margin-right-lg">外带时间:<?php echo htmlentities($order['arrive_time']['text']); ?></span>
<?php endif; ?>
<span class="am-margin-right-lg">门店:<?php echo htmlentities($order['shop']['shop_name']); ?></span>
<span class="am-margin-right-lg">来源:<?php echo htmlentities($order['source']['text']); ?></span>
<span class="am-margin-right-lg">订单号:<?php echo htmlentities($order['order_no']); ?></span>
<span class="am-margin-right-lg">下单时间:<?php echo htmlentities($order['create_time']); ?></span>
</td>
</tr>
<?php $i = 0;foreach($order['goods'] as $goods): $i++;?>
<tr>
<td class="goods-detail am-text-middle">
<div class="goods-image">
<img src="<?php echo htmlentities($goods['image']['url']); ?>" alt="">
</div>
<div class="goods-info">
<p class="goods-title"><?php echo htmlentities($goods['goods_name']); ?></p>
<p class="goods-spec am-link-muted">
<?php echo htmlentities($goods['goods_attr']); ?>
</p>
</div>
</td>
<td class="am-text-middle">
<p><?php echo htmlentities($goods['goods_price']); ?> × <?php echo htmlentities($goods['total_num']); ?></p>
<?php if($order['order_status']['value']==40): ?>
<p>退 × <?php echo htmlentities($goods['refund_num']); ?></p>
<?php endif; ?>
</td>
<?php if($i === 1): $goodsCount = count($order['goods']); ?>
<td class="am-text-middle" rowspan="<?php echo htmlentities($goodsCount); ?>">
<p><?php echo htmlentities($order['pay_price']); ?></p>
<p class="am-link-muted">(优惠额:-<?php echo htmlentities($order['activity_price']); ?>)</p>
<?php if($order['pack_price'] > 0): ?>
<p class="am-link-muted">(包装费:+<?php echo htmlentities($order['pack_price']); ?>)</p>
<?php endif; if($order['delivery_price'] > 0): ?>
<p class="am-link-muted">(配送费:+<?php echo htmlentities($order['delivery_price']); ?>)</p>
<?php endif; if($order['order_status']['value'] == 40): ?>
<p>退款:-<?php echo htmlentities($order['refund_price']); ?></p>
<?php endif; ?>
</td>
<td class="am-text-middle" rowspan="<?php echo htmlentities($goodsCount); ?>">
<p><?php echo htmlentities((isset($order['user']['nickname']) && ($order['user']['nickname'] !== '')?$order['user']['nickname']:"--")); ?></p>
<p class="am-link-muted">(用户id<?php echo htmlentities((isset($order['user']['user_id']) && ($order['user']['user_id'] !== '')?$order['user']['user_id']:"--")); ?>)</p>
</td>
<td class="am-text-middle" rowspan="<?php echo htmlentities($goodsCount); ?>">
<p>付款状态:
<span class="am-badge
<?php echo $order['pay_status']['value']==20 ? 'am-badge-success' : ''; ?>
<?php echo $order['pay_status']['value']==30 ? 'am-badge-danger' : ''; ?>">
<?php echo htmlentities($order['pay_status']['text']); ?></span>
</p>
<p>接单状态:
<span class="am-badge
<?php echo $order['shop_status']['value']>10 ? 'am-badge-success' : ''; ?>">
<?php echo htmlentities($order['shop_status']['text']); ?></span>
</p>
<p>配送状态:
<span class="am-badge
<?php echo $order['delivery_status']['value']==20 ? 'am-badge-warning' : ''; ?>
<?php echo $order['delivery_status']['value']==30 ? 'am-badge-success' : ''; ?>">
<?php echo htmlentities($order['delivery_status']['text']); ?></span>
</p>
<p>收货状态:
<span class="am-badge
<?php echo $order['receipt_status']['value']==20 ? 'am-badge-success' : ''; ?>">
<?php echo htmlentities($order['receipt_status']['text']); ?></span>
</p>
<p>订单状态:
<span class="am-badge
<?php echo $order['order_status']['value']==10 ? 'am-badge-warning' : ''; ?>
<?php echo $order['order_status']['value']==20 ? 'am-badge-danger' : ''; ?>
<?php echo $order['order_status']['value']==30 ? 'am-badge-success' : ''; ?>
<?php echo $order['order_status']['value']==40 ? 'am-badge-danger' : ''; ?>">
<?php echo $order['order_status']['value']==40 ? htmlentities($order['refund_status']['text']) : htmlentities($order['order_status']['text']); ?>
</span>
</p>
</td>
<td class="am-text-middle" rowspan="<?php echo htmlentities($goodsCount); ?>">
<div class="tpl-table-black-operation">
<a class="hema-prints tpl-table-black-operation"
href="javascript:;"
data-id="<?php echo htmlentities($order['order_id']); ?>">
重打订单</a>
<a class="tpl-table-black-operation-green"
href="<?php echo url('food.order/detail', ['id' => $order['order_id']]); ?>">
订单详情</a>
<?php if($order['pay_status']['value'] > 10 AND $order['shop_status']['value'] == 10 AND $order['order_status']['value'] == 10): ?>
<a class="tpl-table-black-operation-warning"
href="<?php echo url('food.order/detail#shop',['id' => $order['order_id']]); ?>">
确认接单</a>
<?php endif; if($order['shop_status']['value'] == 20 AND $order['delivery_status']['value'] == 10 AND $order['order_status']['value'] == 10): ?>
<a class="tpl-table-black-operation"
href="<?php echo url('food.order/detail#delivery',['id' => $order['order_id']]); ?>">
<?php echo $order['order_mode']['value']==20 ? '外卖推送' : '确认发货'; ?></a>
<?php endif; if($order['order_mode']['value'] == 20 AND $order['delivery_status']['value'] == 20 AND $order['delivery']['delivery_status']['value'] == 10 AND $order['order_status']['value'] == 10): ?>
<a class="tpl-table-black-operation-warning"
href="<?php echo url('food.order/detail#dev20',['id' => $order['order_id']]); ?>">
指派骑手</a>
<?php endif; if($order['order_mode']['value'] == 20 AND $order['delivery_status']['value'] == 20 AND $order['delivery']['delivery_status']['value'] == 20 AND $order['order_status']['value'] == 10): ?>
<a class="tpl-table-black-operation-warning"
href="<?php echo url('food.order/detail#dev30',['id' => $order['order_id']]); ?>">
骑手到店</a>
<?php endif; if($order['order_mode']['value'] == 20 AND $order['delivery_status']['value'] == 20 AND $order['delivery']['delivery_status']['value'] == 30 AND $order['order_status']['value'] == 10): ?>
<a class="tpl-table-black-operation-warning"
href="<?php echo url('food.order/detail#dev40',['id' => $order['order_id']]); ?>">
外卖配送</a>
<?php endif; if($order['order_mode']['value'] == 20 AND $order['delivery_status']['value'] == 20 AND $order['delivery']['delivery_status']['value'] == 40 AND $order['order_status']['value'] == 10): ?>
<a class="tpl-table-black-operation-warning"
href="<?php echo url('food.order/detail#dev50',['id' => $order['order_id']]); ?>">
外卖送达</a>
<?php endif; if($order['pay_status']['value'] == 30 AND $order['delivery_status']['value'] == 30 AND $order['order_status']['value'] == 10): ?>
<a class="tpl-table-black-operation-warning"
href="<?php echo url('food.order/detail#collection',['id' => $order['order_id']]); ?>">
确认收款</a>
<?php endif; if($order['refund_status']['value'] == 10 AND $order['order_status']['value'] == 40): ?>
<a class="tpl-table-black-operation-del"
href="<?php echo url('food.order/detail#refund',['id' => $order['order_id']]); ?>">
确认退款</a>
<?php endif; ?>
</div>
</td>
<?php endif; ?>
</tr>
<?php endforeach; ?>
<?php endforeach; else: ?>
<tr>
<td colspan="6" 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>
$(function () {
var url = "<?php echo url('food.order/prints'); ?>";
$('.hema-prints').del('id', url,'确定要重新打印该订单');
});
</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>

File diff suppressed because one or more lines are too long