76 lines
2.7 KiB
HTML
76 lines
2.7 KiB
HTML
<script src="./resource/js/lib/jquery-1.11.1.min.js"></script>
|
|
<script src="{php echo EWEI_SHOPV2_LOCAL}static/js/require.js"></script>
|
|
<script src="./resource/js/app/config.js"></script>
|
|
<style type="text/css">
|
|
.popover{z-index:10000;}
|
|
.alert{margin-top:10px;}
|
|
</style>
|
|
<div class="alert alert-danger" style="display: none;">
|
|
<p class="alert-link">以下商品不能参加优惠套餐活动:</p>
|
|
<p>虚拟商品、限时购商品、促销商品、核销商品、会员权限商品、多商户商品;以及参加积分商城/拼团的商品。</p>
|
|
</div>
|
|
<div style='max-height:500px;overflow:auto;min-width:850px;'>
|
|
<table class="table">
|
|
<thead>
|
|
<tr>
|
|
<th>商品</th>
|
|
<th style="width:100px;text-align: center;">商品价格</th>
|
|
<th style="width:100px;text-align: center;">库存</th>
|
|
<th style="width:100px;text-align: center;">操作</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody id="param-items" class="ui-sortable">
|
|
{loop $ds $row}
|
|
<tr>
|
|
<td>
|
|
<img src="{php echo tomedia($row['thumb'])}" style='width:30px;height:30px;padding1px;border:1px solid #ccc' /> {$row['title']}
|
|
</td>
|
|
<td style="text-align: right;">¥{$row['marketprice']}</td>
|
|
<td style="text-align: right;">{$row['total']}</td>
|
|
<td style="text-align: center;">
|
|
<a href="javascript:;" class="label label-primary" onclick='biz.selector.set(this, {php echo json_encode($row);})'>选择</a>
|
|
</td>
|
|
</tr>
|
|
{/loop}
|
|
{if count($ds)<=0}
|
|
<tr>
|
|
<td colspan='4' align='center'>未找到商品</td>
|
|
</tr>
|
|
{/if}
|
|
</tbody>
|
|
</table>
|
|
<div style="text-align:right;width:100%;">
|
|
{$pager}
|
|
</div>
|
|
</div>
|
|
<script type="text/javascript">
|
|
require(['bootstrap'], function ($) {
|
|
$('[data-toggle="tooltip"]').tooltip({
|
|
container: $(document.body)
|
|
});
|
|
$('[data-toggle="popover"]').popover({
|
|
container: $(document.body)
|
|
});
|
|
});
|
|
//分页函数
|
|
var type = '';
|
|
function select_page(url,pindex,obj) {
|
|
if(pindex==''||pindex==0){
|
|
return;
|
|
}
|
|
var keyword = $.trim($("#goodsid_input").val());
|
|
$("#goodsid_input").html('<div class="tip">正在进行搜索...</div>');
|
|
|
|
$.ajax({
|
|
url:"{php echo webUrl('sale/gift/querygift')}",
|
|
type:'get',
|
|
data:{title:keyword,page:pindex,psize:10},
|
|
async : false, //默认为true 异步
|
|
success:function(data){
|
|
$(".content").html(data);
|
|
}
|
|
});
|
|
}
|
|
|
|
</script>
|