截流自动化的商城平台
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

audit.html 4.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. {layout name="layout2" /}
  2. <style>
  3. .image {
  4. height:60px;width: 60px;margin-right: 5px;
  5. }
  6. </style>
  7. <div class="layui-card layui-form" style="padding-bottom: 10%">
  8. <div class="layui-card-body">
  9. <input type="hidden" name="id" value="{$detail.id}">
  10. <div class="layui-form-item">
  11. <label class="layui-form-label">图片:</label>
  12. <div class="layui-input-block" style="width: 50%">
  13. {volist name="detail.images" id="vo"}
  14. <img src="{$vo.image}" class="image-show image">
  15. {/volist}
  16. </div>
  17. </div>
  18. <div class="layui-form-item">
  19. <label class="layui-form-label">文章内容:</label>
  20. <div class="layui-card-body">
  21. <p>{$detail.content}</p>
  22. </div>
  23. </div>
  24. <div class="layui-form-item">
  25. <label class="layui-form-label">分类:</label>
  26. <div class="layui-card-body">
  27. <p>{$detail.topic.cate.name}</p>
  28. </div>
  29. </div>
  30. <div class="layui-form-item">
  31. <label class="layui-form-label">话题:</label>
  32. <div class="layui-card-body">
  33. <p>{$detail.topic.name | default =""}</p>
  34. </div>
  35. </div>
  36. {if !empty($detail.goods_data)}
  37. <div class="layui-form-item">
  38. <label class="layui-form-label">关联商品:</label>
  39. <div class="layui-input-block" style="width: 50%">
  40. <table class="layui-table">
  41. <tbody>
  42. {foreach $detail.goods_data as $k => $goods}
  43. <tr>
  44. <td>
  45. <div style="text-align: left">
  46. <div class="layui-col-md3">
  47. <img src="{$goods.image}" class="image-show image" >
  48. </div>
  49. <div class="layui-col-md9">
  50. <p style="margin-top: 10px">{$goods.name}</p>
  51. </div>
  52. </div>
  53. </td>
  54. </tr>
  55. {/foreach}
  56. </tbody>
  57. </table>
  58. </div>
  59. </div>
  60. {/if}
  61. {if !empty($detail.shop_data)}
  62. <div class="layui-form-item">
  63. <label class="layui-form-label">关联商品:</label>
  64. <div class="layui-input-block" style="width: 50%">
  65. <table class="layui-table">
  66. <tbody>
  67. {foreach $detail.shop_data as $k => $shop}
  68. <tr>
  69. <td>
  70. <div style="text-align: left">
  71. <div class="layui-col-md3">
  72. <img src="{$shop.logo}" class="image-show image" >
  73. </div>
  74. <div class="layui-col-md9">
  75. <p style="margin-top: 10px">{$shop.name}</p>
  76. </div>
  77. </div>
  78. </td>
  79. </tr>
  80. {/foreach}
  81. </tbody>
  82. </table>
  83. </div>
  84. </div>
  85. {/if}
  86. <div class="layui-form-item">
  87. <label class="layui-form-label"><span style="color:red;">*</span>审核状态:</label>
  88. <div class="layui-input-block">
  89. <input type="radio" name="status" value="1" title="通过" {if $detail.status}checked{/if}>
  90. <input type="radio" name="status" value="2" title="拒绝" {if !$detail.status}checked{/if}>
  91. </div>
  92. </div>
  93. <div class="layui-form-item">
  94. <label class="layui-form-label"><span style="color:red;">*</span>审核说明:</label>
  95. <div class="layui-input-block" style="width: 50%">
  96. <textarea class="layui-textarea" name="audit_remark"></textarea>
  97. </div>
  98. </div>
  99. <div class="layui-form-item layui-hide">
  100. <input type="button" lay-submit lay-filter="addSubmit" id="addSubmit" value="确认">
  101. </div>
  102. </div>
  103. </div>
  104. <script>
  105. layui.config({
  106. version: "{$front_version}",
  107. base: '/static/lib/'
  108. }).use(['form'], function () {
  109. var form = layui.form;
  110. //图片放大
  111. $(document).on('click', '.image-show', function () {
  112. var src = $(this).attr('src');
  113. like.showImg(src,400);
  114. });
  115. });
  116. </script>