mirror of
https://gitee.com/ShopeX/OMS
synced 2026-03-23 02:45:33 +08:00
58 lines
2.1 KiB
HTML
58 lines
2.1 KiB
HTML
<!--
|
||
Copyright 2012-2026 ShopeX (https://www.shopex.cn)
|
||
|
||
Licensed under the Apache License, Version 2.0 (the "License");
|
||
you may not use this file except in compliance with the License.
|
||
You may obtain a copy of the License at
|
||
|
||
http://www.apache.org/licenses/LICENSE-2.0
|
||
|
||
Unless required by applicable law or agreed to in writing, software
|
||
distributed under the License is distributed on an "AS IS" BASIS,
|
||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||
See the License for the specific language governing permissions and
|
||
limitations under the License.
|
||
-->
|
||
|
||
<div class="division" style="float:left;width:50%;">
|
||
<div id="openapi-name-list">
|
||
<table width="100%" cellspacing="0" cellpadding="0" border="0" class='tableform'>
|
||
<tr>
|
||
<th>接口选择:</th>
|
||
<td>
|
||
<select id="apiName" name="apiName" onchange="selectDiv(this.value)">
|
||
<option value="0">--请选择接口</option>
|
||
<{foreach from=$list item=item}>
|
||
<option value="<{$item}>"><{$item}></option>
|
||
<{/foreach}>
|
||
</select>
|
||
</td>
|
||
<td>Onex Oms数据接口开发文档:<a target="_blank" href="https://top.shopex.cn/ecos/tpl/OmsOpenAPIDocument.rar">下载</a></td>
|
||
</tr>
|
||
</table>
|
||
</div>
|
||
|
||
<div id="openapi-form-page"></div>
|
||
</div>
|
||
|
||
<div>
|
||
<h3>返回结果:</h3>
|
||
<textarea id="resultarea" readonly="readonly" rows="3" cols="20" style="height:300px; width:500px;"></textarea>
|
||
</div>
|
||
|
||
|
||
|
||
<script language="javascript" type="text/javascript">
|
||
function selectDiv(val){
|
||
// W.page('index.php?app=openapi&ctl=admin_test&act=ajaxResult',{data:{'apiName':val},update:'openapi-form-page'});
|
||
new Request.HTML({
|
||
url:'index.php?app=openapi&ctl=admin_test&act=ajaxResult',
|
||
method:'post',
|
||
update:$('openapi-form-page'),
|
||
data:{'apiName':val},
|
||
onSuccess:function(){
|
||
$('resultarea').empty();
|
||
}
|
||
} ).send();
|
||
}
|
||
</script> |