56 lines
15 KiB
PHP
56 lines
15 KiB
PHP
<?php /*a:3:{s:68:"/www/wwwroot/app.cxhxy.dev.1nww.com/app/admin/view/applet/index.html";i:1700552721;s:69:"/www/wwwroot/app.cxhxy.dev.1nww.com/app/admin/view/layout/layout.html";i:1700552721;s:74:"/www/wwwroot/app.cxhxy.dev.1nww.com/app/admin/view/applet/tpl_genewal.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($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']); ?>">
|
||
<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" type="image/png" href="/favicon.png" />
|
||
<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); ?>" />
|
||
<link rel="stylesheet" href="/assets/plugins/iconfont/iconfont.css?v=<?php echo htmlentities($version); ?>">
|
||
<script src="/assets/plugins/jquery/jquery.min.js?v=<?php echo htmlentities($version); ?>"></script>
|
||
<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-fr tpl-header-navbar">
|
||
<ul>
|
||
<!-- 当前版本 -->
|
||
<li class="am-text-sm">
|
||
<a href="javascript:void(0);" class="hemaphp-upgrade">
|
||
<small style="color:#ccc;">版本:V<?php echo htmlentities($version); ?></small>
|
||
<?php if($is_new): ?>
|
||
<div class="news"></div>
|
||
<?php endif; ?>
|
||
</a>
|
||
</li>
|
||
<!-- 欢迎语 -->
|
||
<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="/assets/img/avatar.png" />
|
||
<?php echo htmlentities((isset($user['user']['user_name']) && ($user['user']['user_name'] !== '')?$user['user']['user_name']:'')); ?>
|
||
<span class="am-icon-caret-down"></span>
|
||
</div>
|
||
<ul class="am-dropdown-content">
|
||
<li><a href="<?php echo url('passport/renew'); ?>">修改密码</a></li>
|
||
<li><a href="<?php echo url('passport/logout'); ?>">安全退出</a></li>
|
||
</ul>
|
||
</div>
|
||
</li>
|
||
</ul>
|
||
</div>
|
||
</div>
|
||
</header> <!-- 侧边导航栏 -->
|
||
<div class="left-sidebar dis-flex">
|
||
<?php $menus = $menus ?: []; $group = $group ?: 0; $second = isset($menus[$group]['submenu']) ? $menus[$group]['submenu'] : []?>
|
||
<!-- 一级菜单 -->
|
||
<ul class="sidebar-nav">
|
||
<li class="sidebar-nav-heading">管理后台</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 <?php echo htmlentities($item['icon']); ?>"
|
||
style="{isset($item.color) ? 'color:'.$item.color.';' : '' }"></i> <?php endif; ?> <?php echo htmlentities($item['name']); ?>
|
||
</a> </li> <?php endforeach; ?>
|
||
</ul> <!-- 子级菜单--> <?php if((sizeof($second) > 0)): ?> <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 $key=>$item): if((!isset($item['submenu']))): ?>
|
||
<!-- 二级菜单--> <a href="<?php echo url($item['index']); ?>" class="<?php echo !empty($item['active']) ? 'active' : ''; ?>">
|
||
<?php echo htmlentities($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 sizeof($second) == 0 ? '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"><?= $title?>列表</div>
|
||
|
||
</div>
|
||
|
||
<div class="widget-body am-fr">
|
||
|
||
<div class="am-scrollable-horizontal am-u-sm-12">
|
||
|
||
<table width="100%" class="am-table am-table-hover tpl-table-black">
|
||
|
||
<thead>
|
||
|
||
<tr>
|
||
|
||
<th>Applet_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['applet_id']); ?></td>
|
||
|
||
<td class="am-text-middle">
|
||
|
||
<img src="<?php echo htmlentities($item['head_img']); ?>" width="50" height="50" alt="小程序图片">
|
||
|
||
</td>
|
||
|
||
<td class="am-text-middle">
|
||
|
||
<p class="item-title"><?php echo htmlentities((isset($item['app_name']) && ($item['app_name'] !== '')?$item['app_name']:'--')); ?></p>
|
||
|
||
</td>
|
||
|
||
<td class="am-text-middle">
|
||
<?php if($item['template']['value'] > 0): ?>
|
||
<span class="am-badge am-radius am-badge-primary">
|
||
<?php else: if($item['template']['text'] == ''): ?>
|
||
<span class="am-badge am-radius">
|
||
<?php else: ?>
|
||
<span class="am-badge am-radius am-badge-secondary">
|
||
<?php endif; ?>
|
||
<?php endif; ?>
|
||
<?php echo htmlentities($item['template']['name']); ?>
|
||
</span>
|
||
</td>
|
||
<td class="am-text-middle">
|
||
<?php if($item['template']['value']>0): ?>
|
||
<?php echo htmlentities($item['expire_time']['text']); else: ?>
|
||
--
|
||
<?php endif; ?>
|
||
</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 class="hema-renewal tpl-table-black-operation-green"
|
||
|
||
href="javascript:void(0);"
|
||
|
||
data-id="<?php echo htmlentities($item['applet_id']); ?>"
|
||
|
||
data-expire="<?php echo htmlentities($item['expire_time']['text']); ?>">
|
||
|
||
<i class="am-icon-clock-o"></i> 续期
|
||
|
||
</a>
|
||
|
||
</div>
|
||
|
||
</td>
|
||
|
||
</tr>
|
||
|
||
<?php endforeach; else: ?>
|
||
|
||
<tr>
|
||
|
||
<td colspan="8" 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-genewal" type="text/template">
|
||
<div class="am-padding-xs am-padding-top-sm">
|
||
<div class="am-form-group">
|
||
<label class="am-u-sm-3 am-form-label">当前到期时间</label>
|
||
<div class="am-u-sm-8 am-u-end">
|
||
<div class="am-form--static">{{expire}}</div>
|
||
</div>
|
||
</div>
|
||
<div class="am-form-group">
|
||
<label class="am-u-sm-3 am-form-label">变更方式</label>
|
||
<div class="am-u-sm-8 am-u-end">
|
||
<label class="am-radio-inline">
|
||
<input type="radio" name="data[mode]"
|
||
value="inc" data-am-ucheck checked> 增加
|
||
</label>
|
||
<label class="am-radio-inline">
|
||
<input type="radio" name="data[mode]"
|
||
value="dec" data-am-ucheck> 减少
|
||
</label>
|
||
<label class="am-radio-inline">
|
||
<input type="radio" name="data[mode]"
|
||
value="final" data-am-ucheck> 重置
|
||
</label>
|
||
<div class="help-block am-margin-top-sm">
|
||
<small>重置:从今天的时间开始计算</small>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div class="am-form-group">
|
||
<label class="am-u-sm-3 am-form-label">变更单位</label>
|
||
<div class="am-u-sm-8 am-u-end">
|
||
<label class="am-radio-inline">
|
||
<input type="radio" name="data[term_unit]"
|
||
value="10" data-am-ucheck> 天
|
||
</label>
|
||
<label class="am-radio-inline">
|
||
<input type="radio" name="data[term_unit]"
|
||
value="20" data-am-ucheck> 月
|
||
</label>
|
||
<label class="am-radio-inline">
|
||
<input type="radio" name="data[term_unit]"
|
||
value="30" data-am-ucheck checked> 年
|
||
</label>
|
||
</div>
|
||
</div>
|
||
<div class="am-form-group">
|
||
<label class="am-u-sm-3 am-form-label form-require">变更数值</label>
|
||
<div class="am-u-sm-8 am-u-end">
|
||
<input type="number" min="0" class="tpl-form-input"
|
||
placeholder="请输入要变更的数值(整数)" name="data[term]" value="" required>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</script>
|
||
|
||
<script>
|
||
|
||
$(function () {
|
||
|
||
/**
|
||
|
||
* 变更到期时间操作
|
||
|
||
*/
|
||
|
||
$('.hema-renewal').on('click', function () {
|
||
|
||
var data = $(this).data();
|
||
|
||
$.showAction({
|
||
|
||
title: '变更到期时间操作',
|
||
|
||
area: '460px',
|
||
|
||
content: template('tpl-genewal', data),
|
||
|
||
uCheck: true,
|
||
|
||
success: function ($content) {
|
||
|
||
$('#my-form').formPost({
|
||
|
||
url: "<?php echo url('applet/renewal'); ?>?id=" + data.id
|
||
|
||
});
|
||
|
||
},
|
||
|
||
btn2: function ($content) {
|
||
|
||
return true;
|
||
|
||
}
|
||
|
||
});
|
||
|
||
});
|
||
|
||
|
||
|
||
});
|
||
|
||
</script>
|
||
|
||
|
||
|
||
</div>
|
||
<!-- 内容区域 end -->
|
||
<div class="am-modal am-modal-loading am-modal-no-btn" tabindex="-1" id="addons-loading"></div>
|
||
</div>
|
||
<script src="/assets/plugins/vue/vue.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/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>
|
||
<script>
|
||
$(function() {
|
||
// 状态操作
|
||
$('.hemaphp-upgrade').click(function () {
|
||
var is_new = '<?php echo htmlentities($is_new); ?>';
|
||
if(is_new){
|
||
layer.confirm('您确定要进行升级?', {
|
||
title: '友情提示',
|
||
icon: 0,
|
||
btn:['取消','确定'],
|
||
skin: 'layui-layer-hema',
|
||
cancel : function(){
|
||
// 你点击右上角 X 回调
|
||
},
|
||
btn1:function(index,layero){
|
||
layer.close(index);
|
||
},
|
||
btn2:function(index){
|
||
$("#addons-loading").html('<div class="am-modal-dialog"><div class="am-modal-hd">系统升级中,请等待...</div><div class="am-modal-bd"><span class="am-icon-spinner am-icon-spin"></span></div></div>');
|
||
$("#addons-loading").modal('open');
|
||
$.post('/admin/addon/hemaphpUpgrade', {}, function (result) {
|
||
$("#addons-loading").modal('close');
|
||
if(typeof(result) == 'string'){
|
||
result = JSON.parse(result);
|
||
}
|
||
result.code === 1 ? $.show_success(result.msg, result.url) : $.show_error(result.msg);
|
||
});
|
||
layer.close(index);
|
||
},
|
||
end:function() {
|
||
//所有操作都会执行
|
||
}
|
||
});
|
||
return true;
|
||
}
|
||
$.show_error('已是最新版本');
|
||
});
|
||
});
|
||
</script>
|
||
</body>
|
||
</html>
|