619 lines
36 KiB
PHP
619 lines
36 KiB
PHP
<?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>
|
||
|