85 lines
2.7 KiB
HTML
85 lines
2.7 KiB
HTML
{layout name="layout2" /}
|
|
<style>
|
|
.layui-form-label {
|
|
color: #6a6f6c;
|
|
width: 100px;
|
|
}
|
|
.layui-input-block {
|
|
margin-left: 130px;
|
|
}
|
|
.tips{
|
|
color: red;
|
|
}
|
|
|
|
</style>
|
|
<div class="layui-form" lay-filter="layuiadmin-form-user_level" id="layuiadmin-form-user_level" style="padding: 20px 30px 0 0;">
|
|
|
|
<div class="layui-form-item">
|
|
<label class="layui-form-label"><span class="tips">*</span>抢购商品</label>
|
|
<div class="layui-input-block">
|
|
<table id="goods_list" class="layui-table" lay-size="sm" style="width: 800px;">
|
|
<colgroup>
|
|
<col width="60px">
|
|
</colgroup>
|
|
<thead>
|
|
<tr style="background-color: #f3f5f9">
|
|
<th style="width: 240px;text-align: center">商品</th>
|
|
<th style="width: 240px;text-align: center">商品规格</th>
|
|
<th style="width: 120px;text-align: center">商品价格</th>
|
|
<th style="width: 120px;text-align: center">抢购价格</th>
|
|
<th style="width: 120px;text-align: center">库存</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{foreach $detail as $item}
|
|
<tr>
|
|
<td >
|
|
<img class="image-show" width="80px" height="80px" src="{$item.image}">{$item.name}
|
|
</td>
|
|
<td>{$item.spec_value_str}</td>
|
|
<td style="text-align: center">{$item.goods_price}</td>
|
|
<input type="hidden" name="id[]" value="{$item.id}" >
|
|
<input type="hidden" name="item_id[]" value="{$item.item_id}" >
|
|
<input type="hidden" name="goods_id[]" value="{$item.goods_id}" >
|
|
<td style="text-align: center"><input name="activity_price[]" value="{$item.activity_price}" autocomplete="off" class="layui-input" lay-verify="required" lay-reqtext="请输入秒杀价格"></td>
|
|
<td style="text-align: center"><input name="stock[]" value="{$item.stock}" autocomplete="off" class="layui-input" lay-verify="required" lay-reqtext="请输入库存"></td>
|
|
</tr>
|
|
{/foreach}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="layui-form-item layui-hide">
|
|
<input type="button" lay-submit lay-filter="edit-submit" id="edit-submit" value="确认">
|
|
</div>
|
|
</div>
|
|
<style>
|
|
.layui-form-label {
|
|
width: 100px;
|
|
}
|
|
.layui-input-block {
|
|
margin-left: 130px;
|
|
}
|
|
</style>
|
|
<script>
|
|
layui.config({
|
|
version:"{$front_version}",
|
|
base: '/static/lib/' //静态资源所在路径
|
|
}).use(['form', 'laydate'], function(){
|
|
var $ = layui.$
|
|
,form = layui.form
|
|
,laydate = layui.laydate
|
|
,goods_ids = [];
|
|
|
|
|
|
|
|
//图片放大
|
|
$(document).on('click', '.image-show', function () {
|
|
var src = $(this).attr('src');
|
|
like.showImg(src,600);
|
|
});
|
|
|
|
})
|
|
|
|
</script> |