#
Junjie
2024-01-02 cdd2f1ab83a2bfcfbc3e80f0510981d31af84625
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>API开放平台</title>
    <style>
        table {
            background: #fff;
            border: solid 1px #ddd;
            margin-bottom: 1.25rem;
            table-layout: auto
        }
 
        table caption {
            background: transparent;
            color: #222;
            font-size: 1rem;
            font-weight: bold
        }
 
        table thead {
            background: #F5F5F5
        }
 
        table thead tr th,table thead tr td {
            color: #222;
            font-size: 0.875rem;
            font-weight: bold;
            padding: 0.5rem 0.625rem 0.625rem
        }
 
        table tfoot {
            background: #F5F5F5
        }
 
        table tfoot tr th,table tfoot tr td {
            color: #222;
            font-size: 0.875rem;
            font-weight: bold;
            padding: 0.5rem 0.625rem 0.625rem
        }
 
        table tr th,table tr td {
            color: #222;
            font-size: 0.875rem;
            padding: 0.5625rem 0.625rem;
            text-align: left
        }
 
        table tr.even,table tr.alt,table tr:nth-of-type(even) {
            background: #F9F9F9
        }
 
        table thead tr th,table tfoot tr th,table tfoot tr td,table tbody tr th,table tbody tr td,table tr td {
            display: table-cell;
            line-height: 1.125rem
        }
 
        pre {
            white-space: pre-wrap;       /* css-3 */
            white-space: -moz-pre-wrap;  /* Mozilla, since 1999 */
            white-space: -o-pre-wrap;    /* Opera 7 */
            word-wrap: break-word;       /* Internet Explorer 5.5+ */
            background-color: #f8f8f8;
            border: 1px solid #dfdfdf;
            margin-top: 1.5em;
            margin-bottom: 1.5em;
            padding: 0.125rem 0.3125rem 0.0625rem;
        }
 
        pre code {
            background-color: transparent;
            border: 0;
            padding: 0;
        }
 
        #content {
            width: 80%;
            margin-left: 10%;
        }
    </style>
</head>
<body>
    <div id="content"></div>
    <div style="position: fixed;top: 20px;right: 20px;">
        <div><a href="#" onclick="introduceClick()">规范说明</a></div>
        <div><a href="#" onclick="signClick()">签名参数</a></div>
        <div>请求参数</div>
        <div>请求参数</div>
        <div>请求参数</div>
    </div>
    <script type="text/javascript" src="../../static/js/jquery/jquery-3.3.1.min.js"></script>
    <script type="text/javascript" src="../../static/layui/layui.js" charset="utf-8"></script>
    <script type="text/javascript" src="../../static/js/common.js" charset="utf-8"></script>
    <script type="text/javascript" src="../../static/js/cool.js" charset="utf-8"></script>
    <script src="../../static/js/showdown.min.js"></script>
    <script>
        layui.use(['table'], function(){
            var $ = layui.jquery;
            var layer = layui.layer;
        })
 
        showdown.setOption('tables', true);
        var converter = new showdown.Converter()
        introduceClick();
 
        function introduceClick() {
            $.ajax({
                url: "introduce.md",
                headers: {'token': localStorage.getItem('token')},
                method: 'GET',
                success: function (res) {
                    // $("#content").html(marked.parse(res))
                    // console.log(converter.makeHtml(res))
                    $("#content").html(converter.makeHtml(res))
                }
            });
        }
 
        function signClick() {
            layui.layer.open({
                type: 2,
                title: '新增',
                maxmin: true,
                area: [top.detailWidth, top.detailHeight],
                shadeClose: false,
                content: 'generateSign.html',
                success: function(layero, index){
                    layer.getChildFrame('#autoing,#loading,#canining,#canouting,#inreq1,#inreq2,#wrkNo,#barcode,#ctnType,#grossWt', index).parent().parent().hide();
                    layer.getChildFrame('#data-detail-submit-edit', index).hide();
                    clearFormVal(layer.getChildFrame('#detail', index));
                    layer.iframeAuto(index);layer.style(index, {top: (($(window).height()-layer.getChildFrame('#data-detail', index).height())/3)+"px"});
                }
            });
        }
    </script>
</body>
</html>