179 lines
17 KiB
PHP
179 lines
17 KiB
PHP
<?php /*a:3:{s:67:"/www/wwwroot/app.cxhxy.dev.1nww.com/app/user/view/applet/index.html";i:1701417087;s:68:"/www/wwwroot/app.cxhxy.dev.1nww.com/app/user/view/layout/layout.html";i:1700552721;s:68:"/www/wwwroot/app.cxhxy.dev.1nww.com/app/user/view/applet/qrcode.html";i:1701416880;}*/ ?>
|
|
<!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="never">
|
|
|
|
<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); ?>" />
|
|
|
|
<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 : ''; ?>";
|
|
|
|
</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>
|
|
|
|
<!-- 代理 -->
|
|
|
|
<li class="am-text-sm"> <?php if($user['user']['status']['value'] != 30): ?> <a
|
|
|
|
href="/index/proxy/index"> <i class="iconfont iconrenzheng"></i> 代理申请 </a> <?php else: ?>
|
|
|
|
<a href="<?php echo url('user/agentLogin'); ?>"> <i class="iconfont iconkaifangpingtai"></i> 代理中心
|
|
|
|
</a> <?php endif; ?> </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="<?php echo url('setting/user'); ?>">账号信息</a></li>
|
|
<li><a href="<?php echo url('setting/renew'); ?>">修改密码</a></li>
|
|
<li><a href="/index/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">小程序管理</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('applet/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>Applet_Id</th>
|
|
<th>图标</th>
|
|
<th>名称</th>
|
|
<th>模板</th>
|
|
<th>上线平台</th>
|
|
<th>小程序码</th>
|
|
<th>到期时间</th>
|
|
<th>创建时间</th>
|
|
<th>管理操作</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<?php if(!$list->isEmpty()): foreach($list as $index => $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 echo htmlentities($item['template']['name']); ?>
|
|
</span>
|
|
<?php else: if($item['template']['text'] == ''): ?>
|
|
<span class="am-badge am-radius">
|
|
<?php echo htmlentities($item['template']['name']); ?>
|
|
</span>
|
|
<?php else: ?>
|
|
<span class="am-badge am-radius am-badge-secondary">
|
|
<?php echo htmlentities($item['template']['name']); ?>
|
|
</span>
|
|
<?php endif; ?>
|
|
<?php endif; ?>
|
|
</td>
|
|
<td class="am-text-middle" style="font-size:25px;color:#ccc;">
|
|
<i class="iconfont iconH5" style="<?php echo !empty($item['qrcode']['h5']) ? 'color : #ff9900;':''; ?>"></i>
|
|
<i class="iconfont iconweixinxiaochengxu" style="<?php echo !empty($item['qrcode']['weixin']) ? 'color : #19be6b;':''; ?>"></i>
|
|
<i class="iconfont iconzhifubao" style="<?php echo !empty($item['qrcode']['alipay']) ? 'color : #2979ff;':''; ?>"></i>
|
|
</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 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 href="<?php echo url('applet/setup',['id' => $item['applet_id']]); ?>" target="_blank"
|
|
class="tpl-table-black-operation-primary">
|
|
<i class="am-icon-cog"></i> 设置
|
|
</a>
|
|
<?php if($item['template']['text'] != ''): ?>
|
|
<a href="<?php echo url('applet/login',['id' => $item['applet_id']]); ?>" target="_blank">
|
|
<i class="am-icon-desktop"></i> 管理
|
|
</a>
|
|
<?php endif; if($item['template']['value']>0): ?>
|
|
<a href="<?php echo url('applet/status',['id' => $item['applet_id']]); ?>"
|
|
class="item-delete tpl-table-black-operation-green" >
|
|
<i class="am-icon-credit-card"></i> 续费
|
|
</a>
|
|
<?php endif; if($item['app_id'] == ''): ?>
|
|
<a href="javascript:;" class="hema-del tpl-table-black-operation-del"
|
|
data-id="<?php echo htmlentities($item['applet_id']); ?>">
|
|
<i class="am-icon-trash"></i> 删除
|
|
</a>
|
|
<?php endif; ?>
|
|
</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-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[data.index].qrcode}),
|
|
uCheck: true,
|
|
btn: ['取消'],
|
|
success: function ($content) {
|
|
},
|
|
btn2: function ($content) {
|
|
return true;
|
|
}
|
|
});
|
|
});
|
|
// 删除元素
|
|
$('.hema-del').del('id', "<?php echo url('applet/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="/assets/plugins/vue/vue.min.js?v=<?php echo htmlentities($version); ?>"></script>
|
|
|
|
</body>
|
|
|
|
</html>
|
|
|