截流自动化的商城平台
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

review.html 3.5KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. {layout name="layout1" /}
  2. <style>
  3. .layui-table-cell { height: auto; }
  4. .layui-input-block {
  5. line-height: 38px;
  6. }
  7. </style>
  8. <div class="layui-form" style="margin-left: 50px;margin-top: 15px;margin-bottom:30px;">
  9. <input type="hidden" name="id" value="{$id}" />
  10. <div class="layui-form-item" style="margin-bottom:0;">
  11. <label class="layui-form-label">提现审核:</label>
  12. <div class="layui-input-block">
  13. <input type="radio" name="review_status" value="1" title="审核通过">
  14. <input type="radio" name="review_status" value="0" title="审核拒绝" checked>
  15. </div>
  16. </div>
  17. <div class="layui-form-item" style="margin-bottom:0;">
  18. <label class="layui-form-label"></label>
  19. <div class=" layui-form-mid layui-word-aux" style="white-space: nowrap">审核拒绝后,提现金额会全部退回佣金账户</div>
  20. </div>
  21. <div class="layui-form-item" style="margin-bottom:0;">
  22. <label class="layui-form-label">审核备注:</label>
  23. <div class="layui-input-block">
  24. <textarea name="description" placeholder="请输入内容" class="layui-textarea" style="width:380px;height:120px;"></textarea>
  25. </div>
  26. </div>
  27. <div class="layui-form-item" style="margin-bottom:0;">
  28. <label class="layui-form-label"></label>
  29. <div class="layui-input-block">
  30. <button class="layui-btn layui-btn-sm layuiadmin-btn-withdraw layui-btn-normal }" lay-submit lay-filter="confirm">确 认</button>
  31. <button class="layui-btn layui-btn-sm layuiadmin-btn-withdraw layui-btn-primary }" lay-submit lay-filter="cancel">返 回</button>
  32. </div>
  33. </div>
  34. </div>
  35. <script>
  36. layui.config({
  37. version:"{$front_version}",
  38. base: '/static/plug/layui-admin/dist/layuiadmin/' //静态资源所在路径
  39. }).extend({
  40. index: 'lib/index' //主入口模块
  41. }).use(['index','table','like'], function(){
  42. var $ = layui.$
  43. ,form = layui.form
  44. ,table = layui.table
  45. ,like = layui.like;
  46. // 确认
  47. form.on('submit(confirm)', function(data){
  48. console.log(data.field)
  49. if(data.field.review_status == '0') {
  50. // 审核拒绝
  51. like.ajax({
  52. url:'{:url("finance.User/refuse")}',
  53. data:{'id':data.field.id, 'description': data.field.description},
  54. type:"post",
  55. success:function(res)
  56. {
  57. if(res.code == 1)
  58. {
  59. layui.layer.msg(res.msg, {offset: '15px', icon: 1, time: 1000}, function(){
  60. parent.location.reload();
  61. });
  62. }
  63. }
  64. });
  65. }else if(data.field.review_status == '1') {
  66. // 审核通过
  67. like.ajax({
  68. url:'{:url("finance.User/confirm")}',
  69. data:{'id':data.field.id, 'description': data.field.description},
  70. type:"post",
  71. success:function(res)
  72. {
  73. if(res.code == 1)
  74. {
  75. layui.layer.msg(res.msg, {offset: '15px', icon: 1, time: 1000}, function(){
  76. parent.location.reload();
  77. });
  78. }
  79. }
  80. });
  81. }
  82. return false; //阻止表单跳转。如果需要表单跳转,去掉这段即可。
  83. });
  84. // 返回
  85. form.on('submit(cancel)', function(data){
  86. var index = parent.layer.getFrameIndex(window.name);
  87. parent.layer.close(index);
  88. return false; //阻止表单跳转。如果需要表单跳转,去掉这段即可。
  89. });
  90. });
  91. </script>