83 lines
30 KiB
PHP
83 lines
30 KiB
PHP
<?php /*a:6:{s:76:"/www/wwwroot/app.cxhxy.dev.1nww.com/app/applet/view/wxapp/release/index.html";i:1700552721;s:70:"/www/wwwroot/app.cxhxy.dev.1nww.com/app/applet/view/layout/layout.html";i:1700552721;s:79:"/www/wwwroot/app.cxhxy.dev.1nww.com/app/applet/view/wxapp/release/fallback.html";i:1700552721;s:82:"/www/wwwroot/app.cxhxy.dev.1nww.com/app/applet/view/wxapp/release/submitaudit.html";i:1700552721;s:77:"/www/wwwroot/app.cxhxy.dev.1nww.com/app/applet/view/wxapp/release/reason.html";i:1700552721;s:77:"/www/wwwroot/app.cxhxy.dev.1nww.com/app/applet/view/wxapp/release/qrcode.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' : ''; ?>"> <meta name="referrer" content="never">
|
||
<?php if($user['applet']['status']['value'] == 1): if($user['applet']['app_type']): ?>
|
||
<div class="tips am-margin-bottom-sm am-u-sm-12" style="margin-top: 15px;">
|
||
<div class="pre-error">
|
||
在线发布小程序前必须完成初始化配置<br>
|
||
配置项目: 1.小程序头像 2.小程序名称 3.功能介绍 4.服务器域名 5.服务类目 6.隐私设置(按需)
|
||
</div>
|
||
</div>
|
||
<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-form-group">
|
||
<div class="release">
|
||
<?php if(isset($wxapp['release_info'])): ?>
|
||
<div class="am-u-sm-2 am-u-md-2 am-u-lg-2">
|
||
<div class="version">
|
||
<div class="title">版本号</div>
|
||
<div class="number"><?php echo htmlentities($wxapp['release_info']['release_version']); ?></div>
|
||
</div>
|
||
</div>
|
||
<div class="am-u-sm-6 am-u-md-6 am-u-lg-6">
|
||
<div class="detail">
|
||
<div class="line">
|
||
<div class="title">发布时间</div><?php echo htmlentities(date('Y-m-d H:i:s',!is_numeric($wxapp['release_info']['release_time'])? strtotime($wxapp['release_info']['release_time']) : $wxapp['release_info']['release_time'])); ?>
|
||
</div>
|
||
<div class="line">
|
||
<div class="title">项目备注</div><?php echo htmlentities($wxapp['release_info']['release_desc']); ?>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div class="am-u-sm-4 am-u-md-4 am-u-lg-4 am-u-end">
|
||
<div class="but">
|
||
<div class="am-dropdown" data-am-dropdown>
|
||
<button type="button" class="am-btn am-btn-success am-radius am-btn-sm am-dropdown-toggle" data-am-dropdown-toggle>
|
||
<i class="am-icon-chevron-down"></i>
|
||
</button>
|
||
<ul class="am-dropdown-content">
|
||
<li>
|
||
<a href="javascript:;" class="hema-fallback">
|
||
版本回退
|
||
</a>
|
||
</li>
|
||
<?php if(isset($wxapp['status'])): ?>
|
||
<li>
|
||
<a href="javascript:;" class="hema-status"
|
||
data-id="<?php echo htmlentities($wxapp['status']); ?>">
|
||
<?php echo $wxapp['status']==1 ? '暂停服务' : '开启服务'; ?>
|
||
</a>
|
||
</li>
|
||
<?php endif; ?>
|
||
<li>
|
||
<a href="javascript:;" class="hema-line-qrcode">
|
||
线上二维码
|
||
</a>
|
||
</li>
|
||
</ul>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<?php else: ?>
|
||
<div class="nothing">暂无发布上线的版本</div>
|
||
<?php endif; ?>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div class="row-content am-cf" style="margin-top: -15px;">
|
||
<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-form-group">
|
||
<div class="release">
|
||
<?php if(isset($wxapp['audit_status'])): ?>
|
||
<div class="am-u-sm-2 am-u-md-2 am-u-lg-2">
|
||
<div class="version">
|
||
<div class="title">版本号</div>
|
||
<div class="number">
|
||
<?php echo htmlentities($wxapp['audit_status']['user_version']); ?>
|
||
<div class="status
|
||
<?php echo $wxapp['audit_status']['status']==0 ? ' success' : ''; ?>
|
||
<?php echo $wxapp['audit_status']['status']==1 ? ' error' : ''; ?>
|
||
<?php echo $wxapp['audit_status']['status']==2 ? ' warning' : ''; ?>
|
||
<?php echo $wxapp['audit_status']['status']==3 ? ' info' : ''; ?>
|
||
<?php echo $wxapp['audit_status']['status']==4 ? ' warning' : ''; ?>">
|
||
<?php echo $wxapp['audit_status']['status']==0 ? '审核通过待发布' : ''; ?>
|
||
<?php echo $wxapp['audit_status']['status']==1 ? '审核被拒绝' : ''; ?>
|
||
<?php echo $wxapp['audit_status']['status']==2 ? '审核中' : ''; ?>
|
||
<?php echo $wxapp['audit_status']['status']==3 ? '已撤回' : ''; ?>
|
||
<?php echo $wxapp['audit_status']['status']==4 ? '审核延后' : ''; ?>
|
||
</div>
|
||
</div>
|
||
|
||
</div>
|
||
</div>
|
||
<div class="am-u-sm-6 am-u-md-6 am-u-lg-6">
|
||
<div class="detail">
|
||
<div class="line">
|
||
<div class="title">提审时间</div><?php echo htmlentities(date('Y-m-d H:i:s',!is_numeric($wxapp['audit_status']['submit_audit_time'])? strtotime($wxapp['audit_status']['submit_audit_time']) : $wxapp['audit_status']['submit_audit_time'])); ?>
|
||
</div>
|
||
<div class="line">
|
||
<div class="title">项目备注</div><?php echo htmlentities($wxapp['audit_status']['user_desc']); ?>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div class="am-u-sm-4 am-u-md-4 am-u-lg-4 am-u-end">
|
||
<div class="but">
|
||
<?php if($wxapp['audit_status']['status']==0): ?>
|
||
<a href="javascript:;" class="hema-release am-btn am-btn-success am-radius am-btn-sm">
|
||
发布上线
|
||
</a>
|
||
<?php endif; if($wxapp['audit_status']['status']==1): ?>
|
||
<a href="javascript:;" class="hema-reason am-btn am-btn-danger am-radius am-btn-sm"
|
||
data-reason="<?php echo htmlentities($wxapp['audit_status']['reason']); ?>">
|
||
拒绝原因
|
||
</a>
|
||
<?php endif; if($wxapp['audit_status']['status']==2 or $wxapp['audit_status']['status']==4): ?>
|
||
<a href="javascript:;" class="hema-undo-audit am-btn am-btn-warning am-radius am-btn-sm">
|
||
撤回审核
|
||
</a>
|
||
<?php endif; ?>
|
||
</div>
|
||
</div>
|
||
<?php else: ?>
|
||
<div class="nothing">暂无提交审核的版本</div>
|
||
<?php endif; ?>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div class="row-content am-cf" style="margin-top: -15px;">
|
||
<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-form-group">
|
||
<div class="release">
|
||
<?php if(isset($wxapp['exp_info']) and isset($wxapp['code_exp'])): ?>
|
||
<div class="am-u-sm-2 am-u-md-2 am-u-lg-2">
|
||
<div class="version">
|
||
<div class="title">版本号</div>
|
||
<div class="number"><?php echo htmlentities($wxapp['exp_info']['exp_version']); ?></div>
|
||
</div>
|
||
</div>
|
||
<div class="am-u-sm-6 am-u-md-6 am-u-lg-6">
|
||
<div class="detail">
|
||
<div class="line">
|
||
<div class="title">提交时间</div><?php echo htmlentities(date('Y-m-d H:i:s',!is_numeric($wxapp['exp_info']['exp_time'])? strtotime($wxapp['exp_info']['exp_time']) : $wxapp['exp_info']['exp_time'])); ?>
|
||
</div>
|
||
<div class="line">
|
||
<div class="title">项目备注</div><?php echo htmlentities($wxapp['exp_info']['exp_desc']); ?>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div class="am-u-sm-4 am-u-md-4 am-u-lg-4 am-u-end">
|
||
<div class="but">
|
||
<?php if(!isset($wxapp['code_release']) or (isset($wxapp['code_release']) and $wxapp['code_exp']['template_code_id'] > $wxapp['code_release']['template_code_id'])): ?>
|
||
<a href="javascript:;" class="hema-submit-audit am-btn am-btn-success am-radius am-btn-sm"
|
||
data-version="<?php echo htmlentities($wxapp['exp_info']['exp_version']); ?>"
|
||
data-desc="<?php echo htmlentities($wxapp['exp_info']['exp_desc']); ?>">
|
||
提交审核
|
||
</a>
|
||
<div class="am-dropdown" data-am-dropdown>
|
||
<button type="button" class="am-btn am-btn-success am-radius am-btn-sm am-dropdown-toggle" data-am-dropdown-toggle>
|
||
<i class="am-icon-chevron-down"></i>
|
||
</button>
|
||
<ul class="am-dropdown-content">
|
||
<li>
|
||
<a href="javascript:;" class="hema-trial-qrcode">
|
||
体验二维码
|
||
</a>
|
||
</li>
|
||
</ul>
|
||
</div>
|
||
<?php else: ?>
|
||
<a href="javascript:;" class="hema-trial-qrcode am-btn am-btn-default am-radius am-btn-sm">
|
||
体验二维码
|
||
</a>
|
||
<?php endif; ?>
|
||
</div>
|
||
</div>
|
||
<?php else: ?>
|
||
<div class="nothing">暂未发布体验版本</div>
|
||
<?php endif; ?>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div class="row-content am-cf" style="margin-top: -15px;">
|
||
<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-form-group">
|
||
<div class="release">
|
||
<?php if(isset($wxapp['code_new'])): if(!isset($wxapp['code_exp']) or (isset($wxapp['code_exp']) and $wxapp['code_new']['template_code_id'] > $wxapp['code_exp']['template_code_id'])): ?>
|
||
<div class="am-u-sm-2 am-u-md-2 am-u-lg-2">
|
||
<div class="version">
|
||
<div class="title">版本号</div>
|
||
<div class="number"><?php echo htmlentities($wxapp['code_new']['user_version']); ?></div>
|
||
</div>
|
||
</div>
|
||
<div class="am-u-sm-6 am-u-md-6 am-u-lg-6">
|
||
<div class="detail">
|
||
<div class="line">
|
||
<div class="title">推送时间</div><?php echo htmlentities(date('Y-m-d H:i:s',!is_numeric($wxapp['code_new']['create_time'])? strtotime($wxapp['code_new']['create_time']) : $wxapp['code_new']['create_time'])); ?>
|
||
</div>
|
||
<div class="line">
|
||
<div class="title">项目备注</div><?php echo htmlentities($wxapp['code_new']['user_desc']); ?>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div class="am-u-sm-4 am-u-md-4 am-u-lg-4 am-u-end">
|
||
<div class="but">
|
||
<a href="javascript:;" class="hema-commit am-btn am-btn-success am-radius am-btn-sm"
|
||
data-id="<?php echo htmlentities($wxapp['code_new']['template_code_id']); ?>">
|
||
设为体验版
|
||
</a>
|
||
</div>
|
||
</div>
|
||
<?php else: ?>
|
||
<div class="nothing">当前体验版本已是最新版本</div>
|
||
<?php endif; else: ?>
|
||
<div class="nothing">平台未推送模板,请联系平台管理员</div>
|
||
<?php endif; ?>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<?php else: ?>
|
||
<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="tips am-margin-bottom-sm am-u-sm-12">
|
||
<div class="pre-info">
|
||
<p>小程序行业模板为自定义,无法在线管理,请自行通过开发者工具进行发布上线</p>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<?php endif; else: ?>
|
||
<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="tips am-margin-bottom-sm am-u-sm-12">
|
||
<div class="pre-error">
|
||
<?php echo $user['applet']['app_id']=='' ? '未授权绑定小程序' : '非授权模式,无操作权限'; ?>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<?php endif; ?>
|
||
<script id="tpl-fallback" type="text/template">
|
||
|
||
|
||
<div class="am-padding-xs am-padding-top-sm">
|
||
|
||
|
||
<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>
|
||
|
||
|
||
</tr>
|
||
|
||
|
||
</thead>
|
||
|
||
|
||
<tbody>
|
||
|
||
|
||
{{ if (list.length>0) }}
|
||
|
||
|
||
{{each list}}
|
||
|
||
|
||
<tr>
|
||
|
||
|
||
<td class="am-text-middle">
|
||
|
||
|
||
<label class="am-radio-inline">
|
||
|
||
|
||
<input type="radio" name="data[app_version]" value="{{ $value.app_version }}" {{ $index==0?'checked':'' }} data-am-ucheck>
|
||
|
||
|
||
{{ $value.user_version }}
|
||
|
||
|
||
</label>
|
||
|
||
|
||
</td>
|
||
|
||
|
||
<td class="am-text-middle">{{ $value.user_desc }}</td>
|
||
|
||
|
||
<td class="am-text-middle">{{ $value.commit_time }}</td>
|
||
|
||
|
||
</tr>
|
||
|
||
|
||
{{/each}}
|
||
|
||
|
||
{{ else /}}
|
||
|
||
|
||
<tr>
|
||
|
||
|
||
<td colspan="3" class="am-text-center">暂无版本记录</td>
|
||
|
||
|
||
</tr>
|
||
|
||
|
||
{{ /if }}
|
||
|
||
|
||
</tbody>
|
||
|
||
|
||
</table>
|
||
|
||
|
||
</div>
|
||
|
||
|
||
</div>
|
||
|
||
|
||
</script>
|
||
<script id="tpl-submitaudit" 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" value="{{ version }}" 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" value="{{ desc }}" 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">
|
||
|
||
|
||
|
||
<label class="am-radio-inline">
|
||
|
||
|
||
|
||
<input type="radio" name="data[speedup]" value="0" data-am-ucheck checked>
|
||
|
||
|
||
|
||
否
|
||
|
||
|
||
|
||
</label>
|
||
|
||
|
||
|
||
<label class="am-radio-inline">
|
||
|
||
|
||
|
||
<input type="radio" name="data[speedup]" value="1" data-am-ucheck>
|
||
|
||
|
||
|
||
是
|
||
|
||
|
||
|
||
</label>
|
||
|
||
|
||
|
||
<div class="help-block">
|
||
|
||
|
||
|
||
<small>每年有3次审核加急机会,暂时无法计算是否有剩余的加急提审数量</small>
|
||
|
||
|
||
|
||
</div>
|
||
|
||
|
||
|
||
</div>
|
||
|
||
|
||
|
||
</div>
|
||
|
||
|
||
|
||
<!-- 事件功能 -->
|
||
|
||
|
||
|
||
<div class="am-modal am-modal-loading am-modal-no-btn" tabindex="-1" id="my-modal-loading"></div>
|
||
|
||
|
||
|
||
</div>
|
||
|
||
|
||
|
||
</script>
|
||
<script id="tpl-reason" type="text/template">
|
||
|
||
|
||
<div class="am-padding-xs am-padding-top-sm">
|
||
|
||
|
||
<div class="am-u-sm-12">
|
||
|
||
|
||
{{ reason }}
|
||
|
||
|
||
</div>
|
||
|
||
|
||
</div>
|
||
|
||
|
||
</script>
|
||
<script id="tpl-qrcode" type="text/template">
|
||
|
||
|
||
<div class="release am-padding-xs am-padding-top-sm">
|
||
|
||
|
||
<div class="am-u-sm-12">
|
||
|
||
|
||
<div class="qrcode">
|
||
|
||
|
||
<img src="{{ path }}" />
|
||
|
||
|
||
</div>
|
||
|
||
|
||
</div>
|
||
|
||
|
||
</div>
|
||
|
||
|
||
</script>
|
||
<script>
|
||
$(function () {
|
||
|
||
//版本回退
|
||
$('.hema-fallback').on('click', function () {
|
||
$.get("<?php echo url('wxapp.release/fallback'); ?>", function (result) {
|
||
if(result.code == 0){
|
||
$.show_error(result.msg);
|
||
return false;
|
||
}
|
||
$.showAction({
|
||
title: '小程序版本回退',
|
||
area: '750px',
|
||
content: template('tpl-fallback', {list:result.data.list}),
|
||
uCheck: true,
|
||
success: function ($content) {
|
||
$('#my-form').formPost({
|
||
url: "<?php echo url('wxapp.release/fallback'); ?>"
|
||
});
|
||
},
|
||
btn2: function ($content) {
|
||
return true;
|
||
}
|
||
});
|
||
});
|
||
});
|
||
|
||
// 切换状态
|
||
$('.hema-status').click(function () {
|
||
var data = $(this).data();
|
||
var msg = '确定要'+(parseInt(data.id) === 1 ? '暂停' : '开启')+'服务?';
|
||
var url = "<?php echo url('wxapp.release/status'); ?>";
|
||
$('.hema-status').del('id', url,msg);
|
||
});
|
||
//拒绝原因
|
||
$('.hema-reason').on('click', function () {
|
||
var data = $(this).data();
|
||
$.showAction({
|
||
title: '拒绝原因',
|
||
area: '750px',
|
||
btn: ['关闭'],
|
||
content: template('tpl-reason', data),
|
||
uCheck: true,
|
||
success: function ($content) {
|
||
|
||
},
|
||
btn2: function ($content) {
|
||
return true;
|
||
}
|
||
});
|
||
});
|
||
//发布已通过审核的小程序
|
||
$('.hema-release').click(function () {
|
||
var msg = '确定要发布已通过审核的小程序代码?';
|
||
var url = "<?php echo url('wxapp.release/release'); ?>";
|
||
$('.hema-release').del('id', url,msg);
|
||
});
|
||
//获取体验版二维码
|
||
$('.hema-line-qrcode').on('click', function () {
|
||
var path = "<?php echo htmlentities($user['applet']['qrcode_url']); ?>";
|
||
$.showAction({
|
||
title: '线上版二维码',
|
||
area: '350px',
|
||
btn: ['关闭'],
|
||
content: template('tpl-qrcode', {path:path}),
|
||
uCheck: true,
|
||
success: function ($content) {
|
||
|
||
},
|
||
btn2: function ($content) {
|
||
return true;
|
||
}
|
||
});
|
||
});
|
||
//撤回代码审核
|
||
$('.hema-undo-audit').click(function () {
|
||
var msg = '确定要撤回审核中的代码?';
|
||
var url = "<?php echo url('wxapp.release/undoAudit'); ?>";
|
||
$('.hema-undo-audit').del('id', url,msg);
|
||
});
|
||
|
||
// 提交代码审核
|
||
$('.hema-submit-audit').click(function () {
|
||
var data = $(this).data();
|
||
$.showAction({
|
||
title: '提交代码审核',
|
||
area: '750px',
|
||
content: template('tpl-submitaudit', data),
|
||
uCheck: true,
|
||
success: function ($content) {
|
||
$('#my-form').formPost({
|
||
url: "<?php echo url('wxapp.release/submitAudit'); ?>"
|
||
});
|
||
},
|
||
btn2: function ($content) {
|
||
return true;
|
||
}
|
||
});
|
||
});
|
||
//获取体验版二维码
|
||
$('.hema-trial-qrcode').on('click', function () {
|
||
$.get("<?php echo url('wxapp.release/trialQrcode'); ?>", function (result) {
|
||
if(result.code == 0){
|
||
$.show_error(result.msg);
|
||
return false;
|
||
}
|
||
$.showAction({
|
||
title: '体验版二维码',
|
||
area: '350px',
|
||
btn: ['关闭'],
|
||
content: template('tpl-qrcode', {path:result.data.path}),
|
||
uCheck: true,
|
||
success: function ($content) {
|
||
|
||
},
|
||
btn2: function ($content) {
|
||
return true;
|
||
}
|
||
});
|
||
});
|
||
});
|
||
// 上传代码并生成体验版
|
||
$('.hema-commit').click(function () {
|
||
var msg = '确定要上传代码并生成体验版本?';
|
||
var url = "<?php echo url('wxapp.release/commit'); ?>";
|
||
$('.hema-commit').del('id', url,msg);
|
||
});
|
||
});
|
||
</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>
|
||
|