You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
bjhedasx/views/mall/admin/spike/sceneproductupdate.html

61 lines
2.2 KiB

{extend name="../views/public/detail1.html"/}
{block name="subtitle"}
<script type="text/javascript">
var sku_submit = function sku_submit(id){
var param = $('#form_' + id).serialize();
if (global_obj.check_form($('#form_' + id).find('*[notnull]'))) {
return false;
}
common_obj.showLoading('加载中,请等待');
$.post("/member/spike/spikeskuupdate", param, function(data) {
common_obj.hideLoading();
setTimeout(function() {
if (data.ret == 1) {
if (data.msg) {
alert(data.msg);
}
} else {
if (data.msg) {
alert(data.msg);
return false;
}
}
}, 10);
}, 'json');
}
</script>
{$data.name}--秒杀详情
{/block}
{block name="detail"}
<table class="table table-bordered">
<thead>
<tr>
<th width="20%">规格</th>
<th width="30%">秒杀价格</th>
<th width="30%">限量</th>
<th width="30%">操作</th>
</tr>
</thead>
<tbody>
{volist name="sku" id="vo"}
<form id="form_{$vo.id}" onsubmit="return false" action="##" method="post">
<input type="hidden" name="id" value="{$vo.id}">
<tr>
<td >{if condition="!empty($vo.sku)"}{$vo.sku_name}{else /}默认{/if}</td>
<td><input type="number" name="price_spike" min="0.01" step="0.01" max="99999999.99"notnull notice='请填写该规格秒杀价格数据' class="form-control" value="{$vo.price_spike}"></td>
<td><input type="number" name="spike_number" min="1" step="1" notnull notice='请填写该规格秒杀限量数据' class="form-control" value="{$vo.spike_number}"></td>
<td> <input class="btn btn-danger" type="submit" value="编辑保存" onclick="sku_submit({$vo.id})"></td>
</tr>
</form>
{/volist}
</tbody>
</table>
{/block}