wpfw_ewei_shopv2/template/web_v3/sysset/wpfw.html
meng e93d5db2d7
All checks were successful
continuous-integration/drone/push Build is passing
网培系统设置开关和商品配置
2023-02-17 04:05:07 +08:00

68 lines
2.9 KiB
HTML

{template '_header'}
<div class="page-header"> 当前位置:<span class="text-primary">网培服务设置</span></div>
<div class="page-content">
<form method="post" class="form-horizontal form-validate">
<div class="form-group">
<label class="col-lg control-label">是否开启</label>
<div class="col-sm-9">
{ifp 'sysset.wpfw.edit'}
<label class="radio-inline"><input type="radio" name="data[open_wpfw]" value="1" {if $data['open_wpfw']==1} checked="checked"{/if} onclick="open_wpfw(true)"/>开启</label>
<label class="radio-inline"><input type="radio" name="data[open_wpfw]" value="0" {if empty($data['open_wpfw'])} checked="checked"{/if} onclick="open_wpfw(false)"/>关闭</label>
<span class="help-block">开启网培服务后可以配置商品的推送地址</span>
{else}
<div class='form-control-static'>{if $data['open_wpfw']==1}开启{else}关闭{/if}</div>
{/if}
</div>
</div>
<div id='open_wpfw' {if empty($data['open_wpfw'])}style='display:none'{/if}>
<div class="form-group " >
<label class="col-lg control-label must">默认推送地址</label>
<div class="col-sm-9">
{ifp 'sysset.wpfw.edit'}
<input type="text" name="data[default_url]" class="form-control" value="{$data['default_url']}" data-rule-required='true'>
{else}
<div class='form-control-static'>{$data['default_url']}</div>
{/if}
<span class='help-block'>
<p>如果商品开启了推送但是没有设置推送地址则会被推送到本地址</p>
<p>如果商品设置了推送地址则优先推送到商品自定义的地址</p>
</span>
</div>
</div>
<div class="form-group " >
<label class="col-lg control-label must">API_KEY</label>
<div class="col-sm-9">
{ifp 'sysset.qiniu.edit'}
<input type="text" name="data[api_key]" class="form-control" value="{$data['api_key']}" data-rule-required='true'>
{else}
<div class='form-control-static'>{$data['api_key']}</div>
{/if}
<span class='help-block'>
<p>接收方的api_key,签名方法为md5(时间戳+api_key)</p>
</span>
</div>
</div>
</div>
{ifp 'sysset.wpfw.edit'}
<div class="form-group">
<label class="col-lg control-label "></label>
<div class="col-sm-9">
<input type="submit" value="提交" class="btn btn-primary"/>
</div>
</div>
{/if}
<script language="javascript">
function open_wpfw(open) {
if (open) {
$('#open_wpfw').show();
} else {
$('#open_wpfw').hide();
}
}
</script>
</form>
</div>
{template '_footer'}