|
|
|
@ -21,9 +21,16 @@
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="search">
|
|
|
|
|
<input v-model="searchKey" placeholder="搜索关键字...">
|
|
|
|
|
<input class="search-key" v-model="searchKey" placeholder="搜索关键字...">
|
|
|
|
|
|
|
|
|
|
<p>提示:WEB接口(H),API接口(A)</p>
|
|
|
|
|
<p>
|
|
|
|
|
<input class="search-type" type="checkbox" id="ajax" name="type" v-model="ajax"
|
|
|
|
|
checked>
|
|
|
|
|
<label for="ajax">AJAX</label>
|
|
|
|
|
<input class="search-type" type="checkbox" id="api" name="type" v-model="api"
|
|
|
|
|
checked>
|
|
|
|
|
<label for="api">API</label>
|
|
|
|
|
</p>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="body">
|
|
|
|
@ -54,6 +61,7 @@
|
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<h5>响应参数</h5>
|
|
|
|
|
|
|
|
|
|
<div class="wrapper">
|
|
|
|
@ -77,6 +85,18 @@
|
|
|
|
|
</table>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<h5>调试实例</h5>
|
|
|
|
|
|
|
|
|
|
<div class="wrapper" v-if="select.type == 'ajax'">
|
|
|
|
|
<pre>new Ajax("{{select.module}}", "{{select.target}}", "{{select.method}}").post({}, function (response) {</pre>
|
|
|
|
|
<pre> if (response.errors.length > 0) {</pre>
|
|
|
|
|
<pre> nav.e(response.errors[0].message);</pre>
|
|
|
|
|
<pre> } else {</pre>
|
|
|
|
|
<pre> nav.i("Ajax调用成功!");</pre>
|
|
|
|
|
<pre> }</pre>
|
|
|
|
|
<pre>}.bind(this))</pre>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<h5 id="User">附录参数(<span class="object">User</span>)</h5>
|
|
|
|
|
|
|
|
|
|
<div class="wrapper">
|
|
|
|
|