token.html 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. {template 'common/header'}
  2. <style>
  3. body{background:#d2e6e9;}
  4. .charge.panel{margin:.5em; border:none;}
  5. .charge.panel-info>.panel-heading {background: -webkit-gradient(linear, 0 0, 100% 0, from(#ebebeb), to(#f3f9fa), color-stop(30%, #f5f9f9)); color:#666666; border:none;}
  6. a{color:#666666;}a:hover{color: #3ebacc;}
  7. .charge .btn.btn-primary{background: #56c6d6; color: #FFF; border: 0;}
  8. .charge i{display:inline-block; width:15px; height:15px; text-align:center; line-height:15px;}
  9. .text-danger-bold{font-weight: bold;font-size: 16px;color: #d9534f}
  10. .alert{padding:5px}
  11. .text-hight{color:red;font-weight: bold;font-size: 18px;}
  12. </style>
  13. <div class=" panel panel-info charge">
  14. <div class="panel-heading">
  15. <h4>核销优惠券</h4>
  16. </div>
  17. <div class="panel-body">
  18. <form method="post" action="{php echo url('clerk/token');}" role="form" id="form1" class="form-horizontal form">
  19. <input type="hidden" name="uid" value="{$uid}"/>
  20. <input type="hidden" name="id" value="{$id}"/>
  21. <div class="form-group">
  22. <div class="col-xs-12">
  23. <strong class="text-danger">
  24. <i class="fa fa-info-circle"></i> 会员UID:{$member['uid']}, 手机号:{$member['mobile']}<br>
  25. <i class="fa fa-info-circle"></i> 会员组:{$_W['account']['groups'][$member['groupid']]['title']}<br>
  26. <i class="fa fa-info-circle"></i> 余额:{$member['credit2']}, 积分:{$member['credit1']}
  27. </strong>
  28. </div>
  29. </div>
  30. <div class="form-group">
  31. <div class="col-xs-12">
  32. 优惠券类型:
  33. {if $data['type'] == 1}
  34. <span class="label label-success">折扣券</span>
  35. {else}
  36. <span class="label label-success">代金券</span>
  37. {/if}
  38. </div>
  39. </div>
  40. <div class="form-group">
  41. <div class="col-xs-12">
  42. 优惠券名称:{$data['title']}
  43. </div>
  44. </div>
  45. <div class="form-group">
  46. <div class="col-xs-12">
  47. 使用条件:满<span class="text-hight">{$data['condition']}</span>元可使用。
  48. {if $data['type'] == 1}
  49. 折扣:<span class="text-hight">{php echo $data['discount'] * 10}</span> 折
  50. {else}
  51. 减免:<span class="text-hight">{$data['discount']}</span>元
  52. {/if}
  53. </div>
  54. </div>
  55. <div class="form-group">
  56. <div class="col-xs-12">
  57. 使用期限:{php echo date('Y-m-d', $data['starttime']);} ~ {php echo date('Y-m-d', $data['endtime']);}
  58. </div>
  59. </div>
  60. <div class="form-group">
  61. <div class="col-xs-12">
  62. 核销员:<span class="text-hight"> {$clerk['name']}</span>, Id:<span class="text-hight"> {$clerk['id']}</span>
  63. </div>
  64. </div>
  65. <div class="form-group">
  66. <div class="col-xs-12">
  67. <input type="hidden" name="token" value="{$_W['token']}">
  68. <input type="submit" name="submit" class="btn btn-primary btn-block" value="确认核销">
  69. </div>
  70. </div>
  71. </form>
  72. </div>
  73. </div>
  74. {template 'common/footer'}