index.html 33 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7. <meta name="description" content="">
  8. <title>{$config.title}</title>
  9. <!-- Bootstrap Core CSS -->
  10. <link href="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
  11. <!-- Plugin CSS -->
  12. <link href="https://cdn.staticfile.org/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
  13. <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
  14. <!--[if lt IE 9]>
  15. <script src="https://cdn.staticfile.org/html5shiv/3.7.3/html5shiv.min.js"></script>
  16. <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
  17. <![endif]-->
  18. <style type="text/css">
  19. body {
  20. padding-top: 70px; margin-bottom: 15px;
  21. -webkit-font-smoothing: antialiased;
  22. -moz-osx-font-smoothing: grayscale;
  23. font-family: "Roboto", "SF Pro SC", "SF Pro Display", "SF Pro Icons", "PingFang SC", BlinkMacSystemFont, -apple-system, "Segoe UI", "Microsoft Yahei", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", "Helvetica", "Arial", sans-serif;
  24. font-weight: 400;
  25. }
  26. h2 { font-size: 1.2em; }
  27. hr { margin-top: 10px; }
  28. .tab-pane { padding-top: 10px; }
  29. .mt0 { margin-top: 0px; }
  30. .footer { font-size: 12px; color: #666; }
  31. .docs-list .label { display: inline-block; min-width: 65px; padding: 0.3em 0.6em 0.3em; }
  32. .string { color: green; }
  33. .number { color: darkorange; }
  34. .boolean { color: blue; }
  35. .null { color: magenta; }
  36. .key { color: red; }
  37. .popover { max-width: 400px; max-height: 400px; overflow-y: auto;}
  38. .list-group.panel > .list-group-item {
  39. }
  40. .list-group-item:last-child {
  41. border-radius:0;
  42. }
  43. h4.panel-title a {
  44. font-weight:normal;
  45. font-size:14px;
  46. }
  47. h4.panel-title a .text-muted {
  48. font-size:12px;
  49. font-weight:normal;
  50. font-family: 'Verdana';
  51. }
  52. #sidebar {
  53. width: 220px;
  54. position: fixed;
  55. margin-left: -240px;
  56. overflow-y:auto;
  57. }
  58. #sidebar > .list-group {
  59. margin-bottom:0;
  60. }
  61. #sidebar > .list-group > a{
  62. text-indent:0;
  63. }
  64. #sidebar .child > a .tag{
  65. position: absolute;
  66. right: 10px;
  67. top: 11px;
  68. }
  69. #sidebar .child > a .pull-right{
  70. margin-left:3px;
  71. }
  72. #sidebar .child {
  73. border:1px solid #ddd;
  74. border-bottom:none;
  75. }
  76. #sidebar .child:last-child {
  77. border-bottom:1px solid #ddd;
  78. }
  79. #sidebar .child > a {
  80. border:0;
  81. min-height: 40px;
  82. }
  83. #sidebar .list-group a.current {
  84. background:#f5f5f5;
  85. }
  86. @media (max-width: 1620px){
  87. #sidebar {
  88. margin:0;
  89. }
  90. #accordion {
  91. padding-left:235px;
  92. }
  93. }
  94. @media (max-width: 768px){
  95. #sidebar {
  96. display: none;
  97. }
  98. #accordion {
  99. padding-left:0px;
  100. }
  101. }
  102. .label-primary {
  103. background-color: #248aff;
  104. }
  105. .docs-list .panel .panel-body .table {
  106. margin-bottom: 0;
  107. }
  108. </style>
  109. </head>
  110. <body>
  111. <!-- Fixed navbar -->
  112. <div class="navbar navbar-default navbar-fixed-top" role="navigation">
  113. <div class="container">
  114. <div class="navbar-header">
  115. <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
  116. <span class="sr-only">Toggle navigation</span>
  117. <span class="icon-bar"></span>
  118. <span class="icon-bar"></span>
  119. <span class="icon-bar"></span>
  120. </button>
  121. <a class="navbar-brand" href="./" target="_blank">{$config.title}</a>
  122. </div>
  123. <div class="navbar-collapse collapse">
  124. <form class="navbar-form navbar-right">
  125. <div class="form-group">
  126. Token:
  127. </div>
  128. <div class="form-group">
  129. <input type="text" class="form-control input-sm" data-toggle="tooltip" title="{$lang.Tokentips}" placeholder="token" id="token" />
  130. </div>
  131. <div class="form-group">
  132. Apiurl:
  133. </div>
  134. <div class="form-group">
  135. <input id="apiUrl" type="text" class="form-control input-sm" data-toggle="tooltip" title="{$lang.Apiurltips}" placeholder="https://api.mydomain.com" value="{$config.apiurl}" />
  136. </div>
  137. <div class="form-group">
  138. <button type="button" class="btn btn-success btn-sm" data-toggle="tooltip" title="{$lang.Savetips}" id="save_data">
  139. <span class="glyphicon glyphicon-floppy-disk" aria-hidden="true"></span>
  140. </button>
  141. </div>
  142. </form>
  143. </div><!--/.nav-collapse -->
  144. </div>
  145. </div>
  146. <div class="container">
  147. <!-- menu -->
  148. <div id="sidebar">
  149. <div class="list-group panel">
  150. {foreach name="docsList" id="docs"}
  151. <a href="#{$key}" class="list-group-item" data-toggle="collapse" data-parent="#sidebar">{$key} <i class="fa fa-caret-down"></i></a>
  152. <div class="child collapse" id="{$key}">
  153. {foreach name="docs" id="api" }
  154. <a href="javascript:;" data-id="{$api.id}" class="list-group-item">{$api.title}
  155. <span class="tag">
  156. {if $api.needRight}
  157. <span class="label label-danger pull-right">鉴</span>
  158. {/if}
  159. {if $api.needLogin}
  160. <span class="label label-success pull-right noneedlogin">登</span>
  161. {/if}
  162. </span>
  163. </a>
  164. {/foreach}
  165. </div>
  166. {/foreach}
  167. </div>
  168. </div>
  169. <div class="panel-group docs-list" id="accordion">
  170. {foreach name="docsList" id="docs"}
  171. <h2>{$key}</h2>
  172. <hr>
  173. {foreach name="docs" id="api" }
  174. <div class="panel panel-default">
  175. <div class="panel-heading" id="heading-{$api.id}">
  176. <h4 class="panel-title">
  177. <span class="label {$api.methodLabel}">{$api.method|strtoupper}</span>
  178. <a data-toggle="collapse" data-parent="#accordion{$api.id}" href="#collapseOne{$api.id}"> {$api.title} <span class="text-muted">{$api.route}</span></a>
  179. </h4>
  180. </div>
  181. <div id="collapseOne{$api.id}" class="panel-collapse collapse">
  182. <div class="panel-body">
  183. <!-- Nav tabs -->
  184. <ul class="nav nav-tabs" id="doctab{$api.id}">
  185. <li class="active"><a href="#info{$api.id}" data-toggle="tab">{$lang.Info}</a></li>
  186. <li><a href="#sandbox{$api.id}" data-toggle="tab">{$lang.Sandbox}</a></li>
  187. <li><a href="#sample{$api.id}" data-toggle="tab">{$lang.Sampleoutput}</a></li>
  188. </ul>
  189. <!-- Tab panes -->
  190. <div class="tab-content">
  191. <div class="tab-pane active" id="info{$api.id}">
  192. <div class="well">
  193. {$api.summary}
  194. </div>
  195. <div class="panel panel-default">
  196. <div class="panel-heading"><strong>{$lang.Authorization}</strong></div>
  197. <div class="panel-body">
  198. <table class="table table-hover">
  199. <tbody>
  200. <tr>
  201. <td>{$lang.NeedLogin}</td>
  202. <td>{$api.needLogin?'是':'否'}</td>
  203. </tr>
  204. <tr>
  205. <td>{$lang.NeedRight}</td>
  206. <td>{$api.needRight?'是':'否'}</td>
  207. </tr>
  208. </tbody>
  209. </table>
  210. </div>
  211. </div>
  212. <div class="panel panel-default">
  213. <div class="panel-heading"><strong>{$lang.Headers}</strong></div>
  214. <div class="panel-body">
  215. {if $api.headersList}
  216. <table class="table table-hover">
  217. <thead>
  218. <tr>
  219. <th>{$lang.Name}</th>
  220. <th>{$lang.Type}</th>
  221. <th>{$lang.Required}</th>
  222. <th>{$lang.Description}</th>
  223. </tr>
  224. </thead>
  225. <tbody>
  226. {foreach name="api['headersList']" id="header"}
  227. <tr>
  228. <td>{$header.name}</td>
  229. <td>{$header.type}</td>
  230. <td>{$header.required?'是':'否'}</td>
  231. <td>{$header.description}</td>
  232. </tr>
  233. {/foreach}
  234. </tbody>
  235. </table>
  236. {else /}
  237. {/if}
  238. </div>
  239. </div>
  240. <div class="panel panel-default">
  241. <div class="panel-heading"><strong>{$lang.Parameters}</strong></div>
  242. <div class="panel-body">
  243. {if $api.paramsList}
  244. <table class="table table-hover">
  245. <thead>
  246. <tr>
  247. <th>{$lang.Name}</th>
  248. <th>{$lang.Type}</th>
  249. <th>{$lang.Required}</th>
  250. <th>{$lang.Description}</th>
  251. </tr>
  252. </thead>
  253. <tbody>
  254. {foreach name="api['paramsList']" id="param"}
  255. <tr>
  256. <td>{$param.name}</td>
  257. <td>{$param.type}</td>
  258. <td>{:$param.required?'是':'否'}</td>
  259. <td>{$param.description}</td>
  260. </tr>
  261. {/foreach}
  262. </tbody>
  263. </table>
  264. {else /}
  265. {/if}
  266. </div>
  267. </div>
  268. <div class="panel panel-default">
  269. <div class="panel-heading"><strong>{$lang.Body}</strong></div>
  270. <div class="panel-body">
  271. {$api.body|default='无'}
  272. </div>
  273. </div>
  274. </div><!-- #info -->
  275. <div class="tab-pane" id="sandbox{$api.id}">
  276. <div class="row">
  277. <div class="col-md-12">
  278. {if $api.headersList}
  279. <div class="panel panel-default">
  280. <div class="panel-heading"><strong>{$lang.Headers}</strong></div>
  281. <div class="panel-body">
  282. <div class="headers">
  283. {foreach name="api['headersList']" id="param"}
  284. <div class="form-group">
  285. <label class="control-label" for="{$param.name}">{$param.name}</label>
  286. <input type="{$param.type}" class="form-control input-sm" id="{$param.name}" {if $param.required}required{/if} placeholder="{$param.description} - Ex: {$param.sample}" name="{$param.name}">
  287. </div>
  288. {/foreach}
  289. </div>
  290. </div>
  291. </div>
  292. {/if}
  293. <div class="panel panel-default">
  294. <div class="panel-heading"><strong>{$lang.Parameters}</strong>
  295. <div class="pull-right">
  296. <a href="javascript:" class="btn btn-xs btn-info btn-append">追加</a>
  297. </div>
  298. </div>
  299. <div class="panel-body">
  300. <form enctype="application/x-www-form-urlencoded" role="form" action="{$api.route}" method="{$api.method}" name="form{$api.id}" id="form{$api.id}">
  301. {if $api.paramsList}
  302. {foreach name="api['paramsList']" id="param"}
  303. <div class="form-group">
  304. <label class="control-label" for="{$param.name}">{$param.name}</label>
  305. <input type="{$param.type}" class="form-control input-sm" id="{$param.name}" {if $param.required}required{/if} placeholder="{$param.description}{if $param.sample} - 例: {$param.sample}{/if}" name="{$param.name}">
  306. </div>
  307. {/foreach}
  308. {else /}
  309. <div class="form-group">
  310. </div>
  311. {/if}
  312. <div class="form-group form-group-submit">
  313. <button type="submit" class="btn btn-success send" rel="{$api.id}">{$lang.Send}</button>
  314. <button type="reset" class="btn btn-info" rel="{$api.id}">{$lang.Reset}</button>
  315. </div>
  316. </form>
  317. </div>
  318. </div>
  319. <div class="panel panel-default">
  320. <div class="panel-heading"><strong>{$lang.Response}</strong></div>
  321. <div class="panel-body">
  322. <div class="row">
  323. <div class="col-md-12" style="overflow-x:auto">
  324. <pre id="response_headers{$api.id}"></pre>
  325. <pre id="response{$api.id}"></pre>
  326. </div>
  327. </div>
  328. </div>
  329. </div>
  330. <div class="panel panel-default">
  331. <div class="panel-heading"><strong>{$lang.ReturnParameters}</strong></div>
  332. <div class="panel-body">
  333. {if $api.returnParamsList}
  334. <table class="table table-hover">
  335. <thead>
  336. <tr>
  337. <th>{$lang.Name}</th>
  338. <th>{$lang.Type}</th>
  339. <th>{$lang.Description}</th>
  340. </tr>
  341. </thead>
  342. <tbody>
  343. {foreach name="api['returnParamsList']" id="param"}
  344. <tr>
  345. <td>{$param.name}</td>
  346. <td>{$param.type}</td>
  347. <td>{$param.description}</td>
  348. </tr>
  349. {/foreach}
  350. </tbody>
  351. </table>
  352. {else /}
  353. {/if}
  354. </div>
  355. </div>
  356. </div>
  357. </div>
  358. </div><!-- #sandbox -->
  359. <div class="tab-pane" id="sample{$api.id}">
  360. <div class="row">
  361. <div class="col-md-12">
  362. <pre id="sample_response{$api.id}">{$api.return|default='无'}</pre>
  363. </div>
  364. </div>
  365. </div><!-- #sample -->
  366. </div><!-- .tab-content -->
  367. </div>
  368. </div>
  369. </div>
  370. {/foreach}
  371. {/foreach}
  372. </div>
  373. <hr>
  374. <div class="row mt0 footer">
  375. <div class="col-md-6" align="left">
  376. </div>
  377. <div class="col-md-6" align="right">
  378. Generated on {:date('Y-m-d H:i:s')} <a href="./" target="_blank">{$config.sitename}</a>
  379. </div>
  380. </div>
  381. </div> <!-- /container -->
  382. <!-- jQuery -->
  383. <script src="https://cdn.staticfile.org/jquery/2.1.4/jquery.min.js"></script>
  384. <!-- Bootstrap Core JavaScript -->
  385. <script src="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>
  386. <script type="text/javascript">
  387. function syntaxHighlight(json) {
  388. if (typeof json != 'string') {
  389. json = JSON.stringify(json, undefined, 2);
  390. }
  391. json = json.replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;');
  392. return json.replace(/("(\\u[a-zA-Z0-9]{4}|\\[^u]|[^\\"])*"(\s*:)?|\b(true|false|null)\b|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?)/g, function (match) {
  393. var cls = 'number';
  394. if (/^"/.test(match)) {
  395. if (/:$/.test(match)) {
  396. cls = 'key';
  397. } else {
  398. cls = 'string';
  399. }
  400. } else if (/true|false/.test(match)) {
  401. cls = 'boolean';
  402. } else if (/null/.test(match)) {
  403. cls = 'null';
  404. }
  405. return '<span class="' + cls + '">' + match + '</span>';
  406. });
  407. }
  408. function prepareStr(str) {
  409. try {
  410. return syntaxHighlight(JSON.stringify(JSON.parse(str.replace(/'/g, '"')), null, 2));
  411. } catch (e) {
  412. return str;
  413. }
  414. }
  415. var storage = (function () {
  416. var uid = new Date;
  417. var storage;
  418. var result;
  419. try {
  420. (storage = window.localStorage).setItem(uid, uid);
  421. result = storage.getItem(uid) == uid;
  422. storage.removeItem(uid);
  423. return result && storage;
  424. } catch (exception) {
  425. }
  426. }());
  427. $.fn.serializeObject = function ()
  428. {
  429. var o = {};
  430. var a = this.serializeArray();
  431. $.each(a, function () {
  432. if (!this.value) {
  433. return;
  434. }
  435. if (o[this.name] !== undefined) {
  436. if (!o[this.name].push) {
  437. o[this.name] = [o[this.name]];
  438. }
  439. o[this.name].push(this.value || '');
  440. } else {
  441. o[this.name] = this.value || '';
  442. }
  443. });
  444. return o;
  445. };
  446. $(document).ready(function () {
  447. if (storage) {
  448. storage.getItem('token') && $('#token').val(storage.getItem('token'));
  449. storage.getItem('apiUrl') && $('#apiUrl').val(storage.getItem('apiUrl'));
  450. }
  451. $('[data-toggle="tooltip"]').tooltip({
  452. placement: 'bottom'
  453. });
  454. $(window).on("resize", function(){
  455. $("#sidebar").css("max-height", $(window).height()-80);
  456. });
  457. $(window).trigger("resize");
  458. $(document).on("click", "#sidebar .list-group > .list-group-item", function(){
  459. $("#sidebar .list-group > .list-group-item").removeClass("current");
  460. $(this).addClass("current");
  461. });
  462. $(document).on("click", "#sidebar .child a", function(){
  463. var heading = $("#heading-"+$(this).data("id"));
  464. if(!heading.next().hasClass("in")){
  465. $("a", heading).trigger("click");
  466. }
  467. $("html,body").animate({scrollTop:heading.offset().top-70});
  468. });
  469. $('code[id^=response]').hide();
  470. $.each($('pre[id^=sample_response],pre[id^=sample_post_body]'), function () {
  471. if ($(this).html() == 'NA') {
  472. return;
  473. }
  474. var str = prepareStr($(this).html());
  475. $(this).html(str);
  476. });
  477. $("[data-toggle=popover]").popover({placement: 'right'});
  478. $('[data-toggle=popover]').on('shown.bs.popover', function () {
  479. var $sample = $(this).parent().find(".popover-content"),
  480. str = $(this).data('content');
  481. if (typeof str == "undefined" || str === "") {
  482. return;
  483. }
  484. var str = prepareStr(str);
  485. $sample.html('<pre>' + str + '</pre>');
  486. });
  487. $(document).on('click', '#save_data', function (e) {
  488. if (storage) {
  489. storage.setItem('token', $('#token').val());
  490. storage.setItem('apiUrl', $('#apiUrl').val());
  491. } else {
  492. alert('Your browser does not support local storage');
  493. }
  494. });
  495. $(document).on('click', '.btn-append', function (e) {
  496. $($("#appendtpl").html()).insertBefore($(this).closest(".panel").find(".form-group-submit"));
  497. return false;
  498. });
  499. $(document).on('click', '.btn-remove', function (e) {
  500. $(this).closest(".form-group").remove();
  501. return false;
  502. });
  503. $(document).on('keyup', '.input-custom-name', function (e) {
  504. $(this).closest(".row").find(".input-custom-value").attr("name", $(this).val());
  505. return false;
  506. });
  507. $(document).on('click', '.send', function (e) {
  508. e.preventDefault();
  509. var form = $(this).closest('form');
  510. //added /g to get all the matched params instead of only first
  511. var matchedParamsInRoute = $(form).attr('action').match(/[^{]+(?=\})/g);
  512. var theId = $(this).attr('rel');
  513. //keep a copy of action attribute in order to modify the copy
  514. //instead of the initial attribute
  515. var url = $(form).attr('action');
  516. var method = $(form).prop('method').toLowerCase() || 'get';
  517. var formData = new FormData();
  518. $(form).find('input').each(function (i, input) {
  519. if ($(input).attr('type').toLowerCase() == 'file') {
  520. formData.append($(input).attr('name'), $(input)[0].files[0]);
  521. method = 'post';
  522. } else {
  523. formData.append($(input).attr('name'), $(input).val())
  524. }
  525. });
  526. var index, key, value;
  527. if (matchedParamsInRoute) {
  528. var params = {};
  529. formData.forEach(function(value, key){
  530. params[key] = value;
  531. });
  532. for (index = 0; index < matchedParamsInRoute.length; ++index) {
  533. try {
  534. key = matchedParamsInRoute[index];
  535. value = params[key];
  536. if (typeof value == "undefined")
  537. value = "";
  538. url = url.replace("\{" + key + "\}", value);
  539. formData.delete(key);
  540. } catch (err) {
  541. console.log(err);
  542. }
  543. }
  544. }
  545. var headers = {};
  546. var token = $('#token').val();
  547. if (token.length > 0) {
  548. headers['token'] = token;
  549. }
  550. $("#sandbox" + theId + " .headers input[type=text]").each(function () {
  551. val = $(this).val();
  552. if (val.length > 0) {
  553. headers[$(this).prop('name')] = val;
  554. }
  555. });
  556. $.ajax({
  557. url: $('#apiUrl').val() + url,
  558. data: method == 'get' ? $(form).serialize() : formData,
  559. type: method,
  560. dataType: 'json',
  561. contentType: false,
  562. processData: false,
  563. headers: headers,
  564. xhrFields: {
  565. withCredentials: true
  566. },
  567. success: function (data, textStatus, xhr) {
  568. if (typeof data === 'object') {
  569. var str = JSON.stringify(data, null, 2);
  570. $('#response' + theId).html(syntaxHighlight(str));
  571. } else {
  572. $('#response' + theId).html(data || '');
  573. }
  574. $('#response_headers' + theId).html('HTTP ' + xhr.status + ' ' + xhr.statusText + '<br/><br/>' + xhr.getAllResponseHeaders());
  575. $('#response' + theId).show();
  576. },
  577. error: function (xhr, textStatus, error) {
  578. try {
  579. var str = JSON.stringify($.parseJSON(xhr.responseText), null, 2);
  580. } catch (e) {
  581. var str = xhr.responseText;
  582. }
  583. $('#response_headers' + theId).html('HTTP ' + xhr.status + ' ' + xhr.statusText + '<br/><br/>' + xhr.getAllResponseHeaders());
  584. $('#response' + theId).html(syntaxHighlight(str));
  585. $('#response' + theId).show();
  586. }
  587. });
  588. return false;
  589. });
  590. });
  591. </script>
  592. <script type="text/html" id="appendtpl">
  593. <div class="form-group">
  594. <label class="control-label">自定义</label>
  595. <div class="row">
  596. <div class="col-xs-4">
  597. <input type="text" class="form-control input-sm input-custom-name" placeholder="名称">
  598. </div>
  599. <div class="col-xs-6">
  600. <input type="text" class="form-control input-sm input-custom-value" placeholder="值">
  601. </div>
  602. <div class="col-xs-2 text-center">
  603. <a href="javascript:" class="btn btn-sm btn-danger btn-remove">删除</a>
  604. </div>
  605. </div>
  606. </div>
  607. </script>
  608. </body>
  609. </html>