singleSelect.html
1.84 KB
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
<div id="apilist4single" class="page out" data-title="接口列表-单选">
<div class="page-content">
<div id="apilist4single-header"></div>
<div id="apilist4single-a" ></div>
</div>
</div>
<script>
require(["mUtil", "NavHeader", "APIList"], function (mUtil, NavHeader, APIList) {
new NavHeader({
el: "apilist4single-header",
container: "#apilist4single",
option: {
fixed: true,
title: "接口列表插件",
smallTitle: "apilist4single"
}
}).render();
new APIList({
el: "apilist4single-a",
option: {
apiConfig: {
api: {
id: "4ff3c2114b484c9b888c32554c38cc7b",
name: "文档列表"
},
request: {
params: {
query: [
{name: "categoryid", value: ""},
{name: "searchKey", value: "{search_key}"},
{name: "pageNo", value: "{page_no}"},
{name: "pageSize", value: "{page_size}"}
],
body: {}
},
path: "/X-WEV-DocList",
type: "GET"
},
response: {
type: "HTML",
formats: {
DATAS: "datas",
TOTAL_SIZE: "totalSize",
STATUS_CODE: {
key: "status",
value: 1
},
ERROR_MSG: "errMsg"
}
}
},
pageStart: 1,
pageSize: 10,
normalview: {
imgfield: "",
titlefield: "{subject}",
otherfields: [
"{owner}, {createtime}"
]
},
normalSearch: {
hide: false,
tip: ""
},
options: {
readonly: false,
selectable: false, //数据可选
showOnePage: false //显示一页
},
callback: {
click : function(){
Mobile_NS.setAPIBrowser4SingleSelect(this);//单击脚本
}
}
}
}).render();
});
</script>