47 lines
2.1 KiB
HTML
47 lines
2.1 KiB
HTML
<div style='max-height:500px;overflow:auto;min-width:850px;'>
|
|
<table class="table table-hover" style="min-width:850px;">
|
|
<thead>
|
|
<th style='width:40px;'></th>
|
|
<th>优惠券</th>
|
|
<th>使用条件</th>
|
|
<th>优惠</th>
|
|
<th style="width: 100px;">剩余数量</th>
|
|
<th style="width:120px;">领券中心领取</th>
|
|
<th style="width: 60px;">选择</th>
|
|
</thead>
|
|
<tbody>
|
|
{loop $ds $row}
|
|
<tr>
|
|
<td><img src="{$row['thumb']}" style="width:30px;height:30px;padding:1px solid #ccc" /></td>
|
|
<td>{if $row['coupontype']==0}
|
|
<label class='label label-success'>购物</label>
|
|
{else}
|
|
<label class='label label-warning'>充值</label>
|
|
{/if}
|
|
{if !empty($row['catid'])}
|
|
<label class='label label-primary'>{$category[$row['catid']]['name']}</label>
|
|
{/if}[{$row['id']}]{$row['couponname']}</td>
|
|
<td>{if $row['enough']>0}{if $row['coupontype']==0}消费{else}充值{/if}满{$row['enough']}元{else}不限制{/if}</td>
|
|
<td> {if $row['backtype']==0}
|
|
立减 {$row['deduct']} 元
|
|
{else if $row['backtype']==1}
|
|
打 {$row['discount']} 折
|
|
{else if $row['backtype']==2}
|
|
{if $row['backmoney']>0}返 {$row['backmoney']} 余额;{/if}
|
|
{if $row['backcredit']>0}返 {$row['backcredit']} 积分;{/if}
|
|
{if $row['backredpack']>0}返 {$row['backredpack']} 红包;{/if}
|
|
{/if}</td>
|
|
<td>{$row['last']}</td>
|
|
<td>{if $row['gettype']==1}可以{else}不可以{/if}</td>
|
|
<td style="width:80px;"><a href="javascript:;" onclick='biz.selector.set(this, {php echo json_encode($row)})'>选择</a></td>
|
|
</tr>
|
|
{/loop}
|
|
{if count($ds)<=0}
|
|
<tr>
|
|
<td colspan='5' align='center'>未找到任何优惠券, 点击 <a href="{php echo webUrl('sale/coupon/add')}" target='_blank'>【创建购物优惠券】</a> <a href="{php echo webUrl('sale/coupon/add',array('type'=>1))}" target='_blank'>【创建充值优惠券】</a></td>
|
|
</tr>
|
|
{/if}
|
|
</tbody>
|
|
</table>
|
|
</div>
|