截流自动化的商城平台
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 6.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  1. {layout name="layout2" /}
  2. <style>
  3. .div-flex {
  4. display: flex;
  5. align-items: center;
  6. justify-content: left;
  7. }
  8. .div-width {
  9. width: 260px;
  10. }
  11. .layui-form-label {
  12. width: 180px;
  13. }
  14. .image {
  15. height: 80px;
  16. width: 80px;
  17. }
  18. </style>
  19. <div class="layui-card-body">
  20. <!--基本信息-->
  21. <div class="layui-form" lay-filter="layuiadmin-form-order" id="layuiadmin-form-order">
  22. <input type="hidden" class="id" name="id" value="{$detail.id}">
  23. <div class="layui-form-item div-flex">
  24. <label class="layui-form-label ">直播间标题</label>
  25. <div class="div-width">{$detail.name}</div>
  26. <label class="layui-form-label ">直播类型:</label>
  27. <div class="div-width"><input type="radio" name="type" value="0" title="手机直播" checked></div>
  28. </div>
  29. <div class="layui-form-item div-flex">
  30. <label class="layui-form-label ">开播时间:</label>
  31. <div class="div-width">{$detail.start_time}</div>
  32. <label class="layui-form-label ">结束时间:</label>
  33. <div class="div-width">{$detail.end_time}</div>
  34. </div>
  35. <div class="layui-form-item div-flex">
  36. <label class="layui-form-label ">主播昵称:</label>
  37. <div class="div-width">{$detail.anchor_name}</div>
  38. <label class="layui-form-label ">主播微信号:</label>
  39. <div class="div-width">{$detail.anchor_wechat}</div>
  40. </div>
  41. <div class="layui-form-item div-flex">
  42. <label class="layui-form-label ">分享卡片封面:</label>
  43. <div class="div-width"><img src="{$detail.share_img}" class="image-show image"></div>
  44. <label class="layui-form-label ">直播卡片封面:</label>
  45. <div class="div-width"><img src="{$detail.feeds_img}" class="image-show image"></div>
  46. </div>
  47. <div class="layui-form-item div-flex">
  48. <label class="layui-form-label ">直播间背景墙:</label>
  49. <div class="div-width"><img src="{$detail.cover_img}" class="image-show image"></div>
  50. <label class="layui-form-label ">直播间功能:</label>
  51. <div class="layui-input-inline" style="width: 320px">
  52. <input type="checkbox" disabled name="close_like" lay-skin="primary" title="开启点赞" {eq name="detail.close_like" value="0" }checked{/eq}>
  53. <input type="checkbox" disabled name="close_goods" lay-skin="primary" title="开启货架" {eq name="detail.close_goods" value="0" }checked{/eq}>
  54. <input type="checkbox" disabled name="close_comment" lay-skin="primary" title="开启评论" {eq name="detail.close_comment" value="0" }checked{/eq}>
  55. <input type="checkbox" disabled name="close_replay" lay-skin="primary" title="开启回放" {eq name="detail.close_replay" value="0" }checked{/eq}>
  56. <input type="checkbox" disabled name="close_share" lay-skin="primary" title="开启分享" {eq name="detail.close_share" value="0" }checked{/eq}>
  57. <input type="checkbox" disabled name="close_kf" lay-skin="primary" title="开启客服" {eq name="detail.close_kf" value="0" }checked{/eq}>
  58. <input type="checkbox" disabled name="is_feeds_public" lay-skin="primary" title="开启官方收录" {eq name="detail.is_feeds_public" value="1" }checked{/eq}>
  59. </div>
  60. </div>
  61. <div class="layui-form-item div-flex">
  62. <label class="layui-form-label">审核原因:</label>
  63. <div class="layui-input-inline">
  64. <textarea name="audit_remark" placeholder="请输入审核不通过的原因" class="layui-textarea audit_remark">{$detail.audit_remark}</textarea>
  65. </div>
  66. </div>
  67. <div class="layui-form-item" style="text-align: center">
  68. <div class="layui-input-block ">
  69. {eq name= "detail.audit_status" value="0"}
  70. <button type="button" class="layui-btn layui-btn-sm layui-btn-danger width_160 " id="fail">不通过</button>
  71. <button type="button" class="layui-btn layui-btn-sm layui-btn-normal width_160 " id="success">通过</button>
  72. {/eq}
  73. <button type="button" class="layui-btn layui-btn-sm layui-btn-primary width_160 " id="back">返回</button>
  74. </div>
  75. </div>
  76. </div>
  77. </div>
  78. <script type="text/javascript">
  79. layui.use(['form'], function () {
  80. var $ = layui.$;
  81. var id = $('.id').val();
  82. //主图放大
  83. $(document).on('click', '.image-show', function () {
  84. var src = $(this).attr('src');
  85. like.showImg(src, 400);
  86. });
  87. $('#back').click(function () {
  88. var index=parent.layer.getFrameIndex(window.name); //获取当前窗口的name
  89. parent.layer.close(index);
  90. parent.layui.table.reload('like-table-lists');
  91. return true;
  92. });
  93. // 审核通过
  94. $('#success').click(function () {
  95. var audit_remark = $('.audit_remark').val();
  96. layer.confirm('确认审核通过吗?', {
  97. btn: ['确认', '取消'] //按钮
  98. }, function () {
  99. like.ajax({
  100. url: '{:url("live.LiveRoom/audit")}'
  101. , data: {'id': id, 'status': 1, 'audit_remark': audit_remark}
  102. , type: 'post'
  103. , success: function (res) {
  104. if (res.code == 1) {
  105. layui.layer.msg(res.msg, {
  106. offset: '15px'
  107. , icon: 1
  108. , time: 1000
  109. }, function () {
  110. location.reload();
  111. });
  112. }
  113. }
  114. });
  115. });
  116. });
  117. // 审核失败
  118. $('#fail').click(function () {
  119. var audit_remark = $('.audit_remark').val();
  120. like.ajax({
  121. url: '{:url("live.LiveRoom/audit")}'
  122. , data: {'id': id, 'status': 2, 'audit_remark': audit_remark}
  123. , type: 'post'
  124. , success: function (res) {
  125. if (res.code == 1) {
  126. layui.layer.msg(res.msg, {
  127. offset: '15px'
  128. , icon: 1
  129. , time: 1000
  130. }, function () {
  131. location.reload();
  132. });
  133. }
  134. },
  135. });
  136. });
  137. });
  138. </script>