12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- <div id="actionbar">
- <a href="javascript:;" url="{:url('vip/winCoupon',['vip_id' => $vip_id])}" class="button button-blue coupon"> <i class="iconfont icon-add_icon"></i>关联优惠券</a>
- </div>
- <table class="table">
- <thead>
- <tr>
- <th class="w100 fn-tac">操作</th>
- <th class="w60"></th>
- <th>名称</th>
- <th>使用规则</th>
- <th class="w90 fn-tac">类型</th>
- <th class="w100 fn-tar">¥额度</th>
- <th class="w80 fn-tar">¥满用</th>
- <th class="w100 fn-tar">抵扣/折扣</th>
- <th class="w200 fn-tac">有效期</th>
- </tr>
- </thead>
- <tbody>
- {foreach $lists as $vo}
- <tr>
- <td class="fn-tac">
- <a class="button isDel" url="{:url('vip/delCoupon',['vip_id' => $vip_id,'coupon_id' => $vo.id])}" href="javascript:;"><i class="iconfont icon-lajixiang"></i>删除</a>
- </td>
- <td class="fn-tac"><img src="{$vo.img ? $vo.img : '__PUBLIC__/admin/review.png'}?x-oss-process=style/80" class="w50"></td>
- <td>{$vo.name}</td>
- <td>{$vo.tips}</td>
- <td class="fn-tac">
- <span class="fn-cp badge {$vo.is_platform?'bg-red':''}">{$vo.is_platform?'超级券':'普通券'}</span><br />
- <span class="fn-cp badge {$vo.is_check?'bg-blue':''}">消费券</span><br />
- <span class="fn-cp badge {$vo.is_shop?'bg-blue':''}">独立券</span>
- </td>
- <td class="fn-tar">{$vo.size}元</td>
- <td class="fn-tar">{$vo.howmuch}元</td>
- <td class="fn-tar">{if $vo.types}<span class="badge bg-blue">{$vo.discount}折</span>{else}<span class="badge bg-green">{$vo.price}元</span>{/if}</td>
- <td class="fn-tac">{$vo.starttime|date="Y-m-d"} 至 {$vo.endtime|date="Y-m-d"}</td>
- </tr>
- {/foreach}
- </tbody>
- </table>
- {$lists|raw}
- <script type="text/javascript">
- Do('base', 'layer', function () {
- $('.isDel').isDel();
- $(".coupon").win({reload:1});
- })
- </script>
|