coupon.html 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <div id="actionbar">
  2. <a href="javascript:;" url="{:url('vip/winCoupon',['vip_id' => $vip_id])}" class="button button-blue coupon"> <i class="iconfont icon-add_icon"></i>关联优惠券</a>
  3. </div>
  4. <table class="table">
  5. <thead>
  6. <tr>
  7. <th class="w100 fn-tac">操作</th>
  8. <th class="w60"></th>
  9. <th>名称</th>
  10. <th>使用规则</th>
  11. <th class="w90 fn-tac">类型</th>
  12. <th class="w100 fn-tar">¥额度</th>
  13. <th class="w80 fn-tar">¥满用</th>
  14. <th class="w100 fn-tar">抵扣/折扣</th>
  15. <th class="w200 fn-tac">有效期</th>
  16. </tr>
  17. </thead>
  18. <tbody>
  19. {foreach $lists as $vo}
  20. <tr>
  21. <td class="fn-tac">
  22. <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>
  23. </td>
  24. <td class="fn-tac"><img src="{$vo.img ? $vo.img : '__PUBLIC__/admin/review.png'}?x-oss-process=style/80" class="w50"></td>
  25. <td>{$vo.name}</td>
  26. <td>{$vo.tips}</td>
  27. <td class="fn-tac">
  28. <span class="fn-cp badge {$vo.is_platform?'bg-red':''}">{$vo.is_platform?'超级券':'普通券'}</span><br />
  29. <span class="fn-cp badge {$vo.is_check?'bg-blue':''}">消费券</span><br />
  30. <span class="fn-cp badge {$vo.is_shop?'bg-blue':''}">独立券</span>
  31. </td>
  32. <td class="fn-tar">{$vo.size}元</td>
  33. <td class="fn-tar">{$vo.howmuch}元</td>
  34. <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>
  35. <td class="fn-tac">{$vo.starttime|date="Y-m-d"} 至 {$vo.endtime|date="Y-m-d"}</td>
  36. </tr>
  37. {/foreach}
  38. </tbody>
  39. </table>
  40. {$lists|raw}
  41. <script type="text/javascript">
  42. Do('base', 'layer', function () {
  43. $('.isDel').isDel();
  44. $(".coupon").win({reload:1});
  45. })
  46. </script>