107 lines
3.3 KiB
HTML
107 lines
3.3 KiB
HTML
{template '_header'}
|
|
<div class="page-heading"> <h2>基础设置</h2> </div>
|
|
|
|
<div class="alert alert-info">
|
|
提示:
|
|
<br/>请确定您的网店管家帐号能在'网店管家云端版'和'esAPI(云端版)'两款软件使用,再联系官方(VIP人工服务)对接
|
|
<br/>
|
|
|
|
<a class="text-danger" target="_blank" href="http://huoban.wdgj.com/partner/spread.html?pd=2491">点击申请网店管家</a>
|
|
</div>
|
|
|
|
|
|
|
|
<form id="setform" {ifp 'polyapi.set.edit'}action="" method="post"{/if} class="form-horizontal form-validate">
|
|
|
|
<div class="form-group">
|
|
<label class="col-sm-2 control-label">接口访问地址</label>
|
|
<div class="col-sm-9 col-xs-12">
|
|
<p class='form-control-static'>
|
|
<a href='javascript:;' class="js-clip" title='点击复制链接' data-url="{$_W['siteroot']}addons/{EWEI_SHOP_V2_MODULE_NAME}/plugin/polyapi/api.php" >
|
|
{$_W['siteroot']}addons/{EWEI_SHOP_V2_MODULE_NAME}/plugin/polyapi/api.php
|
|
</a>
|
|
</p>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<label class="col-sm-2 control-label must">AppKey</label>
|
|
<div class="col-sm-8">
|
|
{ife 'polyapi.set' $item}
|
|
<input type="text" class="form-control" name="appkey" value="{$item['appkey']}" data-rule-required="true"/>
|
|
{else}
|
|
<div class="form-control-static">{$item['appkey']}</div>
|
|
{/if}
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<label class="col-sm-2 control-label must">AppSecret</label>
|
|
<div class="col-sm-8">
|
|
{ife 'polyapi.set' $item}
|
|
<input type="text" class="form-control" name="appsecret" value="{$item['appsecret']}" data-rule-required="true"/>
|
|
{else}
|
|
<div class="form-control-static">{$item['appsecret']}</div>
|
|
{/if}
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<label class="col-sm-2 control-label must">Token</label>
|
|
<div class="col-sm-8">
|
|
{ife 'polyapi.set' $item}
|
|
<input type="text" class="form-control" name="token" value="{$item['token']}" data-rule-required="true"/>
|
|
{else}
|
|
<div class="form-control-static">{$item['token']}</div>
|
|
{/if}
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="form-group">
|
|
<label class="col-sm-2 control-label">是否开启接口</label>
|
|
<div class="col-sm-8">
|
|
{ifp 'polyapi.set.edit'}
|
|
<label class="radio-inline"><input type="radio" name="status" value="0" {if $item['status'] ==0} checked="checked"{/if} /> 关闭</label>
|
|
<label class="radio-inline"><input type="radio" name="status" value="1" {if $item['status'] ==1} checked="checked"{/if} /> 开启</label>
|
|
<div class='help-block'></div>
|
|
{else}
|
|
{if $item['status'] ==0}关闭{else}开启{/if}
|
|
{/if}
|
|
</div>
|
|
</div>
|
|
|
|
|
|
{ifp 'polyapi.set.edit'}
|
|
<div class="form-group">
|
|
<label class="col-sm-2 control-label"></label>
|
|
<div class="col-sm-9 col-xs-12">
|
|
<input type="submit" value="提交" class="btn btn-primary" />
|
|
</div>
|
|
</div>
|
|
{/if}
|
|
|
|
</form>
|
|
|
|
<script language='javascript'>
|
|
require(['bootstrap'], function () {
|
|
$('#myTab a').click(function (e) {
|
|
$('#tab').val($(this).attr('href'));
|
|
e.preventDefault();
|
|
$(this).tab('show');
|
|
})
|
|
});
|
|
|
|
$(function () {
|
|
$('.open_apply').click(function () {
|
|
var type = $(".open_apply:checked").val();
|
|
if (type == '1') {
|
|
$('.protocol-group').show();
|
|
} else {
|
|
$('.protocol-group').hide();
|
|
}
|
|
})
|
|
});
|
|
|
|
</script>
|
|
{template '_footer'} |