cxhxy/runtime/applet/temp/f23a297c97a3d0d4d3ea56de0ee9794f.php
test_service d3170b4d1c 1
2023-12-01 15:43:29 +08:00

86 lines
19 KiB
PHP
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php /*a:4:{s:75:"/www/wwwroot/app.cxhxy.dev.1nww.com/app/applet/view/wxapp/qrcode/index.html";i:1700552721;s:70:"/www/wwwroot/app.cxhxy.dev.1nww.com/app/applet/view/layout/layout.html";i:1700552721;s:73:"/www/wwwroot/app.cxhxy.dev.1nww.com/app/applet/view/wxapp/qrcode/add.html";i:1700552721;s:74:"/www/wwwroot/app.cxhxy.dev.1nww.com/app/applet/view/wxapp/qrcode/edit.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="origin-when-cross-origin">
<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 : ''; ?>";
USER_ID = "<?php echo isset($user_id) ? $user_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="/user"> <i class="iconfont am-icon-user"></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="<?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">二维码规则列表</div>
</div>
<?php if($user['applet']['status']['value'] == 1): ?>
<div class="widget-body am-fr">
<?php if($list['errcode']==0): ?>
<div class="tips am-margin-bottom-sm am-u-sm-12">
<div class="pre-warning">
<p>规则数量:<?php echo htmlentities($list['total_count']); ?>,本月还可发布<?php echo htmlentities($list['qrcodejump_pub_quota']); ?>次</p>
</div>
</div>
<?php endif; ?>
<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['errcode']==0 AND sizeof($list['rule_list'])>0): foreach($list['rule_list'] as $item): ?>
<tr>
<td class="am-text-middle"><?php echo htmlentities($item['prefix']); ?></td>
<td class="am-text-middle"><?php echo htmlentities($item['path']); ?></td>
<td class="am-text-middle">
<?php echo $item['open_version']==1 ? '开发版' : ''; ?>
<?php echo $item['open_version']==2 ? '体验版' : ''; ?>
<?php echo $item['open_version']==3 ? '正式版' : ''; ?>
</td>
<td class="am-text-middle">
<span class="am-badge
<?php echo $item['state']==1 ? ' am-badge-warning j-status' : ''; ?>
<?php echo $item['state']==2 ? ' am-badge-success' : ''; ?>"
data-id="<?php echo htmlentities($item['prefix']); ?>">
<?php echo $item['state']==1 ? '未发布' : ''; ?>
<?php echo $item['state']==2 ? '已发布' : ''; ?>
</span>
</td>
<td class="am-text-middle">
<div class="tpl-table-black-operation">
<a href="javascript:;" class="hema-edit"
data-prefix="<?php echo htmlentities($item['prefix']); ?>"
data-path="<?php echo htmlentities($item['path']); ?>"
data-open_version="<?php echo htmlentities($item['open_version']); ?>">
<i class="am-icon-pencil"></i> 编辑
</a>
<a href="javascript:;" class="hema-del tpl-table-black-operation-del"
data-id="<?php echo htmlentities($item['prefix']); ?>">
<i class="am-icon-trash"></i> 删除
</a>
</div>
</td>
</tr>
<?php endforeach; else: ?>
<tr>
<td colspan="5" class="am-text-center">
<?php echo $list['errcode']==0 ? '暂无记录' : 'code'.$list['errcode'].'msg'.$list['errmsg']; ?>
</td>
</tr>
<?php endif; ?>
</tbody>
</table>
</div>
</div>
<?php else: ?>
<div class="tips am-margin-bottom-sm am-u-sm-12">
<div class="pre-error">
<?php echo $user['applet']['app_id']=='' ? '未授权绑定小程序' : '非授权模式,无操作权限'; ?>
</div>
</div>
<?php endif; ?>
</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[prefix]" 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="text" class="tpl-form-input" name="data[path]" value="pages/index/index" 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">
<label class="am-radio-inline">
<input type="radio" name="data[open_version]" value="1" data-am-ucheck> 开发版
</label>
<label class="am-radio-inline">
<input type="radio" name="data[open_version]" value="2" data-am-ucheck> 体验版
</label>
<label class="am-radio-inline">
<input type="radio" name="data[open_version]" value="3" checked data-am-ucheck> 正式版
</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[permit_sub_rule]" value="1" checked data-am-ucheck> 否
</label>
<label class="am-radio-inline">
<input type="radio" name="data[permit_sub_rule]" value="2" data-am-ucheck> 是
</label>
</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[prefix]" value="{{ prefix }}" 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[path]" value="{{ path }}" 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">
<label class="am-radio-inline">
<input type="radio" name="data[open_version]" value="1" {{ open_version == 1 ? 'checked' : '' }} data-am-ucheck> 开发版
</label>
<label class="am-radio-inline">
<input type="radio" name="data[open_version]" value="2" {{ open_version == 2 ? 'checked' : '' }} data-am-ucheck> 体验版
</label>
<label class="am-radio-inline">
<input type="radio" name="data[open_version]" value="3" {{ open_version == 3 ? 'checked' : '' }} data-am-ucheck> 正式版
</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[permit_sub_rule]" value="1" checked data-am-ucheck> 否
</label>
<label class="am-radio-inline">
<input type="radio" name="data[permit_sub_rule]" value="2" data-am-ucheck> 是
</label>
</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('wxapp.qrcode/add'); ?>"
});
},
btn2: function ($content) {
return true;
}
});
});
//编辑
$('.hema-edit').on('click', function () {
var data = $(this).data();
var prefix = data.prefix;
data.prefix = prefix.slice(BASE_URL.length);
$.showAction({
title: '编辑二维码规则',
area: '750px',
content: template('tpl-edit', data),
uCheck: true,
success: function ($content) {
$('#my-form').formPost({
url: "<?php echo url('wxapp.qrcode/edit'); ?>"
});
},
btn2: function ($content) {
return true;
}
});
});
// 切换上架状态
$('.j-status').click(function () {
var data = $(this).data();
var msg = '确定要进行发布操作?';
var url = "<?php echo url('wxapp.qrcode/status'); ?>";
$('.j-status').del('id', url,msg);
});
// 删除元素
var url = "<?php echo url('wxapp.qrcode/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>
<script src="/assets/plugins/vue/vue.min.js?v=<?php echo htmlentities($version); ?>"></script>
</body>
</html>