wuxw
2022-09-19 b0a706ed4d6a81c7da3777b967fa89b611d24751
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
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>api document ui</title>
    <link href='css/bootstrap.min.css'  rel='stylesheet' type='text/css'/>
    <link href='css/vc.css'  rel='stylesheet' type='text/css'/>
    <link href='css/doc-ui.css'  rel='stylesheet' type='text/css'/>
    <script src="js/jquery-3.3.1.min.js"></script>
    <script src="js/bootstrap.min.js"></script>
    <script src='js/vue.min.js' type='text/javascript'></script>
    <script src='js/vue-resource.min.js' type='text/javascript'></script>
 
</head>
<body>
 
<div>
    <div class="flex justify-start" id="component">
        <div class="line-y left white-bg border-radius padding">
            <ul class="nav metismenu" id="side-menu">
                <li class="" style="color: #444;padding: 10px 20px;font-size: 20px;">
                    <div class="dropdown profile-element">
                        <span class="block m-t-xs font-bold">{{docInfo.title}}</span>
                    </div>
                </li>
                <li class="flex justify-around" style="color: #999;padding: 0px 10px;font-size: 14px;width:100%">
                    <div class="">
                        <span class="">作者:</span>
                        <span class="">{{docInfo.company}}</span>
                    </div>
                    <div class="">
                        <span class="">版本:</span>
                        <span class="">{{docInfo.version}}</span>
                    </div>
                </li>
 
                <li class="" style="color: #999;padding: 10px 10px;font-size: 14px;">
                    <div class="dropdown profile-element">
                        <span class="block m-t-xs font-bold">{{docInfo.description}}</span>
                    </div>
                </li>
 
                <li  style="width:100%" :class="{ active: item.active }" v-for="(item,index) in menus" :key="item.name">
                    <a  href="javascript:void(0)" @click="switchMenu(item)">
                        <span class="nav-label" style="color: #777;">{{item.name}}</span>
                    </a>
                    <ul class="nav nav-second-level collapse" :class="{in: item.active}">
                        <li v-for="subMenu in pages" v-if="item.active">
                            <a @click="_gotoPage(subMenu)" style="color: #999;" href="javascript:void(0)">{{subMenu.title}}</a>
                        </li>
                    </ul>
                </li>
            </ul>
        </div>
        <div class="margin-left right white-bg border-radius doc-interface">
            <h3 class="">{{content.title}}</h3>
            <div class="doc-margin-top" >
                <div class="doc-title">1、请求地址:</div>
                <div >{{content.url}}</div>
            </div>
            <div class="doc-margin-top" >
                <div class="doc-title">2、请求方式:</div>
                <div >{{content.method}}</div>
            </div>
            <div class="doc-margin-top" >
                <div class="doc-title">3、请求头信息:</div>
                <div>
                        <table class="table table-bordered">
                            <thead>
                            <tr>
                                <th scope="col">名称</th>
                                <th scope="col">默认值</th>
                                <th scope="col">描述</th>
                            </tr>
                            </thead>
                            <tbody>
                            <tr v-for="(item,index) in content.headers">
                                <th>{{item.name}}</th>
                                <td>{{item.defaultValue}}</td>
                                <td>{{item.description}}</td>
                            </tr>
                            </tbody>
                        </table>
                </div>
            </div>
 
            <div class="doc-margin-top" >
                <div class="doc-title">4、请求信息:</div>
                <div>
                    <table class="table table-bordered">
                        <thead>
                        <tr>
                            <th scope="col">上级</th>
                            <th scope="col">名称</th>
                            <th scope="col">类型</th>
                            <th scope="col">长度</th>
                            <th scope="col">默认值</th>
                            <th scope="col">描述</th>
                        </tr>
                        </thead>
                        <tbody>
                        <tr v-for="(item,index) in content.reqParam">
                            <th>{{item.parentNodeName}}</th>
                            <td>{{item.name}}</td>
                            <td>{{item.type}}</td>
                            <td>{{item.length}}</td>
                            <td>{{item.defaultValue}}</td>
                            <td>{{item.remark}}</td>
                        </tr>
                        </tbody>
                    </table>
                </div>
                <div class="highlight">
                    <div>请求报文:</div>
                    <div>{{content.reqBody}}</div>
                </div>
            </div>
 
            <div class="doc-margin-top" >
                <div class="doc-title">5、返回信息:</div>
                <div>
                    <table class="table table-bordered">
                        <thead>
                        <tr>
                            <th scope="col">上级</th>
                            <th scope="col">名称</th>
                            <th scope="col">类型</th>
                            <th scope="col">长度</th>
                            <th scope="col">默认值</th>
                            <th scope="col">描述</th>
                        </tr>
                        </thead>
                        <tbody>
                        <tr v-for="(item,index) in content.resParam">
                            <th>{{item.parentNodeName}}</th>
                            <td>{{item.name}}</td>
                            <td>{{item.type}}</td>
                            <td>{{item.length}}</td>
                            <td>{{item.defaultValue}}</td>
                            <td>{{item.remark}}</td>
                        </tr>
                        </tbody>
                    </table>
                </div>
            </div>
            <div class="highlight">
                <div>返回报文:</div>
                <div>{{content.resBody}}</div>
            </div>
 
        </div>
 
    </div>
 
 
</div>
<!--<script src="js/vcFramework.js"></script>-->
<script src='js/doc-ui.js' ></script>
</body>
</html>