You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

388 lines
12 KiB
Plaintext

<@compress>
<#escape x as x?html>
<!DOCTYPE html>
<html lang="zh">
<head>
<meta charset="utf-8">
<title>欢迎进入<@spring.message "project.name"/></title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
<link rel="shortcut icon" href="${base}/favicon.ico" type="image/x-icon" />
<link href="${base}/assets/css/bootstrap.css" rel="stylesheet">
<link href="${base}/assets/css/font-awesome.css" rel="stylesheet" />
<link href="${base}/assets/css/prettify.css" rel="stylesheet">
<link rel="stylesheet" href="${base}/assets/css/ace-fonts.css" />
<link rel="stylesheet" href="${base}/assets/css/ace.css" class="ace-main-stylesheet" />
<!--[if lte IE 9]>
<link rel="stylesheet" href="${base}/assets/css/ace-part2.css" class="ace-main-stylesheet" />
<![endif]-->
<link rel="stylesheet" href="${base}/assets/css/ace-skins.css" />
<style>
.navbar {
background: #438EB9 !important;
}
body {
font-size: 14px;
}
.skin-3 .main-container:before {
background: #F6F6F6;
}
.page-content {
padding-top: 10px;
padding-bottom: 20x;
max-width: 900px;
margin: 0 auto;
}
.help-content {
background-color: #FFF;
max-width: 880px;
margin: 0 auto;
padding: 12px 24px;
border:1px solid #C5D0DC;
}
.help-content > .widget-box > .widget-header > .info-title {
cursor: pointer;
}
.help-content > .widget-box > .widget-header > .info-title:hover {
background-color: #DCE8F1;
}
.help-content > .widget-box.collapsed > .widget-header {
border-bottom-width: 0;
}
.help-content > .widget-box {
border-bottom: 1px solid #DCE8F1;
margin-bottom: 10px;
padding-bottom: 5px;
transition: none;
}
.help-content > .widget-box.collapsed {
padding-bottom: 10px;
transition: padding-bottom 0.1s;
}
.help-content > .widget-box:last-child {
border-bottom-width: 0;
margin-bottom: 0;
}
.help-content > .widget-box:only-child {
padding-bottom: 0;
padding-bottom: 5px;
}
.help-more {
color: #4E82A3;
border-bottom: 1px dotted #8BA8BA;
padding: 0 1px 1px;
}
.help-more:hover {
text-decoration: none;
border-bottom-color: #628DB2;
background-color: #E4EAC7;
}
u.dotted {
text-decoration: none;
border-bottom: 1px dotted #999;
}
@media only screen and (min-width: 992px) {
.sidebar {
padding-top: 4px;
}
}
a[href^="http"]:before {
font-family: FontAwesome;
font-size: 15px;
content: "\f08e";
display: inline;
margin-right: 3px;
}
a.external_link[href^="http"]:before {
display: none;
}
pre {
border-width: 0;
box-shadow: none;
border-radius: 0;
margin-top: 8px;
}
.nav-list > li > a > .menu-icon {
font-size: 14px;
}
.nav-list > li > a {
font-size: 14px;
}
</style>
</head>
<body class="no-skin skin-3">
<div id="navbar" class="navbar navbar-default navbar-fixed-top h-navbar">
<div class="navbar-container container" id="navbar-container">
<div class="navbar-header pull-left ace-navbar-brand">
<span class="no-skin">
<button data-target="#sidebar" type="button" class="navbar-toggle menu-toggler pull-left" id="menu-toggler">
<span class="sr-only">Toggle sidebar</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
</span>
<a href="#" class="navbar-brand">
<small>
&nbsp;<i class="ace-icon fa fa-coffee"></i>&nbsp;
<@spring.message "project.name"/> <span class="smaller-75">(V<@spring.message "project.version"/>)</span>
</small>
</a><!-- /.brand -->
</div>
<div class="navbar-header pull-right ace-navbar-buttons">
<ul class="nav ace-nav">
<li class="margin-2 no-border">
<a href="#" id="help-move-prev"><i class="ace-icon fa fa-chevron-left"></i></a>
</li>
<li class="margin-2 no-border">
<a href="#" id="help-move-next"><i class="ace-icon fa fa-chevron-right"></i></a>
</li>
</ul>
</div>
</div>
</div>
<div class="main-container container">
<div class="sidebar responsive sidebar-fixed" id="sidebar">
<ul class="nav nav-list">
<li class="highlight">
<a href="#open/intro">
<span class="menu-icon">001.</span>
<span class="menu-text">平台介绍</span>
</a>
<b class="arrow"></b>
</li>
<li class="highlight">
<a href="#open/changes">
<span class="menu-icon">002.</span>
<span class="menu-text">更新历史</span>
</a>
<b class="arrow"></b>
</li>
<li class="highlight hover">
<a href="#" class="dropdown-toggle">
<span class="menu-icon">003.</span>
<span class="menu-text">开发指南</span>
<b class="arrow fa fa-angle-right"></b>
</a>
<b class="arrow"></b>
<ul class="submenu">
<li class="hover"><a href="#open/message"><i class="menu-icon fa fa-caret-right"></i> 测试说明</a></li>
<li class="hover"><a href="#open/errors"><i class="menu-icon fa fa-caret-right"></i> 全局错误</a></li>
<li class="hover"><a href="#open/sign"><i class="menu-icon fa fa-caret-right"></i> 签名算法</a></li>
<li class="hover"><a href="#open/bus_errors"><i class="menu-icon fa fa-caret-right"></i> 业务错误</a></li>
</ul>
</li>
<li class="highlight hover">
<a href="#" class="dropdown-toggle">
<span class="menu-icon">004.</span>
<span class="menu-text">销售相关(ERP专用)</span>
<b class="arrow fa fa-angle-right"></b>
</a>
<b class="arrow"></b>
<ul class="submenu">
<li class="hover"><a href="#open/store/store_sales_order_list"><i class="menu-icon fa fa-caret-right"></i> 销售订单列表</a></li>
<li class="hover"><a href="#open/store/store_sales_order_create_list"><i class="menu-icon fa fa-caret-right"></i> 销售订单列表(创建时间)</a></li>
</ul>
</li>
</ul>
</div>
<div class="main-content">
<div class="page-content">
</div><!-- /.page-content -->
</div><!-- /.main-content -->
<a href="#" id="btn-scroll-up" class="btn-scroll-up btn btn-sm btn-inverse">
<i class="ace-icon fa fa-angle-double-up icon-only bigger-110"></i>
</a><!-- /.btn-scroll-up -->
</div><!-- /.main-container -->
<!--[if !IE]> -->
<script src="${base}/assets/js/jquery.js"></script>
<!-- <![endif]-->
<!--[if IE]>
<script src="${base}/assets/js/jquery1x.js"></script>
<![endif]-->
<script src="${base}/assets/js/bootstrap.js"></script>
<script src="${base}/assets/js/prettify.js"></script>
<script src="${base}/assets/js/json-formatter.js"></script>
<script src="${base}/assets/js/ace-extra.js"></script>
<script src="${base}/assets/js/ace-elements.js"></script>
<script src="${base}/assets/js/ace.js"></script>
<script>
$(function() {
var section_list = [], section_map = {}, current = 0;
var sindex = 0;
$('.sidebar .nav-list a').each(function() {
var href = getHref($(this).attr('href'));
if(href) {
section_list.push(href);
section_map[href] = sindex++;
}
});
$('#help-move-prev').on('click', function(e) {
e.preventDefault();
if( --current >= 0 ) {
var href = section_list[current];
document.location.hash = href;
}
if(current < 0) current = 0;
});
$('#help-move-next').on('click', function(e) {
e.preventDefault();
if( ++current < section_list.length ) {
var href = section_list[current];
document.location.hash = href;
}
if(current >= section_list.length) current = section_list.length - 1;
});
$(document).on(ace.click_event, '.help-content > .widget-box > .widget-header > .info-title', function(e) {
var widget_box = $(this).closest('.widget-box').widget_box('toggle');
widget_box.siblings('.widget-box').widget_box('hide');
});
function getHref(href) {
href = href && href.replace(/.*(?=#[^\s]*$)/, '') // strip for ie7
href = $.trim(href);
if(href.match(/[\#\/]$/i)) return false;
return href;
}
function scrollToTarget(href) {
target = $('[data-id="'+href+'"]').eq(0);
if(target.length == 1) {
target.closest('.widget-box').widget_box('show');
//if target exists on page scroll to it
$('html,body').animate({scrollTop: target.offset().top - 75} , 300);
if(prev_target) prev_target.find('.fa-angle-right').remove();
if(!target.is('h1')) target.prepend('<i class="fa fa-angle-right red"></i> ');
prev_target = target;
return target.text().replace(/^[\d\s\.]+/ig, '');//convert "4. something" to "something"
}
return false;//section not found, go back and get it via ajax
}
$(window).on('hashchange.help', function(e) {
var href = getHref(window.location.hash);
if(!href) return false;
return gotoUrl(href);
})
$(document).on(ace.click_event+'.help', '.help-more', function(ev) {
var href = $(this).attr('href');
if(window.location.hash == href) gotoUrl(href);
});
var href = getHref(window.location.hash);
if(!href) {
window.location.hash = '#open/intro';
}else{
$(window).triggerHandler('hashchange.help');
}
var prev_target = null;
function gotoUrl(href) {
current = section_map[href];
var url = href.replace(/\..*$/g, '').replace(/#/gi , '')
var parts = url.split('/');
if(parts.length == 1) {
if(url.length == 0) {
url = 'intro';
}
url = 'open/'+url;
}
$('.sidebar .active').removeClass('active');
var link = $('a[href="'+href+'"]').eq(0);
link.parents('li').addClass('active');
var text = $.trim(link.find('.menu-text').text());
if(text.length == 0) text = $.trim(link.text());
document.title = text + " - <@spring.message "project.name"/>";
var ret = scrollToTarget(href);
if(ret === false) {
$('.page-content').empty().html('<i class="ace-icon fa fa-spinner fa-spin blue fa-2x"></i>');
//otherwise try downloading the page
$.ajax({url: '${base}/open/index?page='+url}).done(function(result) {
$('.page-content').addClass('hidden').empty().html(result);
formatResult();
ret = scrollToTarget(href);
if(ret) document.title = ret + " - Ace Docs";
}).fail(function() {
$('.page-content').empty().html('<div class="alert alert-danger"><i class="fa fa-warning"></i> Unable to load page!</div>');
});
}
return true;
}
function formatResult() {
$('.page-content .info-section').each(function() {
var header = $(this).prevAll('.info-title').eq(0).addClass('widget-title').wrap('<div class="widget-header" />')
.parent().append('<div class="widget-toolbar no-border">\
<a href="#" data-action="collapse">\
<i data-icon-hide="fa-minus" data-icon-show="fa-plus" class="ace-icon fa fa-plus"></i>\
</a>\
</div>').closest('.widget-header');
$(this).wrap('<div class="widget-box transparent'+(header.length > 0 ? ' collapsed':'')+'"><div class="widget-body"><div class="widget-main"></div></div></div>');
$(this).closest('.widget-box').prepend(header);
$(this).ace_scroll({size: parseInt($(window).height() - 200), reset: true});
});
$('.page-content').removeClass('hidden');
}
$(document).off(ace.click_event+'.ace.submenu', '.sidebar .nav-list');
$(document).on(ace.click_event+'.ace.submenu', '.sidebar .nav-list a', function(e) {
var href = getHref($(this).attr('href'));
if(!href) return false;
});
$(document).on('click', 'a[href^="http"]', function(ev) {
//go to a url, using meta refresh tag, to avoid sending 'referrer' url,
//maybe because of hiding development server's directory and folders
ev.preventDefault();
var url = $(this).attr('href');
var win = window.open('blank.html');
win.onload = function() {
win.document.write('<meta http-equiv="refresh" content="0; url='+url+'">');
}
});
});
</script>
</body>
</html>
</#escape>
</@compress>