439 lines
30 KiB
PHP
Executable File
439 lines
30 KiB
PHP
Executable File
<?php /*a:6:{s:68:"/www/wwwroot/app.cxhxy.dev.1nww.com/app/applet/view/wxapp/index.html";i:1700552721;s:70:"/www/wwwroot/app.cxhxy.dev.1nww.com/app/applet/view/layout/layout.html";i:1700552721;s:53:"../addons/upload/view/template/tpl_file_item_url.html";i:1700552721;s:48:"../addons/upload/view/template/file_library.html";i:1700552721;s:67:"/www/wwwroot/app.cxhxy.dev.1nww.com/app/applet/view/wxapp/init.html";i:1700552721;s:70:"/www/wwwroot/app.cxhxy.dev.1nww.com/app/applet/view/wxapp/sethead.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">
|
||
<?php if($model['app_id'] == ''): ?>
|
||
<div class="widget-head am-cf">
|
||
<div class="widget-title am-fl">绑定微信小程序</div>
|
||
</div>
|
||
<div class="widget-body am-cf" style="padding-bottom: 20px;">
|
||
<div style="background:#eeeeee;margin-left:100px;border-radius:10px;padding:20px;" class="am-u-sm-6 am-u-md-6 am-u-lg-3">
|
||
<div style="text-align:center;font-weight: 900;">我已有微信小程序</div>
|
||
<div style="margin-top:20px;text-align:center;">
|
||
<a class="am-btn am-btn-default am-btn-success am-radius" href="<?php echo htmlentities($url); ?>">
|
||
扫码绑定
|
||
</a>
|
||
</div>
|
||
<div style="margin-top:20px;text-align:center;color:#999;">
|
||
<small>
|
||
<?php echo $model['template']['value']==0 ? '授权需取消“小程序开发与数据分析”权限' : '授权时不要取消任何一项权限集'; ?>
|
||
</small>
|
||
</div>
|
||
</div>
|
||
<?php if($model['template']['value'] == 0): ?>
|
||
<div style="background:#eeeeee;margin-left:100px;border-radius:10px;padding:20px;" class="am-u-sm-6 am-u-md-6 am-u-lg-3">
|
||
<div style="text-align:center;font-weight: 900;">我已有微信小程序</div>
|
||
<div style="margin-top:20px;text-align:center;">
|
||
<span class="hema-init am-btn am-btn-default am-btn-success am-radius">
|
||
手动设置
|
||
</span>
|
||
</div>
|
||
<div style="margin-top:20px;text-align:center;color:#999;">
|
||
<small>手动配置小程序参数</small>
|
||
</div>
|
||
</div>
|
||
<?php endif; ?>
|
||
<div style="background:#eeeeee;margin-left:100px;border-radius:10px;padding:20px;" class="am-u-sm-6 am-u-md-6 am-u-lg-3">
|
||
<div style="text-align:center;font-weight: 900;">
|
||
<?php if(!$apply): ?>
|
||
我还没有微信小程序
|
||
<?php else: if($apply['pay_status']['value']==10): ?>
|
||
现在状态:<code>待付审核费</code>
|
||
<?php else: ?>
|
||
现在状态:<code><?php echo htmlentities($apply['apply_status']['text']); ?></code>
|
||
<?php endif; ?>
|
||
<?php endif; ?>
|
||
</div>
|
||
<div style="margin-top:20px;text-align:center;">
|
||
<a class="am-btn am-btn-default am-btn-success am-radius" href="<?php echo url('wxapp.register/wxapp'); ?>">
|
||
<?php echo !empty($apply) ? '查看详情' : '快速注册'; ?>
|
||
</a>
|
||
</div>
|
||
<div style="margin-top:20px;text-align:center;color:#999;">
|
||
<small>快速注册并认证小程序</small>
|
||
</div>
|
||
</div>
|
||
<div style="" class="am-u-sm-6 am-u-md-6 am-u-lg-3"></div>
|
||
</div>
|
||
<?php else: ?>
|
||
<form id="my-app" class="am-form tpl-form-line-form" method="post">
|
||
<div class="widget-head am-cf">
|
||
<div class="widget-title am-fl">微信小程序设置</div>
|
||
</div>
|
||
<!--授权模式-->
|
||
<?php if($model['status']['value'] == 1): ?>
|
||
<div class="tips am-margin-bottom-sm am-u-sm-12">
|
||
<?php if($model['app_type'] == ''): ?>
|
||
<div class="pre-error"> 自定义模板为线下发布小程序,授权项必须取消“小程序开发与数据分析”权限,否则无法进行线下发布小程序
|
||
</div>
|
||
<?php endif; ?>
|
||
</div>
|
||
<div class="widget-body am-cf">
|
||
<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-9 am-u-end">
|
||
<div class="am-btn-group am-btn-group-xs">
|
||
<a href="javascript:;" class="item-synchronization am-btn am-btn-default am-btn-secondary am-radius" data-id="<?php echo htmlentities($model['app_id']); ?>">
|
||
<span class="am-icon-refresh am-icon-sm"></span> 一键同步
|
||
</a>
|
||
</div>
|
||
</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">
|
||
<img style="border-radius: 50%;" src="<?php echo htmlentities($model['head_img']); ?>" width="72" height="72" alt="微信小程序头像">
|
||
<div class="help-block am-margin-top-sm">
|
||
<small>
|
||
<?php if(isset($infor['head_image_info'])): ?>
|
||
每月可修改<?php echo htmlentities($infor['head_image_info']['modify_quota']); ?>次,
|
||
本月还可修改<?php echo htmlentities($infor['head_image_info']['modify_quota']-$infor['head_image_info']['modify_used_count']); ?>次。
|
||
<?php endif; ?>
|
||
<a href="javascript:void(0);" class="hema-set-head">修改</a>
|
||
</small>
|
||
</div>
|
||
</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">
|
||
<input type="text" class="tpl-form-input" value="<?php echo htmlentities($model['app_name']); ?>" disabled="disabled">
|
||
<small>友情提醒:名称设置后不可修改<a href="<?php echo url('wxapp.name/setting'); ?>">设置</a></small>
|
||
</div>
|
||
</div>
|
||
<div class="am-form-group">
|
||
<label class="am-u-sm-3 am-u-lg-2 am-form-label">
|
||
AppId <span class="tpl-form-line-small-title">小程序Id</span>
|
||
</label>
|
||
<div class="am-u-sm-9 am-u-end">
|
||
<input type="text" class="tpl-form-input" value="<?php echo htmlentities($model['app_id']); ?>" disabled="disabled">
|
||
</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[signature]" value="<?php echo htmlentities($model['signature']); ?>" required>
|
||
<small>
|
||
<?php if(isset($infor['signature_info'])): ?>
|
||
每月可修改<?php echo htmlentities($infor['signature_info']['modify_quota']); ?>次,
|
||
本月还可修改<?php echo htmlentities($infor['signature_info']['modify_quota']-$infor['signature_info']['modify_used_count']); ?>次。
|
||
<?php endif; ?>
|
||
</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="text" class="tpl-form-input" name="data[api_domain]" value="<?php echo htmlentities($model['api_domain']); ?>" required>
|
||
<small>
|
||
请确保上面域名列表至少有一个在下方域名列表中,多个以“;”隔开,否则无法正常使用小程序。<br>
|
||
最新域名列表:<?php echo htmlentities($model['serve_domain']); ?>
|
||
</small>
|
||
</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">
|
||
<input type="text" class="tpl-form-input" name="data[webview_domain]" value="<?php echo htmlentities($model['webview_domain']); ?>">
|
||
<small>
|
||
非必须设置项,多个以“;”分号隔开,设置格式如:www.baidu.com。<br>
|
||
域名前面不要加“https://”协议头,后面不要加“/”斜杠
|
||
</small>
|
||
</div>
|
||
</div>
|
||
</fieldset>
|
||
</div>
|
||
<?php else: ?>
|
||
<div class="widget-body am-cf">
|
||
<fieldset>
|
||
<div class="am-form-group">
|
||
<label class="am-u-sm-3 am-u-lg-2 am-form-label form-require">小程序 <span class="tpl-form-line-small-title">头像</span></label>
|
||
<div class="am-u-sm-9 am-u-end">
|
||
<div class="am-form-file">
|
||
<button type="button" class="upload-file am-btn am-btn-secondary am-radius am-btn-sm">
|
||
<i class="am-icon-cloud-upload" style="color:#fff"></i>选择图片
|
||
</button>
|
||
<div class="uploader-list am-cf">
|
||
<div class="file-item">
|
||
<a href="<?php echo htmlentities($model['head_img']); ?>" title="点击查看大图" target="_blank">
|
||
<img src="<?php echo htmlentities($model['head_img']); ?>">
|
||
</a>
|
||
<input type="hidden" name="data[head_img]"
|
||
value="<?php echo htmlentities($model['head_img']); ?>">
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div class="help-block am-margin-top-sm">
|
||
<small>建议尺寸200*200px,大小2M以下</small>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div class="am-form-group">
|
||
<label class="am-u-sm-3 am-u-lg-2 am-form-label form-require">小程序 <span class="tpl-form-line-small-title">名称</span> </label>
|
||
<div class="am-u-sm-9 am-u-end">
|
||
<input type="text" class="tpl-form-input" name="data[app_name]" value="<?php echo htmlentities($model['app_name']); ?>" required>
|
||
</div>
|
||
</div>
|
||
<div class="am-form-group">
|
||
<label class="am-u-sm-3 am-u-lg-2 am-form-label form-require">
|
||
AppId <span class="tpl-form-line-small-title">小程序Id</span>
|
||
</label>
|
||
<div class="am-u-sm-9 am-u-end">
|
||
<input type="text" class="tpl-form-input" name="data[app_id]" value="<?php echo htmlentities($model['app_id']); ?>" required>
|
||
</div>
|
||
</div>
|
||
<div class="am-form-group">
|
||
<label class="am-u-sm-3 am-u-lg-2 am-form-label form-require">
|
||
App_Secret <span class="tpl-form-line-small-title">小程序秘钥</span>
|
||
</label>
|
||
<div class="am-u-sm-9 am-u-end">
|
||
<input type="text" class="tpl-form-input" name="data[app_secret]" value="<?php echo htmlentities($model['app_secret']); ?>" required>
|
||
</div>
|
||
</div>
|
||
</fieldset>
|
||
</div>
|
||
<?php endif; ?>
|
||
<div class="widget-body am-cf">
|
||
<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>
|
||
</div>
|
||
</form>
|
||
<?php endif; ?>
|
||
</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 id="tpl-init" 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[app_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">
|
||
|
||
AppId <span class="tpl-form-line-small-title">小程序Id</span>
|
||
|
||
</label>
|
||
|
||
<div class="am-u-sm-9 am-u-end">
|
||
|
||
<input type="text" class="tpl-form-input" name="data[app_id]" value="" required>
|
||
|
||
</div>
|
||
|
||
</div>
|
||
|
||
<div class="am-form-group">
|
||
|
||
<label class="am-u-sm-3 am-u-lg-2 am-form-label form-require">
|
||
|
||
App_Secret <span class="tpl-form-line-small-title">小程序秘钥</span>
|
||
|
||
</label>
|
||
|
||
<div class="am-u-sm-9 am-u-end">
|
||
|
||
<input type="text" class="tpl-form-input" name="data[app_secret]" value="" required>
|
||
|
||
</div>
|
||
|
||
</div>
|
||
|
||
</div>
|
||
|
||
</script>
|
||
<script id="tpl-set-head" 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">
|
||
<div class="am-form-file">
|
||
<button type="button"
|
||
class="upload-file-set-head am-btn am-btn-secondary am-btn-xs 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($model['head_img']); ?>" width="72" height="72" alt="">
|
||
<input type="hidden" name="data[head_img]" value="<?php echo htmlentities($model['head_img']); ?>">
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div class="help-block am-margin-top-sm">
|
||
<small>大小2M以下</small>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</script>
|
||
<script>
|
||
|
||
$(function () {
|
||
//修改头像
|
||
$('.hema-set-head').on('click', function () {
|
||
var data = $(this).data();
|
||
$.get("<?php echo url('wxapp/sethead'); ?>", function (result) {
|
||
if(result.code == 0){
|
||
$.show_error(result.msg);
|
||
return false;
|
||
}
|
||
$.showAction({
|
||
title: '小程序头像设置',
|
||
area: '750px',
|
||
content: template('tpl-set-head', {model:result.data.model}),
|
||
uCheck: true,
|
||
success: function ($content) {
|
||
// 选择图片
|
||
$('.upload-file-set-head').selectImages({
|
||
name: 'data[head_img]'
|
||
});
|
||
$('#my-form').formPost({
|
||
url: "<?php echo url('wxapp/sethead'); ?>"
|
||
});
|
||
},
|
||
btn2: function ($content) {
|
||
return true;
|
||
}
|
||
});
|
||
});
|
||
});
|
||
//添加
|
||
$('.hema-init').on('click', function () {
|
||
$.showAction({
|
||
title: '添加',
|
||
area: '750px',
|
||
content: template('tpl-init', {}),
|
||
uCheck: true,
|
||
success: function ($content) {
|
||
$('#my-form').formPost({
|
||
url: "<?php echo url('wxapp/index'); ?>"
|
||
});
|
||
},
|
||
btn2: function ($content) {
|
||
return true;
|
||
}
|
||
});
|
||
});
|
||
// 选择图片
|
||
$('.upload-file').selectImages({
|
||
name: 'data[head_img]'
|
||
});
|
||
// 同步设置
|
||
var url = "<?php echo url('wxapp/synchronization'); ?>";
|
||
$('.item-synchronization').del('app_id', url,'确定要同步吗?');
|
||
$('#my-app').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>
|
||
|
||
<script src="/assets/plugins/vue/vue.min.js?v=<?php echo htmlentities($version); ?>"></script>
|
||
|
||
</body>
|
||
|
||
</html>
|
||
|