form.html 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <style>
  2. .layui-card-body
  3. {
  4. height: 60%;
  5. }
  6. </style>
  7. <div class="layui-card-body">
  8. <label class="layui-form-label label-required">商品详情</label>
  9. <div class="layui-input-block">
  10. <table class="layui-table margin-top-10" lay-skin="line">
  11. <thead>
  12. <tr>
  13. <th class='text-left nowrap'>名称</th>
  14. <th class='text-left nowrap'>图片</th>
  15. <th class='text-left nowrap'>数量</th>
  16. <th class='text-left nowrap'>明信片</th>
  17. </tr>
  18. </thead>
  19. <tbody class="no_html">
  20. {foreach :json_decode($vo.pro_info,true) as $sk=>$sv}
  21. <tr class="no_detail">
  22. <td class='text-left nowrap'>
  23. <input class='layui-input' readonly style="background-color: #e6e6e6" value="{$sv['case_name']}"/>
  24. </td>
  25. <td class='text-left nowrap'><img src="{$vo.case_cover|default=''}" width="30px"></td>
  26. <td class='text-left nowrap'>
  27. <input class='layui-input' readonly style="background-color: #e6e6e6" value="{$sv['num']}"/>
  28. </td>
  29. <td class='text-left nowrap'>
  30. <input class='layui-input' readonly style="background-color: #e6e6e6" value="{$sv['crystal']}"/>
  31. </td>
  32. </tr>
  33. {/foreach}
  34. </tbody>
  35. </table>
  36. </div>
  37. </div>
  38. <script>
  39. window.form.render();
  40. </script>