This commit is contained in:
test_service 2023-12-06 15:55:32 +08:00
parent b58ae29c24
commit 3ec153899b
83 changed files with 2236 additions and 13470 deletions

View File

@ -1,167 +1,167 @@
<?php
namespace app\common\model\food;
use Endroid\QrCode\QrCode as CodeMode;
use Endroid\QrCode\Writer\PngWriter;
use hema\alipay\Driver as Alipay;
use hema\wechat\Driver as Wechat;
use hema\Helper;
/**
* 餐桌/包间模型
*/
class Table extends BaseModel
{
// 定义表名
protected $name = 'food_table';
// 定义主键
protected $pk = 'table_id';
// 追加字段
protected $append = ['qrcode'];
/**
* 获取餐桌码
*/
public function getQrcodeAttr($value,$data)
{
$qrcode = [
// 'h5' => '',
'weixin' => '',
// 'alipay' => '',
// 'qrcode' => '',
];
//生成存储路径
if(!file_exists('./temp/food')){
mkdir('./temp/food',0777,true);
}
//生成微信小程序码
$wechat_path = '/temp/food/wechat-table-' . $data['table_id'] . '.png';
if(!is_file('.' . $wechat_path)){
$wx = new Wechat;
if($wx->getUnlimitedQRCode($data['applet_id'],$wechat_path,'table-'.$data['shop_id'].'-'.$data['table_id'])){
$qrcode['weixin'] = $wechat_path;
}
}else{
$qrcode['weixin'] = $wechat_path;
}
// //如果已经发布H5端代码
// if(is_file('./h5/food/index.html')){
// $h5_path = '/temp/food/h5-table-' . $data['table_id'] . '.png';
// if(!is_file('.' . $h5_path)){
// $writer = new PngWriter();
// $code = CodeMode::create(base_url() . 'h5/food/#/?applet_id=' . $data['applet_id'] . '&q=table-' . $data['shop_id'].'-'.$data['table_id'])->setSize(500);
// $result = $writer->write($code);
// $result->saveToFile('.' . $h5_path);
// }
// $qrcode['h5'] = $h5_path;
// }
//生成支付宝小程序码
// $alipay_path = '/temp/food/alipay-table-' . $data['shop_id'] . '.png';
// if(!is_file('.' . $alipay_path)){
// $alipay = new Alipay($data['applet_id']);
// if($alipay->openAppQrcodeCreate('table-'.$data['shop_id'].'-'.$data['table_id'],$alipay_path)){
// $qrcode['alipay'] = $alipay_path;
// }
// }else{
// $qrcode['alipay'] = $alipay_path;
// }
//生成小程序聚合码
// $qrcode_path = '/temp/food/qrcode-table-' . $data['shop_id'] . '.png';
// if(!is_file('.' . $qrcode_path)){
// $writer = new PngWriter();
// $code = CodeMode::create(base_url() . 'food/' . $data['applet_id'] . '/table-'. $data['shop_id'].'-'.$data['table_id'])->setSize(500);
// $result = $writer->write($code);
// $result->saveToFile('.' . $qrcode_path);
// }
// $qrcode['qrcode'] = $qrcode_path;
return $qrcode;
}
/**
* 关联门店表
*/
public function shop()
{
return $this->belongsTo('app\\common\\model\\food\\Shop','shop_id');
}
/**
* 状态
*/
public function getStatusAttr($value,$data)
{
$status = [10 => '空闲', 20 => '占用'];
$order_id = [];//订单编号
$pay_price = 0;//待付款
$time = '';//开单时间
$order = Order::where(['table_id'=>$data['table_id'],'order_status'=>10])->order('create_time','asc')->select();
if(sizeof($order)){
foreach ($order as $item){
$order_id[] = $item['order_id'];
if($item['pay_status']['value'] != 20){
$pay_price = $pay_price + $item['pay_price'];
}
}
$value = 20;
$time = round((time() - strtotime($order[0]['create_time']))/60);
}
$start=mktime(0,0,0,date('m'),date('d'),date('Y'));
$end=mktime(0,0,0,date('m'),date('d')+1,date('Y'))-1;
return [
'text' => $status[$value],
'value' => $value,
'order_id' => $order_id,
'time' => $time, //占用时间
'pay_price' => Helper::number2($pay_price), //待收款
];
}
/**
* 获取列表
*/
public function getList($shop_id = 0, $status = 0, string $search = '')
{
//筛选条件
$filter = [];
$shop_id > 0 && $filter['shop_id'] = $shop_id;
!empty($search) && $filter['table_name'] = $search;
// 执行查询
$list = $this->with(['shop'])
->where($filter)
->order(['sort','table_id' => 'desc'])
->select();
if($status > 0){
$tablelist = $list;
$list = [];
for($n=0;$n<sizeof($tablelist);$n++){
if($tablelist[$n]['status']['value'] == $status){
array_push($list,$tablelist[$n]);
}
}
}
return $list;
}
/**
* 添加
*/
public function add(array $data)
{
$data['applet_id'] = self::$applet_id;
return $this->save($data);
}
/**
* 编辑
*/
public function edit(array $data)
{
return $this->save($data) !== false;
}
/**
* 删除
*/
public function remove()
{
return $this->delete();
}
<?php
namespace app\common\model\food;
use Endroid\QrCode\QrCode as CodeMode;
use Endroid\QrCode\Writer\PngWriter;
use hema\alipay\Driver as Alipay;
use hema\wechat\Driver as Wechat;
use hema\Helper;
/**
* 餐桌/包间模型
*/
class Table extends BaseModel
{
// 定义表名
protected $name = 'food_table';
// 定义主键
protected $pk = 'table_id';
// 追加字段
protected $append = ['qrcode'];
/**
* 获取餐桌码
*/
public function getQrcodeAttr($value,$data)
{
$qrcode = [
// 'h5' => '',
'weixin' => '',
// 'alipay' => '',
// 'qrcode' => '',
];
//生成存储路径
if(!file_exists('./temp/food')){
mkdir('./temp/food',0777,true);
}
//生成微信小程序码
$wechat_path = '/temp/food/wechat-table-' . $data['table_id'] . '.png';
if(!is_file('.' . $wechat_path)){
$wx = new Wechat;
if($wx->getUnlimitedQRCode($data['applet_id'],$wechat_path,'table-'.$data['shop_id'].'-'.$data['table_id'])){
$qrcode['weixin'] = $wechat_path;
}
}else{
$qrcode['weixin'] = $wechat_path;
}
// //如果已经发布H5端代码
// if(is_file('./h5/food/index.html')){
// $h5_path = '/temp/food/h5-table-' . $data['table_id'] . '.png';
// if(!is_file('.' . $h5_path)){
// $writer = new PngWriter();
// $code = CodeMode::create(base_url() . 'h5/food/#/?applet_id=' . $data['applet_id'] . '&q=table-' . $data['shop_id'].'-'.$data['table_id'])->setSize(500);
// $result = $writer->write($code);
// $result->saveToFile('.' . $h5_path);
// }
// $qrcode['h5'] = $h5_path;
// }
//生成支付宝小程序码
// $alipay_path = '/temp/food/alipay-table-' . $data['shop_id'] . '.png';
// if(!is_file('.' . $alipay_path)){
// $alipay = new Alipay($data['applet_id']);
// if($alipay->openAppQrcodeCreate('table-'.$data['shop_id'].'-'.$data['table_id'],$alipay_path)){
// $qrcode['alipay'] = $alipay_path;
// }
// }else{
// $qrcode['alipay'] = $alipay_path;
// }
//生成小程序聚合码
// $qrcode_path = '/temp/food/qrcode-table-' . $data['shop_id'] . '.png';
// if(!is_file('.' . $qrcode_path)){
// $writer = new PngWriter();
// $code = CodeMode::create(base_url() . 'food/' . $data['applet_id'] . '/table-'. $data['shop_id'].'-'.$data['table_id'])->setSize(500);
// $result = $writer->write($code);
// $result->saveToFile('.' . $qrcode_path);
// }
// $qrcode['qrcode'] = $qrcode_path;
return $qrcode;
}
/**
* 关联门店表
*/
public function shop()
{
return $this->belongsTo('app\\common\\model\\food\\Shop','shop_id');
}
/**
* 状态
*/
public function getStatusAttr($value,$data)
{
$status = [10 => '空闲', 20 => '占用'];
$order_id = [];//订单编号
$pay_price = 0;//待付款
$time = '';//开单时间
$order = Order::where(['table_id'=>$data['table_id'],'order_status'=>10])->order('create_time','asc')->select();
if(sizeof($order)){
foreach ($order as $item){
$order_id[] = $item['order_id'];
if($item['pay_status']['value'] != 20){
$pay_price = $pay_price + $item['pay_price'];
}
}
$value = 20;
$time = round((time() - strtotime($order[0]['create_time']))/60);
}
$start=mktime(0,0,0,date('m'),date('d'),date('Y'));
$end=mktime(0,0,0,date('m'),date('d')+1,date('Y'))-1;
return [
'text' => $status[$value],
'value' => $value,
'order_id' => $order_id,
'time' => $time, //占用时间
'pay_price' => Helper::number2($pay_price), //待收款
];
}
/**
* 获取列表
*/
public function getList($shop_id = 0, $status = 0, string $search = '')
{
//筛选条件
$filter = [];
$shop_id > 0 && $filter['shop_id'] = $shop_id;
!empty($search) && $filter['table_name'] = $search;
// 执行查询
$list = $this->with(['shop'])
->where($filter)
->order(['sort','table_id' => 'desc'])
->select();
if($status > 0){
$tablelist = $list;
$list = [];
for($n=0;$n<sizeof($tablelist);$n++){
if($tablelist[$n]['status']['value'] == $status){
array_push($list,$tablelist[$n]);
}
}
}
return $list;
}
/**
* 添加
*/
public function add(array $data)
{
$data['applet_id'] = self::$applet_id;
return $this->save($data);
}
/**
* 编辑
*/
public function edit(array $data)
{
return $this->save($data) !== false;
}
/**
* 删除
*/
public function remove()
{
return $this->delete();
}
}

View File

@ -1,37 +1 @@
<?php
namespace app\store\controller\food;
use app\store\controller\food\Controller;
use app\store\model\food\Order as OrderModel;
use app\store\model\food\Comment as CommentModel;
use app\store\model\food\Record as RecordModel;
use app\store\model\food\Goods as GoodsModel;
use app\store\model\food\User as UserModel;
use app\store\model\food\Shop as ShopModel;
use app\store\model\food\Pact as PactModel;
use think\facade\View;
/**
* 商户后台首页
*/
class Index extends Controller
{
public function index($shop_id = 0)
{
if($this->shop_mode == 10){
$shop_id = $this->shop_id;
}
$model = new ShopModel;
$shop = $model->getList();
$count = array();
$count['order'] = OrderModel::getCount($shop_id); //订单和收入统计
$count['comment'] = CommentModel::getCount($shop_id); //评价统计
$count['record'] = RecordModel::getCount($shop_id); //充值统计
$count['user'] = UserModel::getCount(); //用户统计
$count['goods'] = GoodsModel::getCount($shop_id); //产品统计
$count['pact'] = PactModel::getCount($shop_id); //预约统计
return View::fetch('index', compact('count','shop','shop_id'));
}
}
<?php namespace app\store\controller\food; use app\store\controller\food\Controller; use app\store\model\food\Order as OrderModel; use app\store\model\food\Comment as CommentModel; use app\store\model\food\Record as RecordModel; use app\store\model\food\Goods as GoodsModel; use app\store\model\food\User as UserModel; use app\store\model\food\Shop as ShopModel; use app\store\model\food\Pact as PactModel; use think\facade\View; /** * 商户后台首页 */ class Index extends Controller { public function index($shop_id = 0) { if($this->shop_mode == 10){ $shop_id = $this->shop_id; } $model = new ShopModel; $shop = $model->getList(); $count = array(); $count['order'] = OrderModel::getCount($shop_id); //订单和收入统计 $count['comment'] = CommentModel::getCount($shop_id); //评价统计 $count['record'] = RecordModel::getCount($shop_id); //充值统计 $count['user'] = UserModel::getCount(); //用户统计 $count['goods'] = GoodsModel::getCount($shop_id); //产品统计 $count['pact'] = PactModel::getCount($shop_id); //预约统计 return View::fetch('index', compact('count','shop','shop_id')); } }

View File

@ -1,170 +1,170 @@
{layout name="layout/food" /}
<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">
<!-- 工具栏 -->
{if $user['applet']['shop_mode']['value']==20}
<div class="page_toolbar am-margin-bottom-xs am-cf">
<div class="am-u-sm-12 am-u-md-3">
<div class="am-form-group">
<div class="am-btn-group am-btn-group-sm">
<a class="am-btn am-btn-primary am-radius" href="{:url('food.shop/add')}">
<span class="am-icon-plus"></span> 新增
</a>
</div>
</div>
</div>
</div>
{/if}
<div class="am-scrollable-horizontal am-u-sm-12">
<table width="100%" class="am-table am-table-hover tpl-table-black">
<thead>
<tr>
<th>门店ID</th>
<th>门店LOGO</th>
<th>门店名称</th>
<th>营业时间</th>
<th>联系人</th>
<th>联系电话</th>
<th>门店码</th>
<th>买单码</th>
<th>WIFI码</th>
<th>门店状态</th>
<th>创建时间</th>
<th>操作</th>
</tr>
</thead>
<tbody>
{if $list}
{foreach $list as $index => $item}
<tr>
<td class="am-text-middle">{$item['shop_id']}</td>
<td class="am-text-middle">
<img src="{$item['logo']|default='/addons/food/img/no_pic.jpg'}" width="50" height="50" alt="门店图片">
</td>
<td class="am-text-middle">
<p class="item-title">{$item['shop_name']}</p>
</td>
<td class="am-text-middle">{$item['shop_hours']}</td>
<td class="am-text-middle">{$item['linkman']}</td>
<td class="am-text-middle">{$item['phone']}</td>
<td class="am-text-middle">
<a class="hema-qrcode" data-index="{$index}" href="javascript:;">
<i class="iconfont iconerweima" style="font-size:25px;color:#2979ff;"></i>
</a>
</td>
<td class="am-text-middle">
<a class="hema-paybill" data-index="{$index}" href="javascript:;">
<i class="iconfont iconerweima" style="font-size:25px;color:#2979ff;"></i>
</a>
</td>
<td class="am-text-middle">
<a class="hema-wifi" data-index="{$index}" href="javascript:;">
<i class="iconfont iconerweima" style="font-size:25px;color:#2979ff;"></i>
</a>
</td>
<td class="am-text-middle">
<span class="hema-status am-badge x-cur-p {$item['status']['value'] ? ' am-badge-success' : ' am-badge-warning'}"
data-id="{$item['shop_id']}"
data-status="{$item['status']['status']}">
{$item['status']['text']}
</span>
</td>
<td class="am-text-middle">{$item['create_time']}</td>
<td class="am-text-middle">
<div class="tpl-table-black-operation">
<a href="{:url('food.shop/edit',['id' => $item['shop_id']])}">
<i class="am-icon-pencil"></i> 编辑
</a>
<a href="javascript:;" class="hema-del tpl-table-black-operation-del"
data-id="{$item['shop_id']}">
<i class="am-icon-trash"></i> 删除
</a>
</div>
</td>
</tr>
{/foreach}
{else /}
<tr>
<td colspan="12" class="am-text-center">暂无记录</td>
</tr>
{/if}
</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>
{include file="food/shop/qrcode" /}
<script>
$(function () {
let list = <?= json_encode($list)?>;
$('.hema-qrcode').click(function () {
let data = $(this).data();
$.showAction({
title: '门店码',
area: '990px',
content: template('tpl-qrcode', {qrcode:list.data[data.index].qrcode}),
uCheck: true,
btn: ['取消'],
success: function ($content) {
},
btn2: function ($content) {
return true;
}
});
});
$('.hema-paybill').click(function () {
let data = $(this).data();
$.showAction({
title: '买单码',
area: '990px',
content: template('tpl-qrcode', {qrcode:list.data[data.index].paybill}),
uCheck: true,
btn: ['取消'],
success: function ($content) {
},
btn2: function ($content) {
return true;
}
});
});
$('.hema-wifi').click(function () {
let data = $(this).data();
$.showAction({
title: 'WIFI码',
area: '990px',
content: template('tpl-qrcode', {qrcode:list.data[data.index].wifi}),
uCheck: true,
btn: ['取消'],
success: function ($content) {
},
btn2: function ($content) {
return true;
}
});
});
// 切换状态
$('.hema-status').click(function () {
var data = $(this).data();
var msg = '确定要'+(parseInt(data.status) === 1 ? '暂停营业' : '开启营业')+'吗?';
$('.hema-status').del('id', "{:url('food.shop/status')}",msg);
});
$('.hema-del').del('id', "{:url('food.shop/delete')}");// 删除元素
});
{layout name="layout/food" /}
<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">
<!-- 工具栏 -->
{if $user['applet']['shop_mode']['value']==20}
<div class="page_toolbar am-margin-bottom-xs am-cf">
<div class="am-u-sm-12 am-u-md-3">
<div class="am-form-group">
<div class="am-btn-group am-btn-group-sm">
<a class="am-btn am-btn-primary am-radius" href="{:url('food.shop/add')}">
<span class="am-icon-plus"></span> 新增
</a>
</div>
</div>
</div>
</div>
{/if}
<div class="am-scrollable-horizontal am-u-sm-12">
<table width="100%" class="am-table am-table-hover tpl-table-black">
<thead>
<tr>
<th>门店ID</th>
<th>门店LOGO</th>
<th>门店名称</th>
<th>营业时间</th>
<th>联系人</th>
<th>联系电话</th>
<th>门店码</th>
<th>买单码</th>
<th>WIFI码</th>
<th>门店状态</th>
<th>创建时间</th>
<th>操作</th>
</tr>
</thead>
<tbody>
{if $list}
{foreach $list as $index => $item}
<tr>
<td class="am-text-middle">{$item['shop_id']}</td>
<td class="am-text-middle">
<img src="{$item['logo']|default='/addons/food/img/no_pic.jpg'}" width="50" height="50" alt="门店图片">
</td>
<td class="am-text-middle">
<p class="item-title">{$item['shop_name']}</p>
</td>
<td class="am-text-middle">{$item['shop_hours']}</td>
<td class="am-text-middle">{$item['linkman']}</td>
<td class="am-text-middle">{$item['phone']}</td>
<td class="am-text-middle">
<a class="hema-qrcode" data-index="{$index}" href="javascript:;">
<i class="iconfont iconerweima" style="font-size:25px;color:#2979ff;"></i>
</a>
</td>
<td class="am-text-middle">
<a class="hema-paybill" data-index="{$index}" href="javascript:;">
<i class="iconfont iconerweima" style="font-size:25px;color:#2979ff;"></i>
</a>
</td>
<td class="am-text-middle">
<a class="hema-wifi" data-index="{$index}" href="javascript:;">
<i class="iconfont iconerweima" style="font-size:25px;color:#2979ff;"></i>
</a>
</td>
<td class="am-text-middle">
<span class="hema-status am-badge x-cur-p {$item['status']['value'] ? ' am-badge-success' : ' am-badge-warning'}"
data-id="{$item['shop_id']}"
data-status="{$item['status']['status']}">
{$item['status']['text']}
</span>
</td>
<td class="am-text-middle">{$item['create_time']}</td>
<td class="am-text-middle">
<div class="tpl-table-black-operation">
<a href="{:url('food.shop/edit',['id' => $item['shop_id']])}">
<i class="am-icon-pencil"></i> 编辑
</a>
<a href="javascript:;" class="hema-del tpl-table-black-operation-del"
data-id="{$item['shop_id']}">
<i class="am-icon-trash"></i> 删除
</a>
</div>
</td>
</tr>
{/foreach}
{else /}
<tr>
<td colspan="12" class="am-text-center">暂无记录</td>
</tr>
{/if}
</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>
{include file="food/shop/qrcode" /}
<script>
$(function () {
let list = <?= json_encode($list)?>;
$('.hema-qrcode').click(function () {
let data = $(this).data();
$.showAction({
title: '门店码',
area: '990px',
content: template('tpl-qrcode', {qrcode:list.data[data.index].qrcode}),
uCheck: true,
btn: ['取消'],
success: function ($content) {
},
btn2: function ($content) {
return true;
}
});
});
$('.hema-paybill').click(function () {
let data = $(this).data();
$.showAction({
title: '买单码',
area: '990px',
content: template('tpl-qrcode', {qrcode:list.data[data.index].paybill}),
uCheck: true,
btn: ['取消'],
success: function ($content) {
},
btn2: function ($content) {
return true;
}
});
});
$('.hema-wifi').click(function () {
let data = $(this).data();
$.showAction({
title: 'WIFI码',
area: '990px',
content: template('tpl-qrcode', {qrcode:list.data[data.index].wifi}),
uCheck: true,
btn: ['取消'],
success: function ($content) {
},
btn2: function ($content) {
return true;
}
});
});
// 切换状态
$('.hema-status').click(function () {
var data = $(this).data();
var msg = '确定要'+(parseInt(data.status) === 1 ? '暂停营业' : '开启营业')+'吗?';
$('.hema-status').del('id', "{:url('food.shop/status')}",msg);
});
$('.hema-del').del('id', "{:url('food.shop/delete')}");// 删除元素
});
</script>

View File

@ -1,36 +1,13 @@
<script id="tpl-qrcode" type="text/template">
<div class="am-padding-xs am-padding-top-sm">
<div class="user-qrcode">
{{ if qrcode.h5 }}
<img src="{{ qrcode.h5}}">
{{ else / }}
<div class="online">等待上线</div>
{{ /if }}
<div class="text">H5端</div>
</div>
<div class="user-qrcode">
{{ if qrcode.weixin }}
<img src="{{ qrcode.weixin}}">
{{ else / }}
<div class="online">等待上线</div>
{{ /if }}
<div class="text">微信小程序</div>
</div>
<div class="user-qrcode">
{{ if qrcode.alipay }}
<img src="{{ qrcode.alipay}}">
{{ else / }}
<div class="online">等待上线</div>
{{ /if }}
<div class="text">支付宝小程序</div>
</div>
<div class="user-qrcode">
{{ if qrcode.qrcode }}
<img src="{{ qrcode.qrcode}}">
{{ else / }}
<div class="online">等待上线</div>
{{ /if }}
<div class="text">小程序聚合码</div>
</div>
</div>
<script id="tpl-qrcode" type="text/template">
<div class="am-padding-xs am-padding-top-sm">
<div class="user-qrcode">
{{ if qrcode.weixin }}
<img src="{{ qrcode.weixin}}">
{{ else / }}
<div class="online">等待上线</div>
{{ /if }}
<div class="text">微信小程序</div>
</div>
</div>
</script>

File diff suppressed because it is too large Load Diff

View File

@ -1,39 +1,39 @@
<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006-2019 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
// [ 应用入口文件 ]
namespace think;
// 检测PHP环境
//if (version_compare(PHP_VERSION, '7.4.0', '<')) die('require PHP > 7.1.0 !');
// 检测php版本号
if (phpversion() < '7.4') {
exit('很抱歉由于您的PHP版本过低部分功能无法运行为了系统功能全面可用请升级到PHP7.4或更高版本,谢谢!');
}
define('INSTALL_URL', str_replace('\\', '/', dirname(__FILE__) . '/install/'));
// 判断是否安装
if (!is_file(INSTALL_URL . 'install.lock')) {
header("location:/install");
exit;
}
// 加载核心文件
require __DIR__ . '/../vendor/autoload.php';
// 执行HTTP应用并响应
$http = (new App())->http;
$response = $http->run();
$response->send();
$http->end($response);
<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006-2019 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
// [ 应用入口文件 ]
namespace think;
// 检测PHP环境
//if (version_compare(PHP_VERSION, '7.4.0', '<')) die('require PHP > 7.1.0 !');
// 检测php版本号
if (phpversion() < '7.4') {
exit('很抱歉由于您的PHP版本过低部分功能无法运行为了系统功能全面可用请升级到PHP7.4或更高版本,谢谢!');
}
define('INSTALL_URL', str_replace('\\', '/', dirname(__FILE__) . '/install/'));
// 判断是否安装
if (!is_file(INSTALL_URL . 'install.lock')) {
header("location:/install");
exit;
}
// 加载核心文件
require __DIR__ . '/../vendor/autoload.php';
// 执行HTTP应用并响应
$http = (new App())->http;
$response = $http->run();
$response->send();
$http->end($response);

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.6 KiB

View File

@ -1 +0,0 @@
{"errcode":41001,"errmsg":"access_token missing rid: 655efa56-5349d77f-1818512b"}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 81 B

After

Width:  |  Height:  |  Size: 83 KiB

View File

@ -1 +0,0 @@
{"errcode":41001,"errmsg":"access_token missing rid: 655efa55-7ffbd338-3aa9edd9"}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 81 B

After

Width:  |  Height:  |  Size: 84 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 81 B

After

Width:  |  Height:  |  Size: 93 KiB

View File

@ -1 +0,0 @@
{"errcode":41001,"errmsg":"access_token missing rid: 655efa56-250c2fcf-66f8262a"}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 81 B

After

Width:  |  Height:  |  Size: 82 KiB

View File

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,2 +0,0 @@
<?php /*a:1:{s:70:"/www/wwwroot/app.cxhxy.dev.1nww.com/app/admin/view/passport/login.html";i:1700552721;}*/ ?>
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta content="IE=edge" http-equiv="X-UA-Compatible"> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"> <title>管理登录 - <?php echo htmlentities($web['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']); ?>"> <link rel="icon" type="image/png" href="/favicon.png" /> <link rel="stylesheet" href="/assets/css/hema.login.css?v=<?php echo htmlentities($version); ?>" /> <link rel="stylesheet" href="/assets/plugins/amazeui/amazeui.css?v=<?php echo htmlentities($version); ?>" /> <script src="/assets/plugins/jquery/jquery.min.js?v=<?php echo htmlentities($version); ?>"></script> </head> <body> <div class="container"> <div class="login-in"> <div class="form"> <div class="title">管理登录</div> <form id="my-form"> <div class="input"> <i class="am-icon-user"></i> <input type="text" name="data[user_name]" value="" placeholder="请输入账号" required> </div> <div class="input"> <i class="am-icon-lock"></i> <input type="password" name="data[password]" value="" placeholder="请输入密码" required> </div> <div style="padding:20px 0px;"> <div class="w50"> <i class="am-icon-shield"></i> <input type="text" name="data[captcha]" value="" placeholder="请输入验证码" required> </div> <div class="captcha"> <img src="<?php echo url('passport/captcha'); ?>" alt="验证码" onclick="this.src='<?php echo url('passport/captcha'); ?>?r='+Math.random()" /> </div> </div> <div class="sub-btn"> <button class="j-submit am-btn am-btn-primary am-btn-lg am-radius" type="submit">登录</button> </div> </form> </div> <div class="version">V<?php echo htmlentities($version); ?></div> </div> </div> </body> <script> $(function() { $('#my-form').formPost(); }); </script> <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> </html>

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,2 +0,0 @@
[2023-11-21T18:41:05+08:00][error] [0]Argument 1 passed to hema\wechat\Driver::authUrl() must be of the type int, null given, called in /www/wwwroot/app.cxhxy.dev.1nww.com/app/applet/controller/Wxapp.php on line 43
[2023-11-21T18:45:54+08:00][error] [0]Argument 1 passed to hema\wechat\Driver::getCategory() must be of the type int, null given, called in /www/wwwroot/app.cxhxy.dev.1nww.com/app/applet/controller/wxapp/Category.php on line 37

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

BIN
runtime/cache/13/0fd29bc1e1c9570496921b09ae2849.php vendored Executable file → Normal file

Binary file not shown.

0
runtime/cache/21/413a1afbfae837472e4844bda5ddbc.php vendored Executable file → Normal file
View File

2
runtime/cache/30/4fce12426ae0229ae22216efc4ea5b.php vendored Executable file → Normal file
View File

@ -1,4 +1,4 @@
<?php
//000000000000
exit();?>
a:1:{s:5:"other";a:5:{s:3:"key";s:5:"other";s:8:"describe";s:12:"其它设置";s:6:"values";a:8:{s:8:"postpaid";a:3:{i:10;s:1:"0";i:20;s:1:"0";i:30;s:1:"0";}s:8:"is_stock";s:1:"0";s:5:"goods";a:2:{s:8:"sell_out";s:1:"1";s:9:"delisting";s:1:"0";}s:9:"open_shop";s:1:"1";s:10:"is_calling";s:1:"1";s:10:"bind_phone";s:1:"1";s:11:"balance_pay";s:1:"0";s:12:"order_export";s:3:"col";}s:9:"applet_id";i:10001;s:11:"update_time";i:0;}}
a:2:{s:6:"center";a:5:{s:3:"key";s:6:"center";s:8:"describe";s:18:"用户中心设置";s:6:"values";a:5:{s:3:"vip";s:1:"1";s:7:"setting";s:1:"0";s:6:"helper";s:1:"0";s:7:"contact";a:2:{s:7:"is_open";s:1:"1";s:4:"type";s:6:"wechat";}s:4:"menu";a:5:{i:0;a:4:{s:4:"logo";s:62:"https://app.cxhxy.dev.1nww.com/addons/food/img/applet/pact.png";s:5:"title";s:12:"预约订桌";s:4:"path";s:15:"user/pact/index";s:4:"sort";i:10;}i:1;a:4:{s:4:"logo";s:64:"https://app.cxhxy.dev.1nww.com/addons/food/img/applet/coupon.png";s:5:"title";s:12:"我的卡券";s:4:"path";s:17:"user/coupon/index";s:4:"sort";i:20;}i:2;a:4:{s:4:"logo";s:65:"https://app.cxhxy.dev.1nww.com/addons/food/img/applet/address.png";s:5:"title";s:12:"我的地址";s:4:"path";s:18:"user/address/index";s:4:"sort";i:30;}i:3;a:4:{s:4:"logo";s:68:"https://app.cxhxy.dev.1nww.com/addons/food/img/applet/collection.png";s:5:"title";s:12:"签到中心";s:4:"path";s:15:"user/sign/index";s:4:"sort";i:40;}i:4;a:4:{s:4:"logo";s:65:"https://app.cxhxy.dev.1nww.com/addons/food/img/applet/comment.png";s:5:"title";s:12:"评价记录";s:4:"path";s:18:"user/comment/index";s:4:"sort";i:50;}}}s:9:"applet_id";i:10001;s:11:"update_time";i:0;}s:5:"other";a:5:{s:3:"key";s:5:"other";s:8:"describe";s:12:"其它设置";s:6:"values";a:8:{s:8:"postpaid";a:3:{i:10;s:1:"0";i:20;s:1:"0";i:30;s:1:"0";}s:8:"is_stock";s:1:"0";s:5:"goods";a:2:{s:8:"sell_out";s:1:"1";s:9:"delisting";s:1:"0";}s:9:"open_shop";s:1:"1";s:10:"is_calling";s:1:"1";s:10:"bind_phone";s:1:"1";s:11:"balance_pay";s:1:"0";s:12:"order_export";s:3:"col";}s:9:"applet_id";i:10001;s:11:"update_time";i:0;}}

0
runtime/cache/4e/819c837d54a6ed09abc77a8560a66f.php vendored Executable file → Normal file
View File

View File

@ -1,4 +1,4 @@
<?php
//000000000600
exit();?>
1701764602
1701848041

View File

@ -1,495 +0,0 @@
<?php /*a:2:{s:67:"/www/wwwroot/app.cxhxy.dev.1nww.com/app/index/view/index/index.html";i:1700810483;s:69:"/www/wwwroot/app.cxhxy.dev.1nww.com/app/index/view/layout/layout.html";i:1700810673;}*/ ?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title><?php echo htmlentities($web['name']); ?> - <?php echo htmlentities($title); ?></title>
<meta name="author" content="<?php echo htmlentities($web['name']); ?>">
<meta name="keywords" content="<?php echo !empty($keywords) ? htmlentities($keywords) : htmlentities($web['keywords']); ?>">
<meta name="description" content="<?php echo !empty($description) ? htmlentities($description) : htmlentities($web['description']); ?>">
<meta name="referrer" content="never">
<link rel="icon" href="/favicon.png" type="image/x-icon">
<link rel="stylesheet" href="/assets/plugins/animate/animate.min.css?v=<?php echo htmlentities($version); ?>">
<link rel="stylesheet" href="/assets/plugins/amazeui/amazeui.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/css/hema.app.css?v=<?php echo htmlentities($version); ?>" />
<link href="/assets/css/index.css?v=<?php echo htmlentities($version); ?>" rel="stylesheet">
<?php echo $web['baidu_count']; ?>
<script>
BASE_URL = '<?php echo isset($base_url) ? $base_url : ''; ?>';
STORE_URL = '<?php echo isset($store_url) ? $store_url : ''; ?>';
</script>
</head>
<body id="page-top">
<header class="am-topbar am-topbar-inverse am-topbar-fixed-top">
<div class="main">
<div class="am-topbar-brand index-login"> <a href="<?php echo url('/'); ?>"><img src="/assets/img/logo.png" /></a>
</div>
<div class="am-collapse am-topbar-collapse" id="doc-topbar-collapse">
<ul class="am-nav am-nav-pills am-topbar-nav">
<li class="<?php echo $key=='index' ? 'am-active' : ''; ?>" data-am-dropdown> <a href="<?php echo url('/'); ?>">首页</a>
</li>
<li class="<?php echo $key=='proxy' ? 'am-active' : ''; ?>" data-am-dropdown> <a
href="<?php echo url('proxy/index'); ?>">招商加盟</a> </li>
<li class="<?php echo $key=='contact' ? 'am-active' : ''; ?>" data-am-dropdown> <a
href="<?php echo url('contact/index'); ?>">联系我们</a> </li>
</ul>
<form class="am-topbar-form am-topbar-left am-form-inline" role="search">
<div class="am-form-group"> <input type="text" class="am-form-field am-input-sm"
placeholder="搜索"> </div>
</form>
<div class="am-topbar-right"> <?php if($user): ?> <div class="am-dropdown"
data-am-dropdown="{boundary: '.am-topbar'}">
<div class="am-topbar-btn am-dropdown-toggle" style="color:#fff;" data-am-dropdown-toggle>
<img src="<?php echo htmlentities($user['user']['avatar']); ?>" class="user-nav-img" /> <?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="<?php echo url('passport/logout'); ?>">安全退出</a></li>
</ul>
</div> <?php else: ?> <div class="am-dropdown" data-am-dropdown="{boundary: '.am-topbar'}">
<div class="am-topbar-btn am-dropdown-toggle" style="color:#fff;" data-am-dropdown-toggle>
<img src="/assets/img/avatar.png" class="user-nav-img" /> <span
class="am-icon-caret-down"></span> </div>
<ul class="am-dropdown-content">
<li><a href="<?php echo url('passport/register'); ?>">用户注册</a></li>
<li><a href="<?php echo url('passport/login'); ?>">用户登录</a></li>
</ul>
</div> <?php endif; ?> </div>
</div>
</div>
</header>
<main id="mainbody"> <div class="section">
<div data-am-widget="slider" class="am-slider am-slider-b1" data-am-slider='{"controlNav":false}' >
<ul class="am-slides">
<li>
<div class="banner" style="background: url('/assets/img/index/index_banner1.png') center center no-repeat; width:100%;">
<div style="height:20px;"></div>
<h1 class="banner-title">专业微信小程序解决方案</h1>
<p class="banner-info">
无需开发 &nbsp;&nbsp; 一键生成 &nbsp;&nbsp; 操作简单
</p>
<p class="banner-info">
<a href="<?php echo url('passport/login'); ?>" class="am-btn am-btn-secondary am-btn-xl am-radius">立即注册</a>
</p>
</div>
</li>
<li>
<div class="banner" style="background: url('/assets/img/index/index_banner2.png') center center no-repeat; width:100%;">
<div style="height:20px;"></div>
<h1 class="banner-title">点餐,外卖,配送,会员,营销,连锁经营一体化解决方案</h1>
<p class="banner-info">快速搭建专属小程序 助力餐厅拥抱移动社交流量红利</p>
<p class="banner-info">
<a href="<?php echo url('user/register'); ?>" class="am-btn am-btn-secondary am-btn-xl am-radius">立即注册</a>
</p>
</div>
</li>
<li>
<div class="banner" style="background: url('/assets/img/index/index_banner3.png') center center no-repeat; width:100%;">
<div style="height:20px;"></div>
<h1 class="banner-title">拼团,秒杀,砍价,优惠券,智慧零售商城解决方案</h1>
<p class="banner-info">赋能线下门店,重构消费连接</p>
<p class="banner-info">
<a href="<?php echo url('passport/login'); ?>" class="am-btn am-btn-secondary am-btn-xl am-radius">立即注册</a>
</p>
</div>
</li>
</ul>
</div>
</div>
<div class="section gray">
<div class="main-p-60">
<div class="title">
<p class="h1">六步开店 一站完成</p>
<p>特有接口,一路无阻,快速上线</p>
</div>
<div class="item-line">
<ul class="warp">
<li>
<div class="left">
<span><img src="/assets/img/index/mode-icon5.png"></span>
<p class="h1">商家注册</p>
<p>微信扫码注册登录一步完成</p>
</div>
<div class="right">
<img src="/assets/img/index/gengduo.png">
</div>
</li>
<li>
<div class="left">
<span><img src="/assets/img/index/mode-icon4.png"></span>
<p class="h1">授权小程序</p>
<p>扫码授权或免费快速注册</p>
</div>
<div class="right">
<img src="/assets/img/index/gengduo.png">
</div>
</li>
<li>
<div class="left">
<span><img src="/assets/img/index/mode-icon6.png"></span>
<p class="h1">对接支付</p>
<p>在线开通收款账户或对接已有账户</p>
</div>
<div class="right">
<img src="/assets/img/index/gengduo.png">
</div>
</li>
<li>
<div class="left">
<span><img src="/assets/img/index/mode-icon7.png"></span>
<p class="h1">发布商品</p>
<p>商品分类设置,上传单双规格商品</p>
</div>
<div class="right">
<img src="/assets/img/index/gengduo.png">
</div>
</li>
<li>
<div class="left">
<span><img src="/assets/img/index/mode-icon8.png"></span>
<p class="h1">装修店铺</p>
<p>DIY小程序店铺页面配置店铺</p>
</div>
<div class="right">
<img src="/assets/img/index/gengduo.png">
</div>
</li>
<li>
<div class="left">
<span><img src="/assets/img/index/mode-icon9.png"></span>
<p class="h1">发布上线</p>
<p>一键发布与升级小程序</p>
</div>
</li>
</ul>
</div>
<div class="title">
<a href="<?php echo url('passport/login'); ?>" class="am-btn am-btn-secondary am-btn-xl am-radius">立即免费开店</a>
</div>
</div>
</div>
<div class="section back-img" style="background-image: url('/assets/img/index/banner-6.jpg'); z-index: 10; height: 770px;">
<div class="main-p-60" style="position: relative; padding-bottom: 10px; ">
<div class="title white">
<p class="h1">一套模板同步十大平台</p>
<p>提供uni-app版本模板源代码实现多平台发布</p>
</div>
<div class="item-code-desc clearfix">
<div class="left fl wow slideInLeft">
<img src="/assets/img/index/banner-7.png">
</div>
<div class="right fr wow bounceInRight">
<ul>
<li>
<img src="/assets/img/index/code-icon1.png">
<h1>Android</h1>
</li>
<li>
<img src="/assets/img/index/code-icon2.png">
<h1>IOS</h1>
</li>
<li>
<img src="/assets/img/index/code-icon3.png">
<h1>H5</h1>
</li>
<li>
<img src="/assets/img/index/code-icon4.png">
<h1>微信小程序</h1>
</li>
<li>
<img src="/assets/img/index/code-icon5.png">
<h1>支付宝小程序</h1>
</li>
<li>
<img src="/assets/img/index/code-icon6.png">
<h1>百度小程序</h1>
</li>
<li>
<img src="/assets/img/index/code-icon7.png">
<h1>字节跳动小程序</h1>
</li>
<li>
<img src="/assets/img/index/code-icon8.png">
<h1>QQ小程序</h1>
</li>
<li>
<img src="/assets/img/index/code-icon9.png">
<h1>快应用</h1>
</li>
<li>
<img src="/assets/img/index/code-icon10.png">
<h1>360小程序</h1>
</li>
</ul>
</div>
</div>
</div>
</div>
<div class="section gray">
<div class="main-p-60">
<div class="title">
<p class="h1">功能模块</p>
<p>实时监控订单情况,灵活手动调度订单,高效完成配送</p>
</div>
<div class="function-list wow bounceInLeft">
<ul>
<li>
<img src="/assets/img/index/wake-icon4.png">
<h1>实时接单</h1>
<p>商家实时接单,通过订单调度中心,实时监控配送情况,灵活手动调度订单,高效完成配送</p>
</li>
<li>
<img src="/assets/img/index/wake-icon5.png">
<h1>支付方式</h1>
<p>用户可通过线上微信、余额支付,线下货到付款的方式,轻松完成小程序外卖下单,不一样的下单体验</p>
</li>
<li>
<img src="/assets/img/index/wake-icon6.png">
<h1>会员管理</h1>
<p>会员信息触手可得,方便查找,高效会员营销推广,各种营销方案尽在手中</p>
</li>
<li>
<img src="/assets/img/index/wake-icon7.png">
<h1>数据统计</h1>
<p>会员统计、订单统计、销售统计、详细的订单数据统计,一目了然</p>
</li>
<li>
<img src="/assets/img/index/wake-icon8.png">
<h1>订单管理</h1>
<p>后台轻松管理订单,方便查看订单号、总额、支付状态等信息</p>
</li>
<li>
<img src="/assets/img/index/wake-icon9.png">
<h1>客户维系</h1>
<p>轻松管理公众号粉丝,可积累的客户数据,客户通过关注注册,后台即可生成用户管理数据</p>
</li>
<li>
<img src="/assets/img/index/wake-icon10.png">
<h1>营销工具</h1>
<p>优惠券、满减活动、限时秒杀、拼图、砍价、充值送优惠等可随意组合,在吸粉引流的同时刺激客户直接消费</p>
</li>
<li>
<img src="/assets/img/index/wake-icon11.png">
<h1>多样配送</h1>
<p>可选择商家自主配送,上门自提,第三方配送,提高配送效率,降低配送成本</p>
</li>
</ul>
</div>
</div>
</div>
<div class="section" style=" height:860px; background:url('/assets/img/index/down-img-3.jpg')no-repeat center center;background-size: cover;background-attachment: fixed;">
<div class="main-p-60" style="padding-top:50px;">
<div class="title white">
<p class="h1">丰富营销模块 增强用户黏合性</p>
<p>丰富新颖的营销手法,让您的商城促销玩出新花样。拉新、转化、促活、复购、留存、推广,店铺经营面面俱到。</p>
</div>
<div class="trait-list">
<ul>
<li>拼团</li>
<li>秒杀</li>
<li>砍价</li>
<li>优惠券</li>
</ul>
</div>
<div class="img-list wow bounceInRight">
<img src="/assets/img/index/down-img-4.png">
<img src="/assets/img/index/down-img-5.png" class="img-2">
<img src="/assets/img/index/down-img-6.png" class="img-3">
<img src="/assets/img/index/down-img-7.png" class="img-4">
<img src="/assets/img/index/down-img-8.png" class="img-5">
</div>
</div>
</div>
<div class="section gray" style="height:544px;">
<div class="main-p-60">
<div class="title" style="color:#fff;">
<p class="h1">五大管理模块</p>
<p>打造全方位运营模式让运维简单,高效,智能,助力快速开展小程序业务。</p>
</div>
<div class="management-list">
<ul>
<li>
<img src="/assets/img/index/mode-icon1.png" alt="">
<p class="h1">超管端</p>
<p>对商户集中管理,统一发布小程序模板,等级收费,打印机授权,消息推送等</p>
</li>
<li>
<img src="/assets/img/index/mode-icon2.png" alt="">
<p class="h1">代理端</p>
<p>多级分销,区域保护,代理自由定价,对自己的客户全方位服务管理</p>
</li>
<li>
<img src="/assets/img/index/mode-icon3.png" alt="">
<p class="h1">商户端</p>
<p>扫码点餐端和商城端,上传商品,营销活动,订单管理,会员管理,DIY生成小程序多门店等</p>
</li>
<li>
<img src="/assets/img/index/mode-icon4.png" alt="">
<p class="h1">助手端</p>
<p>手机移动管理,让商家随时随地关注门店经营状态,帮助店长店员更方便的维护订单状态和服务顾客。</p>
</li>
<li>
<img src="/assets/img/index/mode-icon5.png" alt="">
<p class="h1">店长端</p>
<p>门店管理一步到位,解锁店长管理权限</p>
</li>
</ul>
</div>
</div>
</div>
</main>
<footer style="clear:both">
<div class="section">
<div class="foot-nav-box">
<div class="foot-nav">
<div class="nav-list">
<p>
<span class="title">联系我们</span>
&nbsp;&nbsp;&nbsp;
<?php if(!empty($web['phone'])): ?>
电话:<?php echo htmlentities($web['phone']); ?>
<?php endif; ?>
</p>
<p>
<span class="title">工作时间</span>
&nbsp;&nbsp;&nbsp; 周一到周六(9:00-17:30)
</p>
<!--<span class="title">友情链接</span> -->
<!--<?php foreach($link as $vo): ?> -->
<!-- &nbsp;&nbsp;&nbsp;-->
<!-- <a href="<?php echo $vo['url']; ?>" target="_blank">-->
<!-- <?php echo $vo['name']; ?>-->
<!-- </a>-->
<!-- &nbsp;&nbsp; -->
<!--<?php endforeach; ?> -->
</div>
<div class="downApp">
<img src="<?php echo htmlentities((isset($web['qrcode']) && ($web['qrcode'] !== '')?$web['qrcode']:'/assets/img/no_pic.jpg')); ?>">
<p>关注我们</p>
</div>
<div class="copy">
Copyright© All rights reserved.闽ICP备19004629号-1 <br>
<a href="http://beian.miit.gov.cn/" target="_blank"><?php echo htmlentities($web['icp']); ?></a>
</div>
</div>
</div>
</div>
</footer>
<!--<div class="RightFrame">-->
<!-- <div class="SmallBox">-->
<!-- <div class="Pic">-->
<!-- <img src="/assets/img/index/Right-pic-TX.png"/>-->
<!-- <span></span>-->
<!-- </div>-->
<!-- <?php if(!empty($web['qq'])): ?>-->
<!-- <a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin=<?php echo htmlentities($web['qq']); ?>&site=qq&menu=yes">-->
<!-- <div class="qq">-->
<!-- <em></em>QQ 客服-->
<!-- </div>-->
<!-- </a>-->
<!-- <?php endif; ?>-->
<!-- <?php if(!empty($web['wechat'])): ?>-->
<!-- <a href="#">-->
<!-- <div class="wx">-->
<!-- <em></em>微信客服-->
<!-- <img src="<?php echo htmlentities($web['wechat']); ?>">-->
<!-- </div>-->
<!-- </a>-->
<!-- <?php endif; ?>-->
<!-- </div>-->
<!-- </div>-->
</body>
<script src="/assets/plugins/wow/wow.min.js?v=<?php echo htmlentities($version); ?>"></script>
<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/plugins/vue/vue.min.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>
new WOW().init();
</script>
</html>

View File

@ -1,436 +0,0 @@
<?php /*a:3:{s:67:"/www/wwwroot/app.cxhxy.dev.1nww.com/app/index/view/proxy/index.html";i:1700552721;s:69:"/www/wwwroot/app.cxhxy.dev.1nww.com/app/index/view/layout/layout.html";i:1700810673;s:65:"/www/wwwroot/app.cxhxy.dev.1nww.com/app/index/view/proxy/add.html";i:1700552721;}*/ ?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title><?php echo htmlentities($web['name']); ?> - <?php echo htmlentities($title); ?></title>
<meta name="author" content="<?php echo htmlentities($web['name']); ?>">
<meta name="keywords" content="<?php echo !empty($keywords) ? htmlentities($keywords) : htmlentities($web['keywords']); ?>">
<meta name="description" content="<?php echo !empty($description) ? htmlentities($description) : htmlentities($web['description']); ?>">
<meta name="referrer" content="never">
<link rel="icon" href="/favicon.png" type="image/x-icon">
<link rel="stylesheet" href="/assets/plugins/animate/animate.min.css?v=<?php echo htmlentities($version); ?>">
<link rel="stylesheet" href="/assets/plugins/amazeui/amazeui.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/css/hema.app.css?v=<?php echo htmlentities($version); ?>" />
<link href="/assets/css/index.css?v=<?php echo htmlentities($version); ?>" rel="stylesheet">
<?php echo $web['baidu_count']; ?>
<script>
BASE_URL = '<?php echo isset($base_url) ? $base_url : ''; ?>';
STORE_URL = '<?php echo isset($store_url) ? $store_url : ''; ?>';
</script>
</head>
<body id="page-top">
<header class="am-topbar am-topbar-inverse am-topbar-fixed-top">
<div class="main">
<div class="am-topbar-brand index-login"> <a href="<?php echo url('/'); ?>"><img src="/assets/img/logo.png" /></a>
</div>
<div class="am-collapse am-topbar-collapse" id="doc-topbar-collapse">
<ul class="am-nav am-nav-pills am-topbar-nav">
<li class="<?php echo $key=='index' ? 'am-active' : ''; ?>" data-am-dropdown> <a href="<?php echo url('/'); ?>">首页</a>
</li>
<li class="<?php echo $key=='proxy' ? 'am-active' : ''; ?>" data-am-dropdown> <a
href="<?php echo url('proxy/index'); ?>">招商加盟</a> </li>
<li class="<?php echo $key=='contact' ? 'am-active' : ''; ?>" data-am-dropdown> <a
href="<?php echo url('contact/index'); ?>">联系我们</a> </li>
</ul>
<form class="am-topbar-form am-topbar-left am-form-inline" role="search">
<div class="am-form-group"> <input type="text" class="am-form-field am-input-sm"
placeholder="搜索"> </div>
</form>
<div class="am-topbar-right"> <?php if($user): ?> <div class="am-dropdown"
data-am-dropdown="{boundary: '.am-topbar'}">
<div class="am-topbar-btn am-dropdown-toggle" style="color:#fff;" data-am-dropdown-toggle>
<img src="<?php echo htmlentities($user['user']['avatar']); ?>" class="user-nav-img" /> <?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="<?php echo url('passport/logout'); ?>">安全退出</a></li>
</ul>
</div> <?php else: ?> <div class="am-dropdown" data-am-dropdown="{boundary: '.am-topbar'}">
<div class="am-topbar-btn am-dropdown-toggle" style="color:#fff;" data-am-dropdown-toggle>
<img src="/assets/img/avatar.png" class="user-nav-img" /> <span
class="am-icon-caret-down"></span> </div>
<ul class="am-dropdown-content">
<li><a href="<?php echo url('passport/register'); ?>">用户注册</a></li>
<li><a href="<?php echo url('passport/login'); ?>">用户登录</a></li>
</ul>
</div> <?php endif; ?> </div>
</div>
</div>
</header>
<main id="mainbody"> <div class="section banner" style="background: url('/assets/img/index/proxy_banner.png') no-repeat center center">
<div style="height:20px;"></div>
<h1 class="banner-title"><?php echo htmlentities($web['name']); ?>区域服务商火热招募中</h1>
<p class="banner-info">
火爆的深度行业解决方案 助您畅享小程序流量红利
</p>
<p class="banner-info">
<a href="javascript: void(0)" id="apply-proxy" class="am-btn am-btn-secondary am-btn-xl am-radius">申请区域代理</a>
</p>
</div>
<div class="section gray">
<div class="main-p-60">
<div class="title">
<p class="h1">为什么选择<?php echo htmlentities($web['name']); ?></p>
<p>保姆式跟踪培养,为合作伙伴提供一流的发展空间</p>
</div>
<div class="select-list">
<ul>
<li class="right-none">
<img src="/assets/img/index/select-red1.png" class="red">
<img src="/assets/img/index/select-white1.png" class="white">
<p class="mrt h1">企业</p>
<p>中国银联挂牌服务商江苏省科创企业纳税A级企业</p>
</li>
<li class="right-none">
<img src="/assets/img/index/select-red2.png" class="red">
<img src="/assets/img/index/select-white2.png" class="white">
<p class="h1">品牌</p>
<p>公司自身拥有千万级用户,具备先天的传播优势!</p>
</li>
<li>
<img src="/assets/img/index/select-red3.png" class="red">
<img src="/assets/img/index/select-white3.png" class="white">
<p class="h1">产品</p>
<p>完整的产品线,构建各个行业生态系统</p>
</li>
<li class="right-none top-none">
<img src="/assets/img/index/select-red4.png" class="red">
<img src="/assets/img/index/select-white4.png" class="white">
<p class="h1">技术</p>
<p>十二年技术研发团队全部出自科班部份来源于BAT</p>
</li>
<li class="right-none top-none">
<img src="/assets/img/index/select-red5.png" class="red">
<img src="/assets/img/index/select-white5.png" class="white">
<p class="mrt1 h1">服务</p>
<p> “一对一”顾问式服务,节假日等全年无休</p>
</li>
<li class="top-none">
<img src="/assets/img/index/select-red6.png" class="red">
<img src="/assets/img/index/select-white6.png" class="white">
<p class="h1">回报率</p>
<p>全新的行业产业链模式,回报率超乎你想象</p>
</li>
</ul>
</div>
</div>
</div>
<div class="section gray">
<div class="main-p-60 clearfix">
<div class="title" style="margin-bottom: 65px;">
<p class="h1">八大支持</p>
<p>我们将为合作伙伴营造一流的发展环境</p>
</div>
<div class="support">
<span class="support-info">
<p class="h1">产品销售支持</p>
<p>产品经理实时对接销售,团队提供培训支持</p>
</span>
<span class="support-info">
<p class="h1">区域保护支持</p>
<p>区域保护系统和价格保护政策避免订单冲突</p>
</span>
<span class="support-info">
<p class="h1">售后运营支持</p>
<p>专业运营团队保障用户产品只用</p>
</span>
<span class="support-info">
<p class="h1">技术保障支持</p>
<p>金融级别系统建设,保障业务安全稳定</p>
</span>
<span class="support-info">
<p class="h1">品牌宣传支持</p>
<p>全国范围线上线下,多渠道全方位宣传</p>
</span>
<span class="support-info">
<p class="h1">产品升级支持</p>
<p>研发团队专注产品研发持续优化产品</p>
</span>
<span class="support-info">
<p class="h1">高效甩单支持</p>
<p>总部将客户信息按区域分配,提供甩单支持</p>
</span>
<span class="support-info">
<p class="h1">远程服务支持</p>
<p>全天候贴心客服服务7*24小时跟踪</p>
</span>
</div>
<img src="/assets/img/index/join-img.jpg" class="join-img">
</div>
</div>
<div class="section back-img" style="height:544px;">
<div class="main-p-60">
<div class="title" style="color:#fff;">
<p class="h1">加盟流程</p>
<p>只需4步 即可快速开店</p>
</div>
<div class="join-list">
<ul>
<li>
<span class="img-box"><img src="/assets/img/index/join-icon1.png" alt=""></span>
<p class="h1">填写信息</p>
<p>填写申请表格,提交合作</p>
</li>
<li>
<span class="img-box"><img src="/assets/img/index/join-icon2.png" alt=""></span>
<p class="h1">对接经理</p>
<p>一个工作日内渠道经理和您对接</p>
</li>
<li>
<span class="img-box"><img src="/assets/img/index/join-icon3.png" alt=""></span>
<p class="h1">确认合作</p>
<p>与码点餐签署合作协议</p>
</li>
<li>
<span class="img-box"><img src="/assets/img/index/join-icon4.png" alt=""></span>
<p class="h1">开展业务</p>
<p>开通帐号,发展市场</p>
</li>
</ul>
</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">
<label class="am-radio-inline">
<input type="radio" name="data[agent_mode]" value="10" data-am-ucheck checked>
区县
</label>
<label class="am-radio-inline">
<input type="radio" name="data[agent_mode]" value="20" data-am-ucheck>
市级
</label>
<label class="am-radio-inline">
<input type="radio" name="data[agent_mode]" value="30" data-am-ucheck>
省级
</label>
</div>
</div>
<div class="am-form-group am-padding-top">
<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[details][id_card_name]"
placeholder="请输入联系人" 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" class="tpl-form-input" name="data[details][mobile_phone]"
placeholder="请输入联系电话" 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">
<div class="am-block">
<input type="text" style="background: none !important;" id="coordinate"
class="tpl-form-input" name="data[location]"
placeholder="请选择区域位置" readonly="" required>
</div>
<div class="am-block am-padding-top-xs">
<iframe id="map" src="/index/proxy/getpoint" width="550" height="470"></iframe>
</div>
</div>
</div>
</div>
</script>
<script type="text/javascript">
/**
* 设置坐标
*/
function setCoordinate(value) {
var $coordinate = $('#coordinate');
$coordinate.val(value);
// 触发验证
$coordinate.trigger('change');
}
$(function () {
/**
* 表单验证提交
*/
$('#apply-proxy').click(function(){
$.get("<?php echo url('proxy/add'); ?>", function (result) {
if(result.code == 0){
$.show_error(result.msg);
return false;
}
$.showAction({
title: '代理申请',
area: '750px',
content: template('tpl-add', {}),
uCheck: true,
success: function ($content) {
$('#my-form').formPost({
url: "<?php echo url('proxy/add'); ?>"
});
},
btn2: function ($content) {
return true;
}
});
});
});
});
</script> </main>
<footer style="clear:both">
<div class="section">
<div class="foot-nav-box">
<div class="foot-nav">
<div class="nav-list">
<p>
<span class="title">联系我们</span>
&nbsp;&nbsp;&nbsp;
<?php if(!empty($web['phone'])): ?>
电话:<?php echo htmlentities($web['phone']); ?>
<?php endif; ?>
</p>
<p>
<span class="title">工作时间</span>
&nbsp;&nbsp;&nbsp; 周一到周六(9:00-17:30)
</p>
<!--<span class="title">友情链接</span> -->
<!--<?php foreach($link as $vo): ?> -->
<!-- &nbsp;&nbsp;&nbsp;-->
<!-- <a href="<?php echo $vo['url']; ?>" target="_blank">-->
<!-- <?php echo $vo['name']; ?>-->
<!-- </a>-->
<!-- &nbsp;&nbsp; -->
<!--<?php endforeach; ?> -->
</div>
<div class="downApp">
<img src="<?php echo htmlentities((isset($web['qrcode']) && ($web['qrcode'] !== '')?$web['qrcode']:'/assets/img/no_pic.jpg')); ?>">
<p>关注我们</p>
</div>
<div class="copy">
Copyright© All rights reserved.闽ICP备19004629号-1 <br>
<a href="http://beian.miit.gov.cn/" target="_blank"><?php echo htmlentities($web['icp']); ?></a>
</div>
</div>
</div>
</div>
</footer>
<!--<div class="RightFrame">-->
<!-- <div class="SmallBox">-->
<!-- <div class="Pic">-->
<!-- <img src="/assets/img/index/Right-pic-TX.png"/>-->
<!-- <span></span>-->
<!-- </div>-->
<!-- <?php if(!empty($web['qq'])): ?>-->
<!-- <a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin=<?php echo htmlentities($web['qq']); ?>&site=qq&menu=yes">-->
<!-- <div class="qq">-->
<!-- <em></em>QQ 客服-->
<!-- </div>-->
<!-- </a>-->
<!-- <?php endif; ?>-->
<!-- <?php if(!empty($web['wechat'])): ?>-->
<!-- <a href="#">-->
<!-- <div class="wx">-->
<!-- <em></em>微信客服-->
<!-- <img src="<?php echo htmlentities($web['wechat']); ?>">-->
<!-- </div>-->
<!-- </a>-->
<!-- <?php endif; ?>-->
<!-- </div>-->
<!-- </div>-->
</body>
<script src="/assets/plugins/wow/wow.min.js?v=<?php echo htmlentities($version); ?>"></script>
<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/plugins/vue/vue.min.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>
new WOW().init();
</script>
</html>

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,74 +0,0 @@
[2023-11-21T15:57:38+08:00][error] [2]file_put_contents(./temp//temp/food/wechat-shop-10002.png.png): failed to open stream: No such file or directory
[2023-11-21T15:57:46+08:00][error] [2]file_put_contents(./temp//temp/food/wechat-shop-10002.png.png): failed to open stream: No such file or directory
[2023-11-21T15:57:50+08:00][error] [2]file_put_contents(./temp//temp/food/wechat-shop-10001.png.png): failed to open stream: No such file or directory
[2023-11-21T15:58:08+08:00][error] [2]file_put_contents(./temp//temp/food/wechat-shop-10001.png.png): failed to open stream: No such file or directory
[2023-11-21T15:58:08+08:00][error] [2]file_put_contents(./temp//temp/food/wechat-shop-10001.png.png): failed to open stream: No such file or directory
[2023-11-21T15:58:08+08:00][error] [2]file_put_contents(./temp//temp/food/wechat-shop-10001.png.png): failed to open stream: No such file or directory
[2023-11-21T15:58:09+08:00][error] [2]file_put_contents(./temp//temp/food/wechat-shop-10001.png.png): failed to open stream: No such file or directory
[2023-11-21T15:58:09+08:00][error] [2]file_put_contents(./temp//temp/food/wechat-shop-10001.png.png): failed to open stream: No such file or directory
[2023-11-21T15:58:09+08:00][error] [2]file_put_contents(./temp//temp/food/wechat-shop-10001.png.png): failed to open stream: No such file or directory
[2023-11-21T15:58:09+08:00][error] [2]file_put_contents(./temp//temp/food/wechat-shop-10001.png.png): failed to open stream: No such file or directory
[2023-11-21T15:58:09+08:00][error] [2]file_put_contents(./temp//temp/food/wechat-shop-10001.png.png): failed to open stream: No such file or directory
[2023-11-21T15:58:45+08:00][error] [2]file_put_contents(./temp//temp/food/wechat-shop-10001.png.png): failed to open stream: No such file or directory
[2023-11-21T15:58:46+08:00][error] [2]file_put_contents(./temp//temp/food/wechat-shop-10001.png.png): failed to open stream: No such file or directory
[2023-11-21T15:58:46+08:00][error] [2]file_put_contents(./temp//temp/food/wechat-shop-10001.png.png): failed to open stream: No such file or directory
[2023-11-21T15:58:47+08:00][error] [2]file_put_contents(./temp//temp/food/wechat-shop-10001.png.png): failed to open stream: No such file or directory
[2023-11-21T15:58:47+08:00][error] [2]file_put_contents(./temp//temp/food/wechat-shop-10001.png.png): failed to open stream: No such file or directory
[2023-11-21T15:58:47+08:00][error] [2]file_put_contents(./temp//temp/food/wechat-shop-10001.png.png): failed to open stream: No such file or directory
[2023-11-21T15:58:47+08:00][error] [2]file_put_contents(./temp//temp/food/wechat-shop-10001.png.png): failed to open stream: No such file or directory
[2023-11-21T15:59:33+08:00][error] [2]file_put_contents(./temp//temp/food/wechat-shop-10001.png.png): failed to open stream: No such file or directory
[2023-11-21T15:59:34+08:00][error] [2]file_put_contents(./temp//temp/food/wechat-shop-10001.png.png): failed to open stream: No such file or directory
[2023-11-21T15:59:37+08:00][error] [2]file_put_contents(./temp//temp/food/wechat-shop-10001.png.png): failed to open stream: No such file or directory
[2023-11-21T15:59:53+08:00][error] [2]file_put_contents(./temp//temp/food/wechat-shop-10001.png.png): failed to open stream: No such file or directory
[2023-11-21T15:59:54+08:00][error] [2]file_put_contents(./temp//temp/food/wechat-shop-10001.png.png): failed to open stream: No such file or directory
[2023-11-21T15:59:54+08:00][error] [2]file_put_contents(./temp//temp/food/wechat-shop-10001.png.png): failed to open stream: No such file or directory
[2023-11-21T15:59:55+08:00][error] [2]file_put_contents(./temp//temp/food/wechat-shop-10001.png.png): failed to open stream: No such file or directory
[2023-11-21T15:59:55+08:00][error] [2]file_put_contents(./temp//temp/food/wechat-shop-10001.png.png): failed to open stream: No such file or directory
[2023-11-21T15:59:55+08:00][error] [2]file_put_contents(./temp//temp/food/wechat-shop-10001.png.png): failed to open stream: No such file or directory
[2023-11-21T15:59:55+08:00][error] [2]file_put_contents(./temp//temp/food/wechat-shop-10001.png.png): failed to open stream: No such file or directory
[2023-11-21T15:59:55+08:00][error] [2]file_put_contents(./temp//temp/food/wechat-shop-10001.png.png): failed to open stream: No such file or directory
[2023-11-21T15:59:56+08:00][error] [2]file_put_contents(./temp//temp/food/wechat-shop-10001.png.png): failed to open stream: No such file or directory
[2023-11-21T15:59:56+08:00][error] [2]file_put_contents(./temp//temp/food/wechat-shop-10001.png.png): failed to open stream: No such file or directory
[2023-11-21T15:59:56+08:00][error] [2]file_put_contents(./temp//temp/food/wechat-shop-10001.png.png): failed to open stream: No such file or directory
[2023-11-21T15:59:56+08:00][error] [2]file_put_contents(./temp//temp/food/wechat-shop-10001.png.png): failed to open stream: No such file or directory
[2023-11-21T15:59:56+08:00][error] [2]file_put_contents(./temp//temp/food/wechat-shop-10001.png.png): failed to open stream: No such file or directory
[2023-11-21T15:59:56+08:00][error] [2]file_put_contents(./temp//temp/food/wechat-shop-10001.png.png): failed to open stream: No such file or directory
[2023-11-21T15:59:57+08:00][error] [2]file_put_contents(./temp//temp/food/wechat-shop-10001.png.png): failed to open stream: No such file or directory
[2023-11-21T15:59:57+08:00][error] [2]file_put_contents(./temp//temp/food/wechat-shop-10001.png.png): failed to open stream: No such file or directory
[2023-11-21T15:59:57+08:00][error] [2]file_put_contents(./temp//temp/food/wechat-shop-10001.png.png): failed to open stream: No such file or directory
[2023-11-21T16:00:43+08:00][error] [2]file_put_contents(./temp//temp/food/wechat-shop-10001.png.png): failed to open stream: No such file or directory
[2023-11-21T16:01:22+08:00][error] [2]file_put_contents(./temp//temp/food/wechat-shop-10001.png.png): failed to open stream: No such file or directory
[2023-11-21T16:03:13+08:00][error] [2]file_put_contents(./temp//temp/food/wechat-shop-10001.png.png): failed to open stream: No such file or directory
[2023-11-21T16:03:14+08:00][error] [2]file_put_contents(./temp//temp/food/wechat-shop-10001.png.png): failed to open stream: No such file or directory
[2023-11-21T16:03:14+08:00][error] [2]file_put_contents(./temp//temp/food/wechat-shop-10001.png.png): failed to open stream: No such file or directory
[2023-11-21T16:03:14+08:00][error] [2]file_put_contents(./temp//temp/food/wechat-shop-10001.png.png): failed to open stream: No such file or directory
[2023-11-21T16:03:15+08:00][error] [2]file_put_contents(./temp//temp/food/wechat-shop-10001.png.png): failed to open stream: No such file or directory
[2023-11-21T16:03:15+08:00][error] [2]file_put_contents(./temp//temp/food/wechat-shop-10001.png.png): failed to open stream: No such file or directory
[2023-11-21T16:03:15+08:00][error] [2]file_put_contents(./temp//temp/food/wechat-shop-10001.png.png): failed to open stream: No such file or directory
[2023-11-21T16:03:15+08:00][error] [2]file_put_contents(./temp//temp/food/wechat-shop-10001.png.png): failed to open stream: No such file or directory
[2023-11-21T16:03:16+08:00][error] [2]file_put_contents(./temp//temp/food/wechat-shop-10001.png.png): failed to open stream: No such file or directory
[2023-11-21T16:03:16+08:00][error] [2]file_put_contents(./temp//temp/food/wechat-shop-10001.png.png): failed to open stream: No such file or directory
[2023-11-21T16:03:16+08:00][error] [2]file_put_contents(./temp//temp/food/wechat-shop-10001.png.png): failed to open stream: No such file or directory
[2023-11-21T16:03:17+08:00][error] [2]file_put_contents(./temp//temp/food/wechat-shop-10001.png.png): failed to open stream: No such file or directory
[2023-11-21T16:03:23+08:00][error] [2]file_put_contents(./temp//temp/food/wechat-shop-10002.png.png): failed to open stream: No such file or directory
[2023-11-21T16:03:55+08:00][error] [2]file_put_contents(./temp//temp/food/wechat-shop-10002.png.png): failed to open stream: No such file or directory
[2023-11-21T16:22:16+08:00][error] [2]file_put_contents(./temp//temp/food/wechat-shop-10002.png.png): failed to open stream: No such file or directory
[2023-11-21T16:22:38+08:00][error] [2]file_put_contents(./temp//temp/food/wechat-shop-10002.png.png): failed to open stream: No such file or directory
[2023-11-21T16:22:42+08:00][error] [2]file_put_contents(./temp//temp/food/wechat-shop-10002.png.png): failed to open stream: No such file or directory
[2023-11-21T16:23:29+08:00][error] [2]file_put_contents(./temp//temp/food/wechat-shop-10002.png.png): failed to open stream: No such file or directory
[2023-11-21T16:23:29+08:00][error] [2]file_put_contents(./temp//temp/food/wechat-shop-10002.png.png): failed to open stream: No such file or directory
[2023-11-21T16:23:30+08:00][error] [2]file_put_contents(./temp//temp/food/wechat-shop-10002.png.png): failed to open stream: No such file or directory
[2023-11-21T16:23:30+08:00][error] [2]file_put_contents(./temp//temp/food/wechat-shop-10002.png.png): failed to open stream: No such file or directory
[2023-11-21T16:23:30+08:00][error] [2]file_put_contents(./temp//temp/food/wechat-shop-10002.png.png): failed to open stream: No such file or directory
[2023-11-21T16:23:31+08:00][error] [2]file_put_contents(./temp//temp/food/wechat-shop-10002.png.png): failed to open stream: No such file or directory
[2023-11-21T16:23:31+08:00][error] [2]file_put_contents(./temp//temp/food/wechat-shop-10002.png.png): failed to open stream: No such file or directory
[2023-11-21T16:23:31+08:00][error] [2]file_put_contents(./temp//temp/food/wechat-shop-10002.png.png): failed to open stream: No such file or directory
[2023-11-21T16:23:32+08:00][error] [2]file_put_contents(./temp//temp/food/wechat-shop-10002.png.png): failed to open stream: No such file or directory
[2023-11-21T16:23:32+08:00][error] [2]file_put_contents(./temp//temp/food/wechat-shop-10002.png.png): failed to open stream: No such file or directory
[2023-11-21T16:23:32+08:00][error] [2]file_put_contents(./temp//temp/food/wechat-shop-10002.png.png): failed to open stream: No such file or directory
[2023-11-21T16:23:33+08:00][error] [2]file_put_contents(./temp//temp/food/wechat-shop-10002.png.png): failed to open stream: No such file or directory
[2023-11-21T16:23:33+08:00][error] [2]file_put_contents(./temp//temp/food/wechat-shop-10002.png.png): failed to open stream: No such file or directory
[2023-11-21T16:52:56+08:00][error] [2]file_put_contents(./temp//temp/food/wechat-shop-10002.png.png): failed to open stream: No such file or directory
[2023-11-21T16:53:41+08:00][error] [2]file_put_contents(./temp//temp/food/wechat-shop-10001.png.png): failed to open stream: No such file or directory
[2023-11-21T16:54:12+08:00][error] [2]file_put_contents(./temp//temp/food/wechat-shop-10002.png.png): failed to open stream: No such file or directory
[2023-11-21T16:54:18+08:00][error] [2]file_put_contents(./temp//temp/food/wechat-shop-10002.png.png): failed to open stream: No such file or directory

File diff suppressed because one or more lines are too long

View File

@ -1,248 +0,0 @@
<?php /*a:2:{s:78:"/www/wwwroot/app.cxhxy.dev.1nww.com/app/store/view/food/applet/page/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">页面列表</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 class="am-btn am-btn-primary am-radius"
href="<?php echo url('food.applet.page/add'); ?>">
<span class="am-icon-plus"></span> 新增
</a>
</div>
</div>
</div>
</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>页面ID</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['page_id']); ?></td>
<td class="am-text-middle">
<p class="item-title"><?php echo htmlentities($item['page_data']['array']['page']['params']['name']); ?></p>
</td>
<td class="am-text-middle">
<span class="<?php echo $item['page_type']['value']==10 ? 'am-badge am-badge-warning' : 'am-badge am-badge-secondary'; ?>">
<?php echo htmlentities($item['page_type']['text']); ?>
</span>
</td>
<td class="am-text-middle"><?php echo htmlentities($item['create_time']); ?></td>
<td class="am-text-middle"><?php echo htmlentities($item['update_time']); ?></td>
<td class="am-text-middle">
<div class="tpl-table-black-operation">
<a href="<?php echo url('food.applet.page/edit',['id' => $item['page_id']]); ?>">
<i class="am-icon-pencil"></i> 编辑
</a>
<?php if($item['page_type']['value'] == 20): ?>
<a href="javascript:;" class="item-del tpl-table-black-operation-del"
data-id="<?php echo htmlentities($item['page_id']); ?>">
<i class="am-icon-trash"></i> 删除
</a>
<a href="javascript:;" class="j-setHome tpl-table-black-operation-green"
data-id="<?php echo htmlentities($item['page_id']); ?>">
<i class="am-icon-home"></i> 设为首页
</a>
<?php endif; ?>
</div>
</td>
</tr>
<?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.applet.page/delete'); ?>";
$('.item-del').del('id', url);
// 设为首页
$('.j-setHome').click(function () {
var data = $(this).data();
var url = "<?php echo url('food.applet.page/status'); ?>";
$('.j-setHome').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

@ -1,448 +0,0 @@
<?php /*a:5:{s:77:"/www/wwwroot/app.cxhxy.dev.1nww.com/app/store/view/food/shop/table/index.html";i:1700553054;s:67:"/www/wwwroot/app.cxhxy.dev.1nww.com/app/store/view/layout/food.html";i:1700553054;s:75:"/www/wwwroot/app.cxhxy.dev.1nww.com/app/store/view/food/shop/table/add.html";i:1700553054;s:76:"/www/wwwroot/app.cxhxy.dev.1nww.com/app/store/view/food/shop/table/edit.html";i:1700553054;s:78:"/www/wwwroot/app.cxhxy.dev.1nww.com/app/store/view/food/shop/table/qrcode.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.shop.table/index'); ?>">
<div class="am-u-sm-12 am-u-md-3">
<div class="am-form-group">
<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 class="am-u-sm-12 am-u-md-9">
<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="am-scrollable-horizontal 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>
<th>显示排序</th>
<th>添加时间</th>
<th>管理操作</th>
</tr>
</thead>
<tbody>
<?php if(sizeof($list)>0): foreach($list as $index => $item): ?>
<tr>
<td class="am-text-middle"><?php echo htmlentities($item['table_id']); ?></td>
<td class="am-text-middle">
<p class="item-title"><?php echo htmlentities($item['table_name']); ?></p>
</td>
<td class="am-text-middle">
<span class="<?php echo $item['status']['value']==10 ? 'x-color-green' : 'x-color-red'; ?>">
<?php echo htmlentities($item['status']['text']); ?>
</span>
</td>
<td class="am-text-middle">
<a class="hema-qrcode" data-index="<?php echo htmlentities($index); ?>" href="javascript:;">
<i class="iconfont iconerweima" style="font-size:25px;color:#2979ff;"></i>
</a>
</td>
<td class="am-text-middle"><?php echo htmlentities($item['shop']['shop_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['table_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['table_id']); ?>">
<i class="am-icon-trash"></i> 删除
</a>
</div>
</td>
</tr>
<?php endforeach; else: ?>
<tr>
<td colspan="8" 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">
{{ 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="data[shop_id]" style="width:200px" required>
<option value="">请选择</option>
{{ if(category) }}
{{ each category }}
<option value="{{ $value.shop_id }}">{{ $value.shop_name }}</option>
{{ /each}}
{{ /if }}
</select>
</div>
</div>
{{ /if }}
<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[table_name]" value="" placeholder="请输入餐桌/包间名称" 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" min="1" class="tpl-form-input" name="data[row_no]" required>
<small>顾客呼叫时使用最小值为1</small>
</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">
{{ 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="data[shop_id]" style="width:200px" required>
<option value="">请选择</option>
{{ if(category) }}
{{ each category }}
<option value="{{ $value.shop_id }}" {{ $value.shop_id == model.shop_id ? 'selected' : '' }}>{{ $value.shop_name }}</option>
{{ /each}}
{{ /if }}
</select>
</div>
</div>
{{ /if }}
<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[table_name]" value="{{ model.table_name }}" placeholder="请输入餐桌/包间名称" 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" min="1" class="tpl-form-input" name="data[row_no]" value="{{ model.row_no }}" required>
<small>顾客呼叫时使用最小值为1</small>
</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 id="tpl-qrcode" type="text/template">
<div class="am-padding-xs am-padding-top-sm">
<div class="user-qrcode">
{{ if qrcode.h5 }}
<img src="{{ qrcode.h5}}">
{{ else / }}
<div class="online">等待上线</div>
{{ /if }}
<div class="text">H5端</div>
</div>
<div class="user-qrcode">
{{ if qrcode.weixin }}
<img src="{{ qrcode.weixin}}">
{{ else / }}
<div class="online">等待上线</div>
{{ /if }}
<div class="text">微信小程序</div>
</div>
<div class="user-qrcode">
{{ if qrcode.alipay }}
<img src="{{ qrcode.alipay}}">
{{ else / }}
<div class="online">等待上线</div>
{{ /if }}
<div class="text">支付宝小程序</div>
</div>
<div class="user-qrcode">
{{ if qrcode.qrcode }}
<img src="{{ qrcode.qrcode}}">
{{ else / }}
<div class="online">等待上线</div>
{{ /if }}
<div class="text">小程序聚合码</div>
</div>
</div>
</script>
<script>
$(function () {
$('.hema-qrcode').click(function () {
let data = $(this).data();
let list = <?= json_encode($list)?>;
$.showAction({
title: '餐桌码',
area: '990px',
content: template('tpl-qrcode', {qrcode:list[data.index].qrcode}),
uCheck: true,
btn: ['取消'],
success: function ($content) {
},
btn2: function ($content) {
return true;
}
});
});
//添加
$('.hema-add').on('click', function () {
let model = {
category:<?= json_encode($category)?>,
user:<?= json_encode($user)?>
};
$.showAction({
title: '添加',
area: '750px',
content: template('tpl-add', model),
uCheck: true,
success: function ($content) {
$('#my-form').formPost({
url: "<?php echo url('food.shop.table/add'); ?>"
});
},
btn2: function ($content) {
return true;
}
});
});
//编辑
$('.hema-edit').on('click', function () {
var data = $(this).data();
$.get("<?php echo url('food.shop.table/edit'); ?>?id=" + data.id, function (result) {
if(result.code == 0){
$.show_error(result.msg);
return false;
}
let model = {
category:<?= json_encode($category)?>,
user:<?= json_encode($user)?>,
model:result.data.model
};
$.showAction({
title: '编辑',
area: '750px',
content: template('tpl-edit', model),
uCheck: true,
success: function ($content) {
$('#my-form').formPost({
url: "<?php echo url('food.shop.table/edit'); ?>?id=" + data.id
});
},
btn2: function ($content) {
return true;
}
});
});
});
// 删除元素
var url = "<?php echo url('food.shop.table/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>

File diff suppressed because one or more lines are too long

View File

@ -1,253 +0,0 @@
<?php /*a:2:{s:74:"/www/wwwroot/app.cxhxy.dev.1nww.com/app/store/view/food/setting/trade.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" enctype="multipart/form-data" method="post">
<div class="widget-head am-cf">
<div class="widget-title am-fl">交易设置</div>
</div>
<div class="widget-body">
<fieldset>
<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 am-input-group">
<div class="am-u-sm-2">
<input type="number" min="1" class="am-form-field" name="data[order][time]"
value="<?php echo htmlentities($model['order']['time']); ?>" required>
</div>
<label class="am-u-sm-5 am-form-label am-text-left">分钟执行一次</label>
<div class="help-block am-u-sm-12">
<small>最小设置1。如该设置10后下列参数即使设置1最长也要等待10分钟才能执行刷新一次</small>
</div>
</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 am-input-group">
<div class="am-u-sm-2">
<input type="number" class="am-form-field" name="data[order][close_time]"
value="<?php echo htmlentities($model['order']['close_time']); ?>" required>
</div>
<label class="am-u-sm-5 am-form-label am-text-left">分钟后自动关闭</label>
<div class="help-block am-u-sm-12">
<small>设置0不自动操作</small>
</div>
</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 am-input-group">
<div class="am-u-sm-2">
<input type="number" class="am-form-field" name="data[order][delivery_time]"
value="<?php echo htmlentities($model['order']['delivery_time']); ?>" required>
</div>
<label class="am-u-sm-5 am-form-label am-text-left">分钟后自动配送</label>
<div class="help-block am-u-sm-12">
<small>设置0不自动操作</small>
</div>
</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 am-input-group">
<div class="am-u-sm-2">
<input type="number" class="am-form-field" name="data[order][receive_time]"
value="<?php echo htmlentities($model['order']['receive_time']); ?>" required>
</div>
<label class="am-u-sm-5 am-form-label am-text-left">分钟后自动确认收货</label>
<div class="help-block am-u-sm-12">
<small>后付费无效设置0不自动操作</small>
</div>
</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 am-input-group">
<div class="am-u-sm-2">
<input type="number" class="am-form-field" name="data[order][cmt_time]"
value="<?php echo htmlentities($model['order']['cmt_time']); ?>" required>
</div>
<label class="am-u-sm-5 am-form-label am-text-left">分钟后自动评价</label>
<div class="help-block am-u-sm-12">
<small>设置0不自动操作</small>
</div>
</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 am-input-group">
<div class="am-u-sm-2">
<input type="number" class="am-form-field" name="data[order][refund_time]"
value="<?php echo htmlentities($model['order']['refund_time']); ?>" required>
</div>
<label class="am-u-sm-5 am-form-label am-text-left">分钟内自动退款</label>
<div class="help-block am-u-sm-12">
<small>设置0不自动操作</small>
</div>
</div>
</div>
<div class="am-form-group">
<div class="am-u-sm-9 am-u-sm-push-3 am-margin-top-lg">
<button type="submit" class="j-submit am-btn am-btn-secondary">提交
</button>
</div>
</div>
</fieldset>
</div>
</form>
</div>
</div>
</div>
</div>
<script>
$(function () {
$('#my-form').formPost();
});
</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

@ -1,416 +0,0 @@
<?php /*a:4:{s:77:"/www/wwwroot/app.cxhxy.dev.1nww.com/app/store/view/food/shop/clerk/index.html";i:1700553054;s:67:"/www/wwwroot/app.cxhxy.dev.1nww.com/app/store/view/layout/food.html";i:1700553054;s:75:"/www/wwwroot/app.cxhxy.dev.1nww.com/app/store/view/food/shop/clerk/add.html";i:1700553054;s:76:"/www/wwwroot/app.cxhxy.dev.1nww.com/app/store/view/food/shop/clerk/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 a m-cf">店员列表</div>
</div>
<div class="widget-body am-fr">
<div class="tips am-margin-bottom-sm am-u-sm-12">
<div class="pre-warning">
<p> 注:店长可以登录<a href="/store/foodclerk.passport/login" target="_blank">门店管理端</a>,店员账号密码为手机号,如修改店长手机号则密码初始为新手机号</p>
</div>
</div>
<!-- 工具栏 -->
<div class="page_toolbar am-margin-bottom am-cf">
<form class="toolbar-form" action="<?php echo url('food.shop.clerk/index'); ?>">
<div class="am-u-sm-12 am-u-md-3">
<div class="am-form-group">
<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 class="am-u-sm-12 am-u-md-9">
<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="am-scrollable-horizontal 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>
<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['shop_clerk_id']); ?></td>
<td class="am-text-middle">
<p class="item-title"><?php echo htmlentities($item['shop']['shop_name']); ?></p>
</td>
<td class="am-text-middle"><?php echo htmlentities($item['real_name']); ?></td>
<td class="am-text-middle"><?php echo htmlentities($item['phone']); ?></td>
<td class="am-text-middle">
<span class="am-badge x-cur-p <?php echo $item['status']['value']==20 ? ' am-badge-warning' : ' am-badge-success'; ?>">
<?php echo htmlentities($item['status']['text']); ?>
</span>
</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['shop_clerk_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['shop_clerk_id']); ?>">
<i class="am-icon-trash"></i> 删除
</a>
</div>
</td>
</tr>
<?php endforeach; else: ?>
<tr>
<td colspan="7" 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-add" type="text/template">
<div class="am-padding-xs am-padding-top-sm">
{{ 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="data[shop_id]" style="width:200px" required>
<option value="">请选择</option>
{{ if(category) }}
{{ each category }}
<option value="{{ $value.shop_id }}">{{ $value.shop_name }}</option>
{{ /each}}
{{ /if }}
</select>
</div>
</div>
{{ /if }}
<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[real_name]" placeholder="请输入店员姓名" 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" class="tpl-form-input" name="data[phone]" placeholder="请输入手机号" 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">
<label class="am-radio-inline">
<input type="radio" name="data[status]" value="10" data-am-ucheck checked>
店员
</label>
<label class="am-radio-inline">
<input type="radio" name="data[status]" value="20" data-am-ucheck>
店长
</label>
<label class="am-radio-inline">
<input type="radio" name="data[status]" value="30" data-am-ucheck>
配送
</label>
</div>
</div>
</div>
</script>
<!-- 编辑 -->
<script id="tpl-edit" type="text/template">
<div class="am-padding-xs am-padding-top-sm">
{{ 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="data[shop_id]" style="width:200px" required>
<option value="">请选择</option>
{{ if(category) }}
{{ each category }}
<option value="{{ $value.shop_id }}" {{ $value.shop_id == model.shop_id ? 'selected' : '' }}>{{ $value.shop_name }}</option>
{{ /each}}
{{ /if }}
</select>
</div>
</div>
{{ /if }}
<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[real_name]" value="{{ model.real_name }}" placeholder="请输入店员姓名" 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" class="tpl-form-input" name="data[phone]" value="{{ model.phone }}" placeholder="请输入手机号" 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">
<label class="am-radio-inline">
<input type="radio" name="data[status]" value="10" data-am-ucheck {{ model.status.value == 10 ? 'checked' : '' }}>
店员
</label>
<label class="am-radio-inline">
<input type="radio" name="data[status]" value="20" data-am-ucheck {{ model.status.value == 20 ? 'checked' : '' }}>
店长
</label>
<label class="am-radio-inline">
<input type="radio" name="data[status]" value="30" data-am-ucheck {{ model.status.value == 30 ? 'checked' : '' }}>
配送
</label>
</div>
</div>
</div>
</script>
<script>
$(function () {
//添加
$('.hema-add').on('click', function () {
let model = {
category:<?= json_encode($category)?>,
user:<?= json_encode($user)?>
};
$.showAction({
title: '添加',
area: '750px',
content: template('tpl-add', model),
uCheck: true,
success: function ($content) {
$('#my-form').formPost({
url: "<?php echo url('food.shop.clerk/add'); ?>"
});
},
btn2: function ($content) {
return true;
}
});
});
//编辑
$('.hema-edit').on('click', function () {
var data = $(this).data();
$.get("<?php echo url('food.shop.clerk/edit'); ?>?id=" + data.id, function (result) {
if(result.code == 0){
$.show_error(result.msg);
return false;
}
let model = {
category:<?= json_encode($category)?>,
user:<?= json_encode($user)?>,
model:result.data.model
};
$.showAction({
title: '编辑',
area: '750px',
content: template('tpl-edit', model),
uCheck: true,
success: function ($content) {
$('#my-form').formPost({
url: "<?php echo url('food.shop.clerk/edit'); ?>?id=" + data.id
});
},
btn2: function ($content) {
return true;
}
});
});
});
// 删除元素
var url = "<?php echo url('food.shop.clerk/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

@ -1,147 +0,0 @@
<?php /*a:2:{s:77:"/www/wwwroot/app.cxhxy.dev.1nww.com/app/store/view/food/setting/wxapptpl.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" enctype="multipart/form-data" method="post"> <div class="widget-head am-cf"> <div class="widget-title am-fl">微信小程序订阅消息设置</div> </div> <div class="tips am-margin-bottom-sm am-u-sm-12"> <div class="pre-warning">小程序添加“商业服务-软件/建站/技术开发”服务类目后,直接点击下列按钮同步即可</div> </div> <div class="widget-body"> <fieldset> <div class="am-form-group"> <label class="am-u-sm-3 am-u-lg-2 am-form-label">商家接单通知 </label> <div class="am-u-sm-4 am-u-end"> <input type="text" class="tpl-form-input" value="<?php echo htmlentities($model['receive']); ?>" disabled> <input type="hidden" name="data['receive']"> </div> </div> <div class="am-form-group"> <label class="am-u-sm-3 am-u-lg-2 am-form-label">骑手接单通知 </label> <div class="am-u-sm-4 am-u-end"> <input type="text" class="tpl-form-input" value="<?php echo htmlentities($model['horseman']); ?>" disabled> <input type="hidden" name="data['horseman']"> </div> </div> <div class="am-form-group"> <label class="am-u-sm-3 am-u-lg-2 am-form-label">订单配送通知 </label> <div class="am-u-sm-4 am-u-end"> <input type="text" class="tpl-form-input" value="<?php echo htmlentities($model['delivery']); ?>" disabled> <input type="hidden" name="data['delivery']"> </div> </div> <div class="am-form-group"> <label class="am-u-sm-3 am-u-lg-2 am-form-label">取货提醒 </label> <div class="am-u-sm-4 am-u-end"> <input type="text" class="tpl-form-input" value="<?php echo htmlentities($model['take']); ?>" disabled> <input type="hidden" name="data['take']"> </div> </div> <div class="am-form-group"> <label class="am-u-sm-3 am-u-lg-2 am-form-label">退款状态通知 </label> <div class="am-u-sm-4 am-u-end"> <input type="text" class="tpl-form-input" value="<?php echo htmlentities($model['refund']); ?>" disabled> <input type="hidden" name="data['refund']"> </div> </div> <!-- 事件功能 --> <div class="am-modal am-modal-loading am-modal-no-btn" tabindex="-1" id="my-modal-loading"></div> <div class="am-form-group"> <div class="am-u-sm-9 am-u-sm-push-3 am-margin-top-lg"> <button type="submit" class="j-submit am-btn am-btn-secondary">一键同步 </button> </div> </div> </fieldset> </div> </form> </div> </div> </div> </div> <script> $(function () { $('#my-form').formPost(); }); </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

@ -1,349 +0,0 @@
<?php /*a:3:{s:71:"/www/wwwroot/app.cxhxy.dev.1nww.com/app/store/view/food/shop/index.html";i:1700553054;s:67:"/www/wwwroot/app.cxhxy.dev.1nww.com/app/store/view/layout/food.html";i:1700553054;s:72:"/www/wwwroot/app.cxhxy.dev.1nww.com/app/store/view/food/shop/qrcode.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">
<!-- 工具栏 -->
<?php if($user['applet']['shop_mode']['value']==20): ?>
<div class="page_toolbar am-margin-bottom-xs am-cf">
<div class="am-u-sm-12 am-u-md-3">
<div class="am-form-group">
<div class="am-btn-group am-btn-group-sm">
<a class="am-btn am-btn-primary am-radius" href="<?php echo url('food.shop/add'); ?>">
<span class="am-icon-plus"></span> 新增
</a>
</div>
</div>
</div>
</div>
<?php endif; ?>
<div class="am-scrollable-horizontal am-u-sm-12">
<table width="100%" class="am-table am-table-hover tpl-table-black">
<thead>
<tr>
<th>门店ID</th>
<th>门店LOGO</th>
<th>门店名称</th>
<th>营业时间</th>
<th>联系人</th>
<th>联系电话</th>
<th>门店码</th>
<th>买单码</th>
<th>WIFI码</th>
<th>门店状态</th>
<th>创建时间</th>
<th>操作</th>
</tr>
</thead>
<tbody>
<?php if($list): foreach($list as $index => $item): ?>
<tr>
<td class="am-text-middle"><?php echo htmlentities($item['shop_id']); ?></td>
<td class="am-text-middle">
<img src="<?php echo htmlentities((isset($item['logo']) && ($item['logo'] !== '')?$item['logo']:'/addons/food/img/no_pic.jpg')); ?>" width="50" height="50" alt="门店图片">
</td>
<td class="am-text-middle">
<p class="item-title"><?php echo htmlentities($item['shop_name']); ?></p>
</td>
<td class="am-text-middle"><?php echo htmlentities($item['shop_hours']); ?></td>
<td class="am-text-middle"><?php echo htmlentities($item['linkman']); ?></td>
<td class="am-text-middle"><?php echo htmlentities($item['phone']); ?></td>
<td class="am-text-middle">
<a class="hema-qrcode" data-index="<?php echo htmlentities($index); ?>" href="javascript:;">
<i class="iconfont iconerweima" style="font-size:25px;color:#2979ff;"></i>
</a>
</td>
<td class="am-text-middle">
<a class="hema-paybill" data-index="<?php echo htmlentities($index); ?>" href="javascript:;">
<i class="iconfont iconerweima" style="font-size:25px;color:#2979ff;"></i>
</a>
</td>
<td class="am-text-middle">
<a class="hema-wifi" data-index="<?php echo htmlentities($index); ?>" href="javascript:;">
<i class="iconfont iconerweima" style="font-size:25px;color:#2979ff;"></i>
</a>
</td>
<td class="am-text-middle">
<span class="hema-status am-badge x-cur-p <?php echo !empty($item['status']['value']) ? ' am-badge-success' : ' am-badge-warning'; ?>"
data-id="<?php echo htmlentities($item['shop_id']); ?>"
data-status="<?php echo htmlentities($item['status']['status']); ?>">
<?php echo htmlentities($item['status']['text']); ?>
</span>
</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="<?php echo url('food.shop/edit',['id' => $item['shop_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['shop_id']); ?>">
<i class="am-icon-trash"></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-qrcode" type="text/template">
<div class="am-padding-xs am-padding-top-sm">
<div class="user-qrcode">
{{ if qrcode.h5 }}
<img src="{{ qrcode.h5}}">
{{ else / }}
<div class="online">等待上线</div>
{{ /if }}
<div class="text">H5端</div>
</div>
<div class="user-qrcode">
{{ if qrcode.weixin }}
<img src="{{ qrcode.weixin}}">
{{ else / }}
<div class="online">等待上线</div>
{{ /if }}
<div class="text">微信小程序</div>
</div>
<div class="user-qrcode">
{{ if qrcode.alipay }}
<img src="{{ qrcode.alipay}}">
{{ else / }}
<div class="online">等待上线</div>
{{ /if }}
<div class="text">支付宝小程序</div>
</div>
<div class="user-qrcode">
{{ if qrcode.qrcode }}
<img src="{{ qrcode.qrcode}}">
{{ else / }}
<div class="online">等待上线</div>
{{ /if }}
<div class="text">小程序聚合码</div>
</div>
</div>
</script>
<script>
$(function () {
let list = <?= json_encode($list)?>;
$('.hema-qrcode').click(function () {
let data = $(this).data();
$.showAction({
title: '门店码',
area: '990px',
content: template('tpl-qrcode', {qrcode:list.data[data.index].qrcode}),
uCheck: true,
btn: ['取消'],
success: function ($content) {
},
btn2: function ($content) {
return true;
}
});
});
$('.hema-paybill').click(function () {
let data = $(this).data();
$.showAction({
title: '买单码',
area: '990px',
content: template('tpl-qrcode', {qrcode:list.data[data.index].paybill}),
uCheck: true,
btn: ['取消'],
success: function ($content) {
},
btn2: function ($content) {
return true;
}
});
});
$('.hema-wifi').click(function () {
let data = $(this).data();
$.showAction({
title: 'WIFI码',
area: '990px',
content: template('tpl-qrcode', {qrcode:list.data[data.index].wifi}),
uCheck: true,
btn: ['取消'],
success: function ($content) {
},
btn2: function ($content) {
return true;
}
});
});
// 切换状态
$('.hema-status').click(function () {
var data = $(this).data();
var msg = '确定要'+(parseInt(data.status) === 1 ? '暂停营业' : '开启营业')+'吗?';
$('.hema-status').del('id', "<?php echo url('food.shop/status'); ?>",msg);
});
$('.hema-del').del('id', "<?php echo url('food.shop/delete'); ?>");// 删除元素
});
</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

@ -1,245 +0,0 @@
<?php /*a:2:{s:78:"/www/wwwroot/app.cxhxy.dev.1nww.com/app/store/view/food/setting/wechattpl.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" enctype="multipart/form-data" method="post">
<div class="widget-head am-cf">
<div class="widget-title am-fl">微信公众号模板消息配置</div>
</div>
<div class="tips am-margin-bottom-sm am-u-sm-12">
<div class="pre-warning">
<p>模板消息类目设置为“餐饮/餐饮”和“IT科技/互联网|电子商务”,<a href="https://mp.weixin.qq.com/" target="_blank">去设置获取模板ID</a></p>
</div>
</div>
<div class="widget-body">
<fieldset>
<div class="am-form-group">
<label class="am-u-sm-3 am-u-lg-2 am-form-label">
商家接单通知 <span class="tpl-form-line-small-title">模板 ID</span>
</label>
<div class="am-u-sm-3 am-u-end">
<input type="text" class="tpl-form-input" name="data[receive]"
value="<?php echo htmlentities($model['receive']); ?>">
<small>模板编号OPENTM417875155</small>
</div>
</div>
<div class="am-form-group">
<label class="am-u-sm-3 am-u-lg-2 am-form-label">
骑手取货通知 <span class="tpl-form-line-small-title">模板 ID</span>
</label>
<div class="am-u-sm-3 am-u-end">
<input type="text" class="tpl-form-input" name="data[horseman]"
value="<?php echo htmlentities($model['horseman']); ?>">
<small>模板编号OPENTM414769250</small>
</div>
</div>
<div class="am-form-group">
<label class="am-u-sm-3 am-u-lg-2 am-form-label">
订单配送通知 <span class="tpl-form-line-small-title">模板 ID</span>
</label>
<div class="am-u-sm-3 am-u-end">
<input type="text" class="tpl-form-input" name="data[delivery]"
value="<?php echo htmlentities($model['delivery']); ?>">
<small>模板编号OPENTM415437052</small>
</div>
</div>
<div class="am-form-group">
<label class="am-u-sm-3 am-u-lg-2 am-form-label">
取餐提醒 <span class="tpl-form-line-small-title">模板 ID</span>
</label>
<div class="am-u-sm-3 am-u-end">
<input type="text" class="tpl-form-input" name="data[take]"
value="<?php echo htmlentities($model['take']); ?>">
<small>模板编号OPENTM416620550</small>
</div>
</div>
<div class="am-form-group">
<label class="am-u-sm-3 am-u-lg-2 am-form-label">
订单完成通知 <span class="tpl-form-line-small-title">模板 ID</span>
</label>
<div class="am-u-sm-3 am-u-end">
<input type="text" class="tpl-form-input" name="data[finish]"
value="<?php echo htmlentities($model['finish']); ?>">
<small>模板编号OPENTM414769357</small>
</div>
</div>
<div class="am-form-group">
<label class="am-u-sm-3 am-u-lg-2 am-form-label">
退款状态通知 <span class="tpl-form-line-small-title">模板 ID</span>
</label>
<div class="am-u-sm-3 am-u-end">
<input type="text" class="tpl-form-input" name="data[refund]"
value="<?php echo htmlentities($model['refund']); ?>">
<small>模板编号OPENTM406071616</small>
</div>
</div>
<!-- 事件功能 -->
<div class="am-modal am-modal-loading am-modal-no-btn" tabindex="-1" id="my-modal-loading"></div>
<div class="am-form-group">
<div class="am-u-sm-9 am-u-sm-push-3 am-margin-top-lg">
<button type="submit" class="j-submit am-btn am-btn-secondary">提交
</button>
</div>
</div>
</fieldset>
</div>
</form>
</div>
</div>
</div>
</div>
<script>
$(function () {
$('#my-form').formPost();
});
</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

@ -1,311 +0,0 @@
<?php /*a:4:{s:78:"/www/wwwroot/app.cxhxy.dev.1nww.com/app/store/view/food/applet/help/index.html";i:1700553054;s:67:"/www/wwwroot/app.cxhxy.dev.1nww.com/app/store/view/layout/food.html";i:1700553054;s:76:"/www/wwwroot/app.cxhxy.dev.1nww.com/app/store/view/food/applet/help/add.html";i:1700553054;s:77:"/www/wwwroot/app.cxhxy.dev.1nww.com/app/store/view/food/applet/help/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">帮助中心</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>标题</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">
<p class="item-title"><?php echo htmlentities($item['title']); ?></p>
</td>
<td class="am-text-middle">
<p class="item-title" style="max-width: 400px;"><?php echo htmlentities($item['content']); ?></p>
</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['help_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['help_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[title]" value="" placeholder="请输入标题" 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">
<textarea class="" rows="6" placeholder="请输入帮助内容" name="data[content]" required></textarea>
</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>
</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[title]" value="{{ model.title }}" placeholder="请输入标题" 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">
<textarea class="" rows="6" placeholder="请输入帮助内容" name="data[content]" required>{{ model.content }}</textarea>
</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>
</div>
</div>
</div>
</script>
<script>
$(function () {
//添加
$('.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.applet.help/add'); ?>"
});
},
btn2: function ($content) {
return true;
}
});
});
//编辑
$('.hema-edit').on('click', function () {
var data = $(this).data();
$.get("<?php echo url('food.applet.help/edit'); ?>?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.applet.help/edit'); ?>?id=" + data.id
});
},
btn2: function ($content) {
return true;
}
});
});
});
// 删除元素
var url = "<?php echo url('food.applet.help/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

@ -1,198 +0,0 @@
<?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>

View File

@ -1,380 +0,0 @@
<?php /*a:2:{s:74:"/www/wwwroot/app.cxhxy.dev.1nww.com/app/store/view/food/setting/other.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" method="post">
<fieldset>
<div class="widget-head am-cf">
<div class="widget-title am-fl">后付费设置</div>
</div>
<div class="widget-body">
<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">
<label class="am-radio-inline">
<input type="radio" name="data[postpaid][10]" value="0" data-am-ucheck
<?php echo $model['postpaid']['10']==0 ? 'checked' : ''; ?> >
关闭
</label>
<label class="am-radio-inline">
<input type="radio" name="data[postpaid][10]" value="1" data-am-ucheck
<?php echo $model['postpaid']['10']==1 ? 'checked' : ''; ?> >
开启
</label>
<div class="help-block">
<small>是否可以餐后付款</small>
</div>
</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">
<label class="am-radio-inline">
<input type="radio" name="data[postpaid][20]" value="0" data-am-ucheck
<?php echo $model['postpaid']['20']==0 ? 'checked' : ''; ?> >
关闭
</label>
<label class="am-radio-inline">
<input type="radio" name="data[postpaid][20]" value="1" data-am-ucheck
<?php echo $model['postpaid']['20']==1 ? 'checked' : ''; ?> >
开启
</label>
<div class="help-block">
<small>是否可以骑手代收款</small>
</div>
</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">
<label class="am-radio-inline">
<input type="radio" name="data[postpaid][30]" value="0" data-am-ucheck
<?php echo $model['postpaid']['30']==0 ? 'checked' : ''; ?> >
关闭
</label>
<label class="am-radio-inline">
<input type="radio" name="data[postpaid][30]" value="1" data-am-ucheck
<?php echo $model['postpaid']['30']==1 ? 'checked' : ''; ?> >
开启
</label>
<div class="help-block">
<small>是否可以取餐时付款</small>
</div>
</div>
</div>
</div>
<div class="widget-head am-cf">
<div class="widget-title am-fl">商品设置</div>
</div>
<div class="widget-body">
<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">
<label class="am-radio-inline">
<input type="radio" name="data[is_stock]" value="0" data-am-ucheck
<?php echo $model['is_stock']=='0' ? 'checked' : ''; ?> >
关闭
</label>
<label class="am-radio-inline">
<input type="radio" name="data[is_stock]" value="1" data-am-ucheck
<?php echo $model['is_stock']=='1' ? 'checked' : ''; ?> >
开启
</label>
<div class="help-block">
<small>开启后对库存数量进行检测,库存为零时无法销售</small>
</div>
</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">
<label class="am-radio-inline">
<input type="radio" name="data[goods][sell_out]" value="0" data-am-ucheck
<?php echo $model['goods']['sell_out']==0 ? 'checked' : ''; ?> >
关闭
</label>
<label class="am-radio-inline">
<input type="radio" name="data[goods][sell_out]" value="1" data-am-ucheck
<?php echo $model['goods']['sell_out']==1 ? 'checked' : ''; ?> >
开启
</label>
<div class="help-block">
<small>用户下单是否显示售罄商品。(库存开启有效)</small>
</div>
</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">
<label class="am-radio-inline">
<input type="radio" name="data[goods][delisting]" value="0" data-am-ucheck
<?php echo $model['goods']['delisting']==0 ? 'checked' : ''; ?> >
关闭
</label>
<label class="am-radio-inline">
<input type="radio" name="data[goods][delisting]" value="1" data-am-ucheck
<?php echo $model['goods']['delisting']==1 ? 'checked' : ''; ?> >
开启
</label>
<div class="help-block">
<small>用户下单是否显示下架商品。</small>
</div>
</div>
</div>
</div>
<div class="widget-head am-cf">
<div class="widget-title am-fl">其它设置</div>
</div>
<div class="widget-body">
<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">
<label class="am-radio-inline">
<input type="radio" name="data[open_shop]" value="0" data-am-ucheck
<?php echo $model['open_shop']=='0' ? 'checked' : ''; ?> >
关闭
</label>
<label class="am-radio-inline">
<input type="radio" name="data[open_shop]" value="1" data-am-ucheck
<?php echo $model['open_shop']=='1' ? 'checked' : ''; ?> >
开启
</label>
<div class="help-block">
<small>首次打开小程序点单页,是否弹出门店选择列表,关闭后默认选择最近的门店</small>
</div>
</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">
<label class="am-radio-inline">
<input type="radio" name="data[is_calling]" value="0" data-am-ucheck
<?php echo $model['is_calling']=='0' ? 'checked' : ''; ?> >
关闭
</label>
<label class="am-radio-inline">
<input type="radio" name="data[is_calling]" value="1" data-am-ucheck
<?php echo $model['is_calling']=='1' ? 'checked' : ''; ?> >
开启
</label>
<div class="help-block">
<small>是否开启叫号服务,需对接叫号器,堂食扫码有效</small>
</div>
</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">
<label class="am-radio-inline">
<input type="radio" name="data[bind_phone]" value="0" data-am-ucheck
<?php echo $model['bind_phone']=='0' ? 'checked' : ''; ?> >
关闭
</label>
<label class="am-radio-inline">
<input type="radio" name="data[bind_phone]" value="1" data-am-ucheck
<?php echo $model['bind_phone']=='1' ? 'checked' : ''; ?> >
开启
</label>
<div class="help-block">
<small>用户在小程序进行登录操作时是否强制绑定手机号</small>
</div>
</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">
<label class="am-radio-inline">
<input type="radio" name="data[balance_pay]" value="0" data-am-ucheck
<?php echo $model['balance_pay']=='0' ? 'checked' : ''; ?> >
关闭
</label>
<label class="am-radio-inline">
<input type="radio" name="data[balance_pay]" value="1" data-am-ucheck
<?php echo $model['balance_pay']=='1' ? 'checked' : ''; ?> >
开启
</label>
<div class="help-block">
<small>扫买单码是否支持余额付款</small>
</div>
</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">
<label class="am-radio-inline">
<input type="radio" name="data[order_export]" value="col" data-am-ucheck
<?php echo $model['order_export']=='col' ? 'checked' : ''; ?> >
竖排显示
</label>
<label class="am-radio-inline">
<input type="radio" name="data[order_export]" value="row" data-am-ucheck
<?php echo $model['order_export']=='row' ? 'checked' : ''; ?> >
横排显示
</label>
</div>
</div>
</div>
<div class="am-form-group">
<div class="am-u-sm-9 am-u-sm-push-2 am-margin-top-lg">
<button type="submit" class="j-submit am-btn am-btn-secondary">提交
</button>
</div>
</div>
</fieldset>
</form>
</div>
</div>
</div>
</div>
<script>
$(function () {
$('#my-form').formPost();
});
</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

View File

@ -1,272 +0,0 @@
<?php /*a:2:{s:78:"/www/wwwroot/app.cxhxy.dev.1nww.com/app/store/view/food/applet/page/links.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-body">
<div class="widget-head am-cf">
<div class="widget-title am-fl">页面链接</div>
</div>
<div class="link-list">
<ul class="">
<li class="link-item">
<div class="row page-name">应用首页</div>
<div class="row am-cf">
<div class="am-fl">地址:</div>
<div class="am-fl">
<span class="x-color-green">index/index</span>
</div>
</div>
</li>
<li class="link-item">
<div class="row page-name">订单列表</div>
<div class="row am-cf">
<div class="am-fl">地址:</div>
<div class="am-fl">
<span class="x-color-green">order/index</span>
</div>
</div>
</li>
<li class="link-item">
<div class="row page-name">个人中心</div>
<div class="row am-cf">
<div class="am-fl">地址:</div>
<div class="am-fl">
<span class="x-color-green">user/index</span>
</div>
</div>
</li>
<li class="link-item">
<div class="row page-name">商品分类</div>
<div class="row am-cf">
<div class="am-fl">地址:</div>
<div class="am-fl">
<span class="x-color-green">shop/index</span>
</div>
</div>
</li>
<li class="link-item">
<div class="row page-name">商品详情</div>
<div class="row am-cf">
<div class="am-fl">地址:</div>
<div class="am-fl">
<span class="x-color-green">goods/detail</span>
</div>
</div>
<div class="row am-cf">
<div class="am-fl">参数:</div>
<div class="am-fl">
<p class="param">
<span class="x-color-green">goods_id</span>
<span>商品ID</span>
<span class="x-color-red"> --必填</span>
</p>
</div>
</div>
<div class="row am-cf">
<div class="am-fl">例如:</div>
<div class="am-fl">
<span class="x-color-c-gray-5f">goods/detail?goods_id=10001</span>
</div>
</div>
</li>
<li class="link-item">
<div class="row page-name">门店列表</div>
<div class="row am-cf">
<div class="am-fl">地址:</div>
<div class="am-fl">
<span class="x-color-green">shop/list</span>
</div>
</div>
</li>
<li class="link-item">
<div class="row page-name">门店详情</div>
<div class="row am-cf">
<div class="am-fl">地址:</div>
<div class="am-fl">
<span class="x-color-green">shop/detail</span>
</div>
</div>
<div class="row am-cf">
<div class="am-fl">参数:</div>
<div class="am-fl">
<p class="param">
<span class="x-color-green">shop_id</span>
<span>门店ID</span>
<span class="x-color-red"> --必填</span>
</p>
</div>
</div>
<div class="row am-cf">
<div class="am-fl">例如:</div>
<div class="am-fl">
<span class="x-color-c-gray-5f">shop/detail?goods_id=10001</span>
</div>
</div>
</li>
</ul>
</div>
</div>
</div>
</div>
</div>
</div>
<script>
$(function () {
/**
* 表单验证提交
* @type {*}
*/
$('#my-form').superForm();
});
</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

@ -1,284 +0,0 @@
<?php /*a:1:{s:74:"/www/wwwroot/app.cxhxy.dev.1nww.com/app/store/view/food/shop/getpoint.html";i:1700553054;}*/ ?>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>腾讯地图开放API - 轻快小巧,简单易用!</title>
<link rel="stylesheet" href="https://lbs.qq.com/tool/getpoint/common.css">
<script src="https://lbs.qq.com/tool/getpoint/jquery-1.9.1.min.js"></script>
<link rel="stylesheet" href="https://lbs.qq.com/tool/getpoint/jquery-ui.min.css">
<script src="https://lbs.qq.com/tool/getpoint/jquery-ui-1.10.4.min.js"></script>
<script charset="utf-8" src="https://map.qq.com/api/js?v=2.exp&key=<?php echo htmlentities($wxmap_key); ?>"></script>
<style type="text/css">
* {
margin: 0px;
padding: 0px;
}
#main {
height: 553px;
width: 700px;
border: 1px solid #5688CB;
border-top: 0px;
}
#tooles {
height: 23px;
background: #5688CB;
position: relative;
z-index: 100;
color: white;
}
#cur_city, #no_value {
/*height: 20px;*/
position: absolute;
top: 3px;
left: 10px;
}
#level {
margin-left: 20px;
}
.logo_img {
width: 172px;
height: 23px;
}
.poi {
width: 570px;
height: 41;
padding-top: 12px;
float: left;
position: relative;
}
.poi_note {
width: 63px;
line-height: 26px;
float: left;
}
#poi_cur {
width: 160px;
height: 22px;
margin-right: 10px;
/*margin-top: 3px;*/
line-height: 26px;
float: left;
text-align: center;
}
#addr_cur {
width: 260px;
height: 22px;
margin-right: 5px;
/*margin-top: 3px;*/
line-height: 26px;
float: left;
text-align: center;
}
.btn_copy {
width: 49px;
height: 24px;
/*background: url(../img/btn_cpoy.png) 0px 0px;*/
float: left;
}
.already {
width: 52px;
line-height: 26px;
padding-left: 5px;
float: left;
color: red;
display: none;
}
.info_list {
margin-bottom: 5px;
cleat: both;
cursor: pointer;
}
#txt_pannel {
height: 500px;
}
#cur_city {
margin-right: 5px;
}
#bside_rgiht {
width: 700px;
height: 530px;
font-size: 12px;
}
#container {
width: 690px;
height: 520px;
border: 5px solid #fff;
}
#no_value {
color: red;
position: relative;
width: 200px;
}
</style>
</head>
<body>
<div style="position:relative;">
<div style="height:53px;">
<div class="poi">
<div class="poi_note">当前坐标:</div>
<input type="text" id="poi_cur"/>
<div class="poi_note">当前地址:</div>
<input type="text" id="addr_cur"/>
</div>
</div>
<div id="main">
<div id="tooles">
<div id="cur_city">
<strong><?php echo !empty($location['ad_info']['district']) ? htmlentities($location['ad_info']['district']) : htmlentities($location['ad_info']['city']); ?></strong>
<span id="level">当前缩放等级15</span>
</div>
</div>
<div id="bside_rgiht">
<div id="container"></div>
</div>
</div>
</div>
<script type="text/javascript">
var container = document.getElementById("container");
var map = new qq.maps.Map(container, {
center: new qq.maps.LatLng(<?= $location['location']['lat']?>,<?= $location['location']['lng']?>),
zoom: 15
}),
label = new qq.maps.Label({
map: map,
offset: new qq.maps.Size(15, -12),
draggable: false,
clickable: false
}),
markerArray = [],
url, query_city,
cityservice = new qq.maps.CityService({
complete: function (result) {
map.setCenter(result.detail.latLng);
}
});
cityservice.searchLocalCity();
map.setOptions({
draggableCursor: "crosshair"
});
$(container).mouseenter(function () {
label.setMap(map);
});
$(container).mouseleave(function () {
label.setMap(null);
});
qq.maps.event.addListener(map, "mousemove", function (e) {
var latlng = e.latLng;
label.setPosition(latlng);
label.setContent(latlng.getLat().toFixed(6) + "," + latlng.getLng().toFixed(6));
});
var url3;
qq.maps.event.addListener(map, "click", function (e) {
// 设置坐标
var coordinate = e.latLng.getLat().toFixed(6) + "," + e.latLng.getLng().toFixed(6);
document.getElementById("poi_cur").value = coordinate;
parent.setCoordinate(coordinate);
url3 = encodeURI("https://apis.map.qq.com/ws/geocoder/v1/?location=" + e.latLng.getLat() + "," + e.latLng.getLng() + "&key=<?php echo htmlentities($wxmap_key); ?>&output=jsonp&&callback=?");
$.getJSON(url3, function (result) {
if (result.result != undefined) {
document.getElementById("addr_cur").value = result.result.address;
} else {
document.getElementById("addr_cur").value = "";
}
})
});
qq.maps.event.addListener(map, "zoom_changed", function () {
document.getElementById("level").innerHTML = "当前缩放等级:" + map.getZoom();
});
function setAnchor(marker, flag) {
var left = marker.index * 27;
if (flag == true) {
var anchor = new qq.maps.Point(10, 30),
origin = new qq.maps.Point(left, 0),
size = new qq.maps.Size(27, 33),
icon = new qq.maps.MarkerImage("./img/marker10.png", size, origin, anchor);
marker.setIcon(icon);
} else {
var anchor = new qq.maps.Point(10, 30),
origin = new qq.maps.Point(left, 35),
size = new qq.maps.Size(27, 33),
icon = new qq.maps.MarkerImage("./img/marker10.png", size, origin, anchor);
marker.setIcon(icon);
}
}
function setCurrent(arr, index, isMarker) {
if (isMarker) {
each(markerArray, function (n, ele) {
if (n == index) {
setAnchor(ele, false);
ele.setZIndex(10);
} else {
if (!ele.isClicked) {
setAnchor(ele, true);
ele.setZIndex(9);
}
}
});
} else {
each(markerArray, function (n, ele) {
if (n == index) {
ele.div.style.background = "#DBE4F2";
} else {
if (!ele.div.isClicked) {
ele.div.style.background = "#fff";
}
}
});
}
}
function setFlagClicked(arr, index) {
each(markerArray, function (n, ele) {
if (n == index) {
ele.isClicked = true;
ele.div.isClicked = true;
var str = '<div style="width:250px;">' + ele.div.children[1].innerHTML.toString() + '</div>';
var latLng = ele.getPosition();
// 设置坐标
var coordinate = latLng.getLat().toFixed(6) + "," + latLng.getLng().toFixed(6);
document.getElementById("poi_cur").value = coordinate;
parent.setCoordinate(coordinate);
} else {
ele.isClicked = false;
ele.div.isClicked = false;
}
});
}
function each(obj, fn) {
for (var n = 0, l = obj.length; n < l; n++) {
fn.call(obj[n], n, obj[n]);
}
}
</script>
</body>
</html>

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,297 +0,0 @@
<?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

@ -1,411 +0,0 @@
<?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>

View File

@ -1,214 +0,0 @@
<?php /*a:2:{s:73:"/www/wwwroot/app.cxhxy.dev.1nww.com/app/store/view/food/setting/pact.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" method="post">
<div class="widget-head am-cf">
<div class="widget-title am-fl">订桌设置</div>
</div>
<div class="widget-body">
<fieldset>
<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">
<label class="am-radio-inline">
<input type="radio" name="data[is_open]" value="0" data-am-ucheck
<?php echo $model['is_open']==0 ? 'checked' : ''; ?> required>
关闭
</label>
<label class="am-radio-inline">
<input type="radio" name="data[is_open]" value="1" data-am-ucheck
<?php echo $model['is_open']==1 ? 'checked' : ''; ?> required>
开启
</label>
</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">
<label class="am-radio-inline">
<input type="radio" name="data[is_print]" value="0" data-am-ucheck
<?php echo $model['is_print']==0 ? 'checked' : ''; ?> required>
关闭
</label>
<label class="am-radio-inline">
<input type="radio" name="data[is_print]" value="1" data-am-ucheck
<?php echo $model['is_print']==1 ? 'checked' : ''; ?> required>
开启
</label>
</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[range]"
value="<?php echo htmlentities($model['range']); ?>" required>
<small>单位天设置0只可当天设置5则5天内都可预约。</small>
</div>
</div>
<div class="am-form-group">
<div class="am-u-sm-9 am-u-sm-push-2 am-margin-top-lg">
<button type="submit" class="j-submit am-btn am-btn-secondary">提交
</button>
</div>
</div>
</fieldset>
</div>
</form>
</div>
</div>
</div>
</div>
<script>
$(function () {
$('#my-form').formPost();
});
</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

@ -1,618 +0,0 @@
<?php /*a:4:{s:70:"/www/wwwroot/app.cxhxy.dev.1nww.com/app/store/view/food/shop/edit.html";i:1700553054;s:67:"/www/wwwroot/app.cxhxy.dev.1nww.com/app/store/view/layout/food.html";i:1700553054;s:53:"../addons/upload/view/template/tpl_file_item_url.html";i:1700552721;s:48:"../addons/upload/view/template/file_library.html";i:1700552721;}*/ ?>
<!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' : ''; ?>">
<link rel="stylesheet" href="/assets/plugins/layui/css/layui.css?v=<?php echo htmlentities($version); ?>"/>
<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>
<form id="my-form" class="am-form tpl-form-line-form" method="post">
<div class="widget-body">
<fieldset>
<div class="j-tabs am-tabs" data-am-tabs="{noSwipe: 1}">
<ul class="am-tabs-nav am-nav am-nav-tabs">
<li class="am-active"><a href="#tab1">基本信息</a></li>
<li><a href="#tab2">门店WIFI</a></li>
<li><a href="#tab3">订单设置</a></li>
<li><a href="#tab4">其它设置</a></li>
</ul>
<div class="am-tabs-bd am-padding-xs hm-p-t-20">
<div class="am-tab-panel am-padding-0 am-active" id="tab1">
<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[shop_name]"
placeholder="请输入门店名称" value="<?php echo htmlentities($model['shop_name']); ?>" required>
</div>
</div>
<div class="am-form-group">
<label class="am-u-sm-3 am-u-lg-2 am-form-label"> 门店图标 </label>
<div class="am-u-sm-9 am-u-end">
<div class="am-form-file">
<div class="am-form-file">
<button type="button"
class="upload-file am-btn am-btn-secondary am-radius">
<i class="am-icon-cloud-upload"></i> 选择图片
</button>
<div class="uploader-list am-cf">
<div class="file-item">
<img src="<?php echo htmlentities((isset($model['logo']) && ($model['logo'] !== '')?$model['logo']:'/addons/food/img/no_pic.jpg')); ?>">
<input type="hidden" name="data[logo]" value="<?php echo htmlentities($model['logo']); ?>">
<i class="iconfont iconshanchu file-item-delete"></i>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="am-form-group am-padding-top">
<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[linkman]"
placeholder="请输入门店联系人" value="<?php echo htmlentities($model['linkman']); ?>" 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" class="tpl-form-input" name="data[phone]"
placeholder="请输入门店联系电话" value="<?php echo htmlentities($model['phone']); ?>" 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" id="shop_hours" class="tpl-form-input" name="data[shop_hours]"
placeholder="请选择营业时间" value="<?php echo htmlentities($model['shop_hours']); ?>" 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" class="tpl-form-input" name="data[address]"
placeholder="请输入详细地址" value="<?php echo htmlentities($model['address']); ?>" required>
<small>不用填写省、市、区/</small>
</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">
<div class="am-block">
<input type="text" style="background: none !important;" id="coordinate"
class="tpl-form-input" name="data[coordinate]" placeholder="请选择门店坐标"
value="<?php echo htmlentities($model['coordinate']); ?>" readonly="" required>
</div>
<div class="am-block am-padding-top-xs">
<iframe id="map" src="/store/food.shop/getpoint" width="915" height="610"></iframe>
</div>
</div>
</div>
</div>
<div class="am-tab-panel am-padding-0" id="tab2">
<div class="am-form-group">
<label class="am-u-sm-3 am-u-lg-2 am-form-label">WIFI名称</label>
<div class="am-u-sm-9 am-u-end">
<input type="text" class="tpl-form-input" name="data[ss_id]" value="<?php echo htmlentities($model['ss_id']); ?>">
</div>
</div>
<div class="am-form-group">
<label class="am-u-sm-3 am-u-lg-2 am-form-label">WIFI密码</label>
<div class="am-u-sm-9 am-u-end">
<input type="text" class="tpl-form-input" name="data[ss_key]" value="<?php echo htmlentities($model['ss_key']); ?>">
</div>
</div>
</div>
<div class="am-tab-panel am-padding-0" id="tab3">
<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">
<label class="am-checkbox-inline">
<input type="checkbox" name="data[food_mode][]" value="10"
<?php echo $model['food_mode']['value']['10']['status']==1 ? 'checked' : ''; ?> required>
堂食
</label>
<label class="am-checkbox-inline">
<input type="checkbox" name="data[food_mode][]" value="20"
<?php echo $model['food_mode']['value']['20']['status']==1 ? 'checked' : ''; ?> required>
外卖
</label>
<label class="am-checkbox-inline">
<input type="checkbox" name="data[food_mode][]" value="30"
<?php echo $model['food_mode']['value']['30']['status']==1 ? 'checked' : ''; ?> required>
自取
</label>
</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">
<label class="am-radio-inline">
<input type="radio" name="data[is_scan]" value="0" data-am-ucheck <?php echo $model['is_scan']==0 ? 'checked' : ''; ?>>
自动适配
</label>
<label class="am-radio-inline">
<input type="radio" name="data[is_scan]" value="1" data-am-ucheck <?php echo $model['is_scan']==1 ? 'checked' : ''; ?>>
强制扫码
</label>
<div class="help-block">
<small>自动适配:根据用户是否扫桌码确定是否为扫码下单或排号下单</small>
</div>
</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">
<label class="am-radio-inline">
<input type="radio" name="data[is_flavor]" value="0" data-am-ucheck <?php echo $model['is_flavor']==0 ? 'checked' : ''; ?>>
关闭
</label>
<label class="am-radio-inline">
<input type="radio" name="data[is_flavor]" value="1" data-am-ucheck <?php echo $model['is_flavor']==1 ? 'checked' : ''; ?>>
开启
</label>
</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">
<label class="am-radio-inline">
<input type="radio" name="data[is_people]" value="0" data-am-ucheck <?php echo $model['is_people']==0 ? 'checked' : ''; ?>>
关闭
</label>
<label class="am-radio-inline">
<input type="radio" name="data[is_people]" value="1" data-am-ucheck <?php echo $model['is_people']==1 ? 'checked' : ''; ?>>
开启
</label>
<div class="help-block">
<small>作用于堂食扫码点单</small>
</div>
</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" min="0" class="tpl-form-input" name="data[ware_price]"
value="<?php echo htmlentities($model['ware_price']); ?>">
<small>就餐人数开启有效单位元。按照每一人收取费用0=不收取</small>
</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">
<label class="am-radio-inline">
<input type="radio" name="data[is_order]" value="0" data-am-ucheck
<?php echo $model['is_order']['value']==0 ? 'checked' : ''; ?>>
关闭
</label>
<label class="am-radio-inline">
<input type="radio" name="data[is_order]" value="1" data-am-ucheck
<?php echo $model['is_order']['value']==1 ? 'checked' : ''; ?>>
开启
</label>
<div class="help-block">
<small>用户下单后是否自动接受订单</small>
</div>
</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">
<label class="am-radio-inline">
<input v-model="checked" type="radio" name="data[is_delivery]" value="0"
<?php echo $model['is_delivery']['value']==0 ? 'checked' : ''; ?> data-am-ucheck>
关闭
</label>
<label class="am-radio-inline">
<input v-model="checked" type="radio" name="data[is_delivery]" value="1"
<?php echo $model['is_delivery']['value']==1 ? 'checked' : ''; ?> data-am-ucheck>
开启
</label>
</div>
</div>
<div v-show="checked == 1" 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">
<label class="am-radio-inline">
<input type="radio" name="data[delivery]" value="self"
<?php echo $model['delivery']=='self' ? 'checked' : ''; ?> data-am-ucheck>
商家自配
</label>
<?php foreach($company as $item): ?>
<label class="am-radio-inline">
<input type="radio" name="data[delivery]" value="<?php echo htmlentities($item['name']); ?>"
<?php echo $model['delivery']==$item['name'] ? 'checked' : ''; ?> data-am-ucheck>
<?php echo htmlentities($item['title']); ?>
</label>
<?php endforeach; ?>
<div class="help-block">
<small>选择外卖配送第三方服务商,外卖订单有效</small>
</div>
</div>
</div>
<div class="am-form-group">
<label class="am-u-sm-3 am-u-lg-2 am-form-label">顺丰门店ID </label>
<div class="am-u-sm-9 am-u-end">
<input type="text" class="tpl-form-input" name="data[sf_shop_id]"
value="<?php echo htmlentities($model['sf_shop_id']); ?>">
<small>使用顺丰配送必须配置该项</small>
</div>
</div>
<div class="am-form-group">
<label class="am-u-sm-3 am-u-lg-2 am-form-label">达达门店ID </label>
<div class="am-u-sm-9 am-u-end">
<input type="text" class="tpl-form-input" name="data[dada_shop_id]"
value="<?php echo htmlentities($model['dada_shop_id']); ?>">
<small>使用达达配送必须配置该项</small>
</div>
</div>
<div class="am-form-group">
<label class="am-u-sm-3 am-u-lg-2 am-form-label">码科门店ID </label>
<div class="am-u-sm-9 am-u-end">
<input type="text" class="tpl-form-input" name="data[make_shop_id]"
value="<?php echo htmlentities($model['make_shop_id']); ?>">
<small>使用码科配送必须配置该项</small>
</div>
</div>
</div>
<div class="am-tab-panel am-padding-0" id="tab4">
<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">
<label class="am-radio-inline">
<input type="radio" name="data[status]" value="1" data-am-ucheck
<?php echo $model['status']['status']==1 ? 'checked' : ''; ?>>
营业中
</label>
<label class="am-radio-inline">
<input type="radio" name="data[status]" value="0" data-am-ucheck
<?php echo $model['status']['status']==0 ? 'checked' : ''; ?>>
歇业中
</label>
</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="<?php echo htmlentities($model['sort']); ?>" required>
<small>数字越小越靠前</small>
</div>
</div>
</div>
</div>
</div>
<div class="am-form-group">
<div class="am-u-sm-9 am-u-sm-push-3 am-margin-top-lg">
<button type="submit" class="j-submit am-btn am-btn-secondary">提交
</button>
</div>
</div>
</fieldset>
</div>
</form>
</div>
</div>
</div>
</div>
<!-- 图片文件列表模板 -->
<script id="tpl-file-item" type="text/template">
{{ each list }}
<div class="file-item">
<a href="{{ $value.url }}" title="点击查看大图" target="_blank">
<img src="{{ $value.url }}">
</a>
<input type="hidden" name="{{ name }}" value="{{ $value.url }}">
<i class="iconfont iconshanchu file-item-delete"></i>
</div>
{{ /each }}
</script>
<!-- 文件库弹窗 -->
<!-- 文件库模板 -->
<script id="tpl-file-library" type="text/template">
<div class="row">
<div class="file-group">
<ul class="nav-new">
<li class="ng-scope {{ is_default ? 'active' : '' }}" data-group-id="0">
<a class="group-name am-text-truncate" href="javascript:void(0);" title="全部">全部</a>
</li>
<li class="ng-scope" data-group-id="-1">
<a class="group-name am-text-truncate" href="javascript:void(0);" title="未分组">未分组</a>
</li>
{{ each group_list }}
<li class="ng-scope"
data-group-id="{{ $value.group_id }}" title="{{ $value.group_name }}">
<a class="group-edit" href="javascript:void(0);" title="编辑分组">
<i class="iconfont iconbianji"></i>
</a>
<a class="group-name am-text-truncate" href="javascript:void(0);">
{{ $value.group_name }}
</a>
<a class="group-delete" href="javascript:void(0);" title="删除分组">
<i class="iconfont iconshanchu"></i>
</a>
</li>
{{ /each }}
</ul>
<a class="group-add" href="javascript:void(0);">新增分组</a>
</div>
<div class="file-list">
<div class="v-box-header am-cf">
<div class="h-left am-fl am-cf">
<div class="am-fl">
<div class="group-select am-dropdown">
<button type="button" class="am-btn am-btn-sm am-btn-secondary am-dropdown-toggle">
移动至 <span class="am-icon-caret-down"></span>
</button>
<ul class="group-list am-dropdown-content">
<li class="am-dropdown-header">请选择分组</li>
{{ each group_list }}
<li>
<a class="move-file-group" data-group-id="{{ $value.group_id }}"
href="javascript:void(0);">{{ $value.group_name }}</a>
</li>
{{ /each }}
</ul>
</div>
</div>
<div class="am-fl file-library-operation">
<a href="javascript:void(0);" class="file-delete tpl-table-black-operation-del"
data-group-id="2">
<i class="am-icon-trash"></i> 删除
</a>
</div>
</div>
<div class="h-rigth am-fr">
<div class="j-upload upload-image">
<i class="iconfont icontianjia"></i>
上传图片
</div>
</div>
</div>
<div id="file-list-body" class="v-box-body">
{{ include 'tpl-file-list' file_list }}
</div>
<div class="v-box-footer am-cf"></div>
</div>
</div>
</script>
<!-- 文件列表模板 -->
<script id="tpl-file-list" type="text/template">
<ul class="file-list-item">
{{ include 'tpl-file-list-item' data }}
</ul>
{{ if last_page > 1 }}
<div class="file-page-box am-fr">
<ul class="pagination">
{{ if current_page > 1 }}
<li>
<a class="switch-page" href="javascript:void(0);" title="上一页" data-page="{{ current_page - 1 }}">«</a>
</li>
{{ /if }}
{{ if current_page < last_page }}
<li>
<a class="switch-page" href="javascript:void(0);" title="下一页" data-page="{{ current_page + 1 }}">»</a>
</li>
{{ /if }}
</ul>
</div>
{{ /if }}
</script>
<!-- 文件列表模板 -->
<script id="tpl-file-list-item" type="text/template">
{{ each $data }}
<li class="ng-scope" title="{{ $value.file_name }}" data-file-id="{{ $value.file_id }}"
data-url="{{ $value.url }}" data-file-path="{{ $value.file_path }}">
<div class="img-cover"
style="background-image: url('{{ $value.url }}')">
</div>
<p class="file-name am-text-center am-text-truncate">{{ $value.file_name }}</p>
<div class="select-mask">
<img src="/assets/img/chose.png">
</div>
</li>
{{ /each }}
</script>
<!-- 分组元素-->
<script id="tpl-group-item" type="text/template">
<li class="ng-scope" data-group-id="{{ group_id }}" title="{{ group_name }}">
<a class="group-edit" href="javascript:void(0);" title="编辑分组">
<i class="iconfont iconbianji"></i>
</a>
<a class="group-name am-text-truncate" href="javascript:void(0);">
{{ group_name }}
</a>
<a class="group-delete" href="javascript:void(0);" title="删除分组">
<i class="iconfont iconshanchu"></i>
</a>
</li>
</script>
<script src="/assets/plugins/layui/layui.js?v=<?php echo htmlentities($version); ?>" charset="utf-8"></script>
<script src="/assets/plugins/vue/vue.min.js?v=<?php echo htmlentities($version); ?>"></script>
<script>
layui.use('laydate', function(){
var laydate = layui.laydate;
//时间范围
laydate.render({
elem: '#shop_hours'
,format: 'HH:mm'
,type: 'time'
,range: true
});
});
/**
* 设置坐标
*/
function setCoordinate(value) {
var $coordinate = $('#coordinate');
$coordinate.val(value);
// 触发验证
$coordinate.trigger('change');
}
$(function () {
new Vue({
el: '#my-form',
data: {
checked:"<?php echo htmlentities($model['is_delivery']['value']); ?>"
}
});
// 选择图片
$('.upload-file').selectImages({
name: 'data[logo]'
});
$('#my-form').formPost();
});
</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

View File

@ -1,470 +0,0 @@
<?php /*a:2:{s:72:"/www/wwwroot/app.cxhxy.dev.1nww.com/app/store/view/food/index/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="page-home row-content am-cf">
<!-- 商城统计 -->
<div class="row">
<div class="am-u-sm-12 am-u-md-12 am-u-lg-12 am-margin-bottom">
<div class="widget am-cf">
<div class="widget-head am-cf">
<div class="widget-title">门店统计</div>
<?php if($user['applet']['shop_mode']['value']==20): ?>
<div class="widget-screen am-cf">
<!-- 日期选择器 -->
<form id="my-form">
<div class="yxs-date-editor am-fl">
<select id="shop" name="shop_id">
<option value="">全部门店统计</option>
<?php if(isset($shop)): foreach($shop 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>
</form>
</div>
<?php endif; ?>
</div>
<div class="widget-body am-cf">
<div class="am-u-sm-12 am-u-md-6 am-u-lg-3">
<div class="widget-card card__blue am-cf">
<div class="card-header">商品总量</div>
<div class="card-body">
<div class="card-value"><?=$count['goods']?></div>
<div class="card-description">当前商品总数量</div>
<span class="card-icon iconfont iconshangpinguanli"></span>
</div>
</div>
</div>
<div class="am-u-sm-12 am-u-md-6 am-u-lg-3">
<div class="widget-card card__red am-cf">
<div class="card-header">用户总量</div>
<div class="card-body">
<div class="card-value"><?=$count['user']['all']['all']?></div>
<div class="card-description">当前用户总数量</div>
<span class="card-icon iconfont iconyonghuguanli"></span>
</div>
</div>
</div>
<div class="am-u-sm-12 am-u-md-6 am-u-lg-3">
<div class="widget-card card__violet am-cf">
<div class="card-header">订单总量</div>
<div class="card-body">
<div class="card-value"><?=$count['order']['all']['all']?></div>
<div class="card-description">付款订单总数量</div>
<span class="card-icon iconfont icondingdanguanli"></span>
</div>
</div>
</div>
<div class="am-u-sm-12 am-u-md-6 am-u-lg-3">
<div class="widget-card card__primary am-cf">
<div class="card-header">评价总量</div>
<div class="card-body">
<div class="card-value"><?=$count['comment']['all']?></div>
<div class="card-description">订单评价总数量</div>
<span class="card-icon iconfont iconhaoping"></span>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- 待处理 -->
<div class="row">
<div class="am-u-sm-12 am-u-md-12 am-u-lg-12 am-margin-bottom">
<div class="widget am-cf">
<div class="widget-head">
<div class="widget-title">待处理统计</div>
</div>
<div class="widget-body am-cf">
<div class="am-u-sm-2">
<div class="widget-outline2 dis-flex flex-y-center">
<div class="outline-right dis-flex flex-dir-column flex-x-between">
<div style="color: rgb(102, 102, 102); font-size: 1.2rem;">待退款数量</div>
<div style="color: rgb(51, 51, 51); font-size: 2.4rem;"><?=$count['order']['all']['refund']?></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- 订单统计 -->
<div class="row">
<div class="am-u-sm-12 am-u-md-12 am-u-lg-12 am-margin-bottom">
<div class="widget am-cf">
<div class="widget-head">
<div class="widget-title">订单统计</div>
</div>
<div class="widget-body am-cf">
<div class="am-u-sm-2">
<div class="widget-outline dis-flex flex-y-center">
<div class="outline-right dis-flex flex-dir-column flex-x-between">
<div style="color: rgb(102, 102, 102); font-size: 1.2rem;">今日堂食订单数量</div>
<div style="color: rgb(51, 51, 51); font-size: 2.4rem;"><?=$count['order']['today']['tang']?></div>
<div style="color: rgb(153, 153, 153); font-size: 1.2rem;">
昨日:<?=$count['order']['today2']['tang']?></div>
<div style="color: rgb(102, 102, 102); font-size: 1.2rem;">本月堂食订单数量</div>
<div style="color: rgb(51, 51, 51); font-size: 2.4rem;"><?=$count['order']['month']['tang']?></div>
<div style="color: rgb(153, 153, 153); font-size: 1.2rem;">
上月:<?=$count['order']['month2']['tang']?></div>
</div>
</div>
</div>
<div class="am-u-sm-2">
<div class="widget-outline dis-flex flex-y-center">
<div class="outline-right dis-flex flex-dir-column flex-x-between">
<div style="color: rgb(102, 102, 102); font-size: 1.2rem;">今日自取订单数量</div>
<div style="color: rgb(51, 51, 51); font-size: 2.4rem;"><?=$count['order']['today']['qu']?></div>
<div style="color: rgb(153, 153, 153); font-size: 1.2rem;">
昨日:<?=$count['order']['today2']['qu']?></div>
<div style="color: rgb(102, 102, 102); font-size: 1.2rem;">本月自取订单数量</div>
<div style="color: rgb(51, 51, 51); font-size: 2.4rem;"><?=$count['order']['month']['qu']?></div>
<div style="color: rgb(153, 153, 153); font-size: 1.2rem;">
上月:<?=$count['order']['month2']['qu']?></div>
</div>
</div>
</div>
<div class="am-u-sm-2">
<div class="widget-outline dis-flex flex-y-center">
<div class="outline-right dis-flex flex-dir-column flex-x-between">
<div style="color: rgb(102, 102, 102); font-size: 1.2rem;">今日外卖订单数量</div>
<div style="color: rgb(51, 51, 51); font-size: 2.4rem;"><?=$count['order']['today']['wai']?></div>
<div style="color: rgb(153, 153, 153); font-size: 1.2rem;">
昨日:<?=$count['order']['today2']['wai']?></div>
<div style="color: rgb(102, 102, 102); font-size: 1.2rem;">本月外卖订单数量</div>
<div style="color: rgb(51, 51, 51); font-size: 2.4rem;"><?=$count['order']['month']['wai']?></div>
<div style="color: rgb(153, 153, 153); font-size: 1.2rem;">
上月:<?=$count['order']['month2']['wai']?></div>
</div>
</div>
</div>
<div class="am-u-sm-2">
<div class="widget-outline dis-flex flex-y-center">
<div class="outline-right dis-flex flex-dir-column flex-x-between">
<div style="color: rgb(102, 102, 102); font-size: 1.2rem;">今日退单数量</div>
<div style="color: rgb(51, 51, 51); font-size: 2.4rem;"><?= $count['order']['today']['refund'] ?></div>
<div style="color: rgb(153, 153, 153); font-size: 1.2rem;">
昨日:<?= $count['order']['today2']['refund'] ?></div>
<div style="color: rgb(102, 102, 102); font-size: 1.2rem;">本月退单数量</div>
<div style="color: rgb(51, 51, 51); font-size: 2.4rem;"><?= $count['order']['month']['refund'] ?></div>
<div style="color: rgb(153, 153, 153); font-size: 1.2rem;">
上月:<?= $count['order']['month2']['refund'] ?></div>
</div>
</div>
</div>
<div class="am-u-sm-2 am-u-end">
<div class="widget-outline dis-flex flex-y-center">
<div class="outline-right dis-flex flex-dir-column flex-x-between">
<div style="color: rgb(102, 102, 102); font-size: 1.2rem;">今日预约订桌数量</div>
<div style="color: rgb(51, 51, 51); font-size: 2.4rem;"><?=$count['pact']['today']?></div>
<div style="color: rgb(153, 153, 153); font-size: 1.2rem;">
昨日:<?=$count['pact']['today2']?></div>
<div style="color: rgb(102, 102, 102); font-size: 1.2rem;">本月预约订桌数量</div>
<div style="color: rgb(51, 51, 51); font-size: 2.4rem;"><?=$count['pact']['month']?></div>
<div style="color: rgb(153, 153, 153); font-size: 1.2rem;">
上月:<?=$count['pact']['month2']?></div>
</div>
</div>
</div>
</div>
<div class="widget-head">
<div class="widget-title">交易统计</div>
</div>
<div class="widget-body am-cf">
<div class="am-u-sm-2">
<div class="widget-outline dis-flex flex-y-center">
<div class="outline-right dis-flex flex-dir-column flex-x-between">
<div style="color: rgb(102, 102, 102); font-size: 1.2rem;">今日订单金额</div>
<div style="color: rgb(51, 51, 51); font-size: 2.4rem;"><?php echo htmlentities($count['order']['today']['money']['order']); ?></div>
<div style="color: rgb(153, 153, 153); font-size: 1.2rem;">
昨日:<?php echo htmlentities($count['order']['today2']['money']['order']); ?></div>
<div style="color: rgb(102, 102, 102); font-size: 1.2rem;">本月订单金额</div>
<div style="color: rgb(51, 51, 51); font-size: 2.4rem;"><?php echo htmlentities($count['order']['month']['money']['order']); ?></div>
<div style="color: rgb(153, 153, 153); font-size: 1.2rem;">
上月:<?php echo htmlentities($count['order']['month2']['money']['order']); ?></div>
</div>
</div>
</div>
<div class="am-u-sm-2">
<div class="widget-outline dis-flex flex-y-center">
<div class="outline-right dis-flex flex-dir-column flex-x-between">
<div style="color: rgb(102, 102, 102); font-size: 1.2rem;">今日退款金额</div>
<div style="color: rgb(51, 51, 51); font-size: 2.4rem;"><?php echo htmlentities($count['order']['today']['money']['refund']); ?></div>
<div style="color: rgb(153, 153, 153); font-size: 1.2rem;">
昨日:<?php echo htmlentities($count['order']['today2']['money']['refund']); ?></div>
<div style="color: rgb(102, 102, 102); font-size: 1.2rem;">本月退款金额</div>
<div style="color: rgb(51, 51, 51); font-size: 2.4rem;"><?php echo htmlentities($count['order']['month']['money']['refund']); ?></div>
<div style="color: rgb(153, 153, 153); font-size: 1.2rem;">
上月:<?php echo htmlentities($count['order']['month2']['money']['refund']); ?></div>
</div>
</div>
</div>
<div class="am-u-sm-2">
<div class="widget-outline dis-flex flex-y-center">
<div class="outline-right dis-flex flex-dir-column flex-x-between">
<div style="color: rgb(102, 102, 102); font-size: 1.2rem;">今日优惠金额</div>
<div style="color: rgb(51, 51, 51); font-size: 2.4rem;"><?php echo htmlentities($count['order']['today']['money']['activity']); ?></div>
<div style="color: rgb(153, 153, 153); font-size: 1.2rem;">
昨日:<?php echo htmlentities($count['order']['today2']['money']['activity']); ?></div>
<div style="color: rgb(102, 102, 102); font-size: 1.2rem;">本月优惠金额</div>
<div style="color: rgb(51, 51, 51); font-size: 2.4rem;"><?php echo htmlentities($count['order']['month']['money']['activity']); ?></div>
<div style="color: rgb(153, 153, 153); font-size: 1.2rem;">
上月:<?php echo htmlentities($count['order']['month2']['money']['activity']); ?></div>
</div>
</div>
</div>
<div class="am-u-sm-2">
<div class="widget-outline dis-flex flex-y-center">
<div class="outline-right dis-flex flex-dir-column flex-x-between">
<div style="color: rgb(102, 102, 102); font-size: 1.2rem;">今日充值金额</div>
<div style="color: rgb(51, 51, 51); font-size: 2.4rem;"><?php echo htmlentities($count['record']['today']['10']); ?></div>
<div style="color: rgb(153, 153, 153); font-size: 1.2rem;">
昨日:<?php echo htmlentities($count['record']['today2']['10']); ?></div>
<div style="color: rgb(102, 102, 102); font-size: 1.2rem;">本月充值金额</div>
<div style="color: rgb(51, 51, 51); font-size: 2.4rem;"><?php echo htmlentities($count['record']['month']['10']); ?></div>
<div style="color: rgb(153, 153, 153); font-size: 1.2rem;">
上月:<?php echo htmlentities($count['record']['month2']['10']); ?></div>
</div>
</div>
</div>
<div class="am-u-sm-2 am-u-end">
<div class="widget-outline dis-flex flex-y-center">
<div class="outline-right dis-flex flex-dir-column flex-x-between">
<div style="color: rgb(102, 102, 102); font-size: 1.2rem;">今日赠送金额</div>
<div style="color: rgb(51, 51, 51); font-size: 2.4rem;"><?php echo htmlentities($count['record']['today']['40']); ?></div>
<div style="color: rgb(153, 153, 153); font-size: 1.2rem;">
昨日:<?php echo htmlentities($count['record']['today2']['40']); ?></div>
<div style="color: rgb(102, 102, 102); font-size: 1.2rem;">本月赠送金额</div>
<div style="color: rgb(51, 51, 51); font-size: 2.4rem;"><?php echo htmlentities($count['record']['month']['40']); ?></div>
<div style="color: rgb(153, 153, 153); font-size: 1.2rem;">
上月:<?php echo htmlentities($count['record']['month2']['40']); ?></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- 近七日走势 -->
<div class="row">
<div class="am-u-sm-12 am-u-md-12 am-u-lg-12 am-margin-bottom">
<div class="widget am-cf">
<div class="widget-head">
<div class="widget-title">近七日走势</div>
</div>
<div class="widget-body am-cf">
<div id="echarts-trade" class="widget-echarts"></div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="am-u-sm-12 am-u-md-12 am-u-lg-12">
<div class="help-block am-text-center">
<small><?= $web['name']?>&nbsp;&nbsp;版权所有</small>
</div>
</div>
</div>
</div>
<script src="/assets/plugins/echarts/echarts.min.js?v=<?php echo htmlentities($version); ?>"></script>
<script src="/assets/plugins/echarts/echarts-walden.js?v=<?php echo htmlentities($version); ?>"></script>
<script type="text/javascript">
$('#shop').change(function(){
window.location.href='/store/food.index/index/shop_id/'+$('#shop').val();
});
/**
* 近七日交易走势
* @type {HTMLElement}
*/
var dom = document.getElementById('echarts-trade');
echarts.init(dom, 'walden').setOption({
tooltip: {
trigger: 'axis'
},
legend: {
data: ['订单量', '成交额', '用户量']
},
toolbox: {
show: true,
showTitle: false,
feature: {
mark: {show: true},
magicType: {show: true, type: ['line', 'bar']}
}
},
calculable: true,
xAxis: {
type: 'category',
boundaryGap: false,
data: ["<?= date("Y-m-d")?>","<?= date("Y-m-d",strtotime("-1 day"))?>","<?= date("Y-m-d",strtotime("-2 day"))?>","<?= date("Y-m-d",strtotime("-3 day"))?>","<?= date("Y-m-d",strtotime("-4 day"))?>","<?= date("Y-m-d",strtotime("-5 day"))?>","<?= date("Y-m-d",strtotime("-6 day"))?>"]
},
yAxis: {
type: 'value'
},
series: [
{
name: '订单量',
type: 'line',
data: [<?= $count['order']['today']['all'] ?>,<?= $count['order']['today2']['all'] ?>,<?= $count['order']['today3']['all'] ?>,<?= $count['order']['today4']['all'] ?>,<?= $count['order']['today5']['all'] ?>,<?= $count['order']['today6']['all'] ?>,<?= $count['order']['today7']['all'] ?>]
},
{
name: '成交额',
type: 'line',
data: [<?= $count['order']['today']['money']['order'] ?>,<?= $count['order']['today2']['money']['order'] ?>,<?= $count['order']['today3']['money']['order'] ?>,<?= $count['order']['today4']['money']['order'] ?>,<?= $count['order']['today5']['money']['order'] ?>,<?= $count['order']['today6']['money']['order'] ?>,<?= $count['order']['today7']['money']['order'] ?>]
},
{
name: '用户量',
type: 'line',
data: [<?= $count['user']['today'] ?>,<?= $count['user']['today2'] ?>,<?= $count['user']['today3'] ?>,<?= $count['user']['today4'] ?>,<?= $count['user']['today5'] ?>,<?= $count['user']['today6'] ?>,<?= $count['user']['today7'] ?>]
}
]
}, 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>

View File

@ -1,2 +0,0 @@
[2023-11-21T18:41:05+08:00][error] [8]Trying to access array offset on value of type null
[2023-11-21T18:45:54+08:00][error] [8]Trying to access array offset on value of type null

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long