截流自动化的商城平台
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

audit.html 2.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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="2" title="审核拒绝" checked>
  15. </div>
  16. </div>
  17. <div class="layui-form-item" style="margin-bottom:0;">
  18. <label class="layui-form-label"><font color="red">*</font>审核备注:</label>
  19. <div class="layui-input-block">
  20. <textarea name="description" placeholder="请输入内容" class="layui-textarea" style="width:380px;height:120px;"></textarea>
  21. </div>
  22. </div>
  23. <div class="layui-form-item layui-hide">
  24. <input type="button" lay-submit lay-filter="addSubmit" id="addSubmit" value="确认">
  25. </div>
  26. </div>
  27. <script>
  28. layui.config({
  29. version:"{$front_version}",
  30. base: '/static/plug/layui-admin/dist/layuiadmin/' //静态资源所在路径
  31. }).extend({
  32. index: 'lib/index' //主入口模块
  33. }).use(['index','table','like'], function(){
  34. var $ = layui.$
  35. ,form = layui.form
  36. ,table = layui.table
  37. ,like = layui.like;
  38. // 确认
  39. form.on('submit(confirm)', function(data){
  40. console.log(data.field)
  41. // 审核
  42. like.ajax({
  43. url:'{:url("activity_area.goods/audit")}',
  44. data:{'id':data.field.id,'review_status':data.field.review_status,'description': data.field.description},
  45. type:"post",
  46. success:function(res)
  47. {
  48. if(res.code == 1)
  49. {
  50. layui.layer.msg(res.msg, {offset: '15px', icon: 1, time: 1000}, function(){
  51. parent.location.reload();
  52. });
  53. }
  54. }
  55. });
  56. });
  57. // 返回
  58. form.on('submit(cancel)', function(data){
  59. var index = parent.layer.getFrameIndex(window.name);
  60. parent.layer.close(index);
  61. return false; //阻止表单跳转。如果需要表单跳转,去掉这段即可。
  62. });
  63. });
  64. </script>