You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
<!DOCTYPE html>
< html >
< head >
< title > 接口文档< / title >
< meta http-equiv = "Content-Type" content = "text/html; charset=utf-8" / >
< script src = "js/jquery.min.js" type = "text/javascript" > < / script >
< script src = "js/vue.min.js" type = "text/javascript" > < / script >
< link href = "css/index.css" rel = "stylesheet" >
< / head >
< body >
< div id = "app" v-cloak >
< div class = "side" >
< ul >
< li v-for = "(item,index) in list" @ click = "onSelect(item)" >
< a href = "javascript:;" :class = "{'select':item.id==select.id}" >
< span v-if = "item.type == 'api'" style = "color: #3a8ee6" > [A]< / span >
< span v-if = "item.type == 'ajax'" style = "color: #3a8ee6" > [H]< / span >
< span > {{item.title}}< / span >
< / a >
< / li >
< / ul >
< / div >
< div class = "search" >
< input v-model = "searchKey" placeholder = "搜索关键字..." >
< p > 提示: WEB接口(H), API接口(A)< / p >
< / div >
< div class = "body" >
< div class = "api" v-if = "select.title" >
< h3 > {{select.title}}< / h3 >
< h5 > 请求参数< / h5 >
< div class = "wrapper" >
< table >
< tr >
< th width = "200" > 参数< / th >
< th width = "100" > 类型< / th >
< th width = "100" > 必需< / th >
< th > 说明< / th >
< / tr >
< tr v-for = "p in select.reqParams" >
< td > {{p.name}}< / td >
< td > {{p.type}}< / td >
< td v-if = "p.required" style = "color: red" > 是< / td >
< td v-if = "!p.required" > 否< / td >
< td > {{p.note}}< / td >
< / tr >
< / table >
< / div >
< h5 > 响应参数< / h5 >
< div class = "wrapper" >
< table >
< tr >
< th width = "200" > 参数< / th >
< th width = "100" > 类型< / th >
< th > 说明< / th >
< / tr >
< tr v-for = "p in select.rspParams" >
< td v-if = "p.type == 'Object'" > < a href = "#User" > {{p.name}}< / a > < / td >
< td v-if = "p.type != 'Object'" > {{p.name}}< / td >
< td > {{p.type}}< / td >
< td > {{p.note}}< / td >
< / tr >
< / table >
< / div >
< h5 id = "User" > 附录参数(< span class = "object" > User< / span > )< / h5 >
< div class = "wrapper" >
< table >
< tr >
< th width = "200" > 参数< / th >
< th width = "100" > 类型< / th >
< th > 说明< / th >
< / tr >
< tr v-for = "p in select.entParams" >
< td v-if = "p.type == 'Object'" > < a href = "javascript:;" > {{p.name}}< / a > < / td >
< td v-if = "p.type != 'Object'" > {{p.name}}< / td >
< td > {{p.type}}< / td >
< td > {{p.note}}< / td >
< / tr >
< / table >
< / div >
< / div >
< / div >
< / div >
< script src = "js/index.js" type = "text/javascript" > < / script >
< / body >
< / html >