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.
63 lines
3.3 KiB
63 lines
3.3 KiB
<div class="form-group">
|
|
<label class="control-label col-lg-2">秒杀信息设置</label>
|
|
<div class="col-lg-10">
|
|
|
|
<table class="table table-bordered">
|
|
<thead>
|
|
<tr>
|
|
<th width="20%">规格</th>
|
|
<th width="10%">价格</th>
|
|
<th width="30%">秒杀价格
|
|
<div class="input-group">
|
|
<input type="number" min="0" step="0.01" max="99999999.99" class="form-control" name="option_price">
|
|
<div class="input-group-btn">
|
|
<a href="javascript:void(0)" type="button" class="btn btn-white change-value" data-original="option_price" data-change="option_price_" data-toggle="dropdown" title="批量设置">
|
|
<span class="icon-double-angle-down"></span>
|
|
</a>
|
|
</div>
|
|
</div>
|
|
</th>
|
|
<th width="10%">库存</th>
|
|
<th width="30%">限量
|
|
<div class="input-group">
|
|
<input type="number" min="1" step="1" class="form-control" name="option_number" >
|
|
<div class="input-group-btn">
|
|
<a href="javascript:void(0)" type="button" class="btn btn-white change-value" data-original="option_number" data-change="option_number_" data-toggle="dropdown" title="批量设置">
|
|
<span class="icon-double-angle-down"></span>
|
|
</a>
|
|
</div>
|
|
</div>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{notempty name="sku"}
|
|
{volist name="sku" id="vo"}
|
|
<tr>
|
|
<td >{$vo.sku_name}<input type="hidden" name="sku[]" value="{$vo.sku}"></td>
|
|
<td>{$vo.price}</td>
|
|
<td><input type="number" name="option_price_{$vo.sku}" min="0.01" step="0.01" max="99999999.99" notnull notice='请填写该规格秒杀价格数据' class="form-control" value=""></td>
|
|
<td>{$vo.stock}</td>
|
|
<td><input type="number" name="option_number_{$vo.sku}" min="0" step="1" max="{$vo.stock}" notnull notice='请填写该规格秒杀限量数据' class="form-control" value=""></td>
|
|
</tr>
|
|
{/volist}
|
|
{else /}
|
|
<tr>
|
|
<td>默认</td>
|
|
<td>{$product.price}</td>
|
|
<td>
|
|
<input type="number" name="option_price_" min="0.01" step="0.01" max="99999999.99" notnull notice='请填写该规格秒杀价格数据' class="form-control" value="">
|
|
</td>
|
|
<td>{$product.stock}</td>
|
|
<td>
|
|
<input type="number" name="option_number_" min="0" step="1" max="{$product.stock}" notnull notice='请填写该规格秒杀限量数据' class="form-control" value="">
|
|
</td>
|
|
</tr>
|
|
{/notempty}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<input type="hidden" name="is_spec_open" value="{$product.is_spec_open}">
|
|
<input type="hidden" name="product_id" value="{$product.id}">
|