截流自动化的商城平台
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

detail.html 3.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. {layout name="layout2" /}
  2. <style>
  3. .div-flex {
  4. display: flex;
  5. align-items: center;
  6. justify-content: left;
  7. }
  8. .layui-form-label {
  9. width: 100px;
  10. }
  11. .width-160 {
  12. width: 200px;
  13. }
  14. .layui-table th {
  15. text-align: center;
  16. }
  17. .table-margin {
  18. margin-left: 50px;
  19. margin-right: 50px;
  20. text-align: center;
  21. }
  22. .image {
  23. height: 80px;
  24. width: 80px;
  25. }
  26. .mt50 {
  27. margin-left: 50px;
  28. }
  29. html{
  30. background-color: #ffffff;
  31. }
  32. </style>
  33. <div class="layui-form" lay-filter="layuiadmin-form-ad_position" id="layuiadmin-form-category" style="padding: 20px 30px 100px 0;background-color: #ffffff">
  34. <div class="layui-form-item div-flex">
  35. <label class="layui-form-label ">模板名称:</label>
  36. <div class="width-160">{$detail.name}</div>
  37. </div>
  38. <div class="layui-form-item div-flex">
  39. <label class="layui-form-label">计费方式</label>
  40. <div class="width-160">{$detail.charge_way_text}</div>
  41. </div>
  42. <div class="layui-form-item">
  43. <label class="layui-form-label">备注</label>
  44. <div class="layui-input-inline">
  45. <textarea name="remark" placeholder="备注信息" class="layui-textarea">{$detail.remark}</textarea>
  46. </div>
  47. </div>
  48. <div class="layui-form-item">
  49. <label class="layui-form-label">配送区域</label>
  50. <div class="layui-input-block">
  51. <table class="layui-table">
  52. <colgroup>
  53. <col width="30%">
  54. <col width="15%">
  55. <col width="15%">
  56. <col width="15%">
  57. <col width="15%">
  58. </colgroup>
  59. <thead>
  60. <tr>
  61. <th>可配送区域</th>
  62. <th class="th_first_unit">首件 (个)</th>
  63. <th class="th_first_money">运费 (元)</th>
  64. <th class="th_continue_unit">续件 (个)</th>
  65. <th class="th_continue_money">续费 (元)</th>
  66. </tr>
  67. </thead>
  68. <tbody >
  69. {foreach $detail.configs as $k => $item}
  70. <tr>
  71. <th style="text-align: left">{$item.region_name}</th>
  72. <th>{$item.first_unit}</th>
  73. <th>{$item.first_money}</th>
  74. <th>{$item.continue_unit}</th>
  75. <th>{$item.continue_money}</th>
  76. </tr>
  77. {/foreach}
  78. </tbody>
  79. </table>
  80. </div>
  81. </div>
  82. </div>
  83. <div class="layui-form-item" >
  84. <div class="layui-input-block ">
  85. <button type="button" class="layui-btn layui-btn-primary " id="back">返回</button>
  86. </div>
  87. </div>
  88. <script>
  89. layui.config({
  90. version:"{$front_version}",
  91. base: '/static/lib/'
  92. }).extend({
  93. likeedit: 'likeedit/likeedit'
  94. }).use(['table', 'form', 'element', 'likeedit'], function() {
  95. var form = layui.form
  96. ,$ = layui.$
  97. ,table = layui.table
  98. , element = layui.element
  99. , likeedit = layui.likeedit;
  100. $('#back').click(function () {
  101. var index=parent.layer.getFrameIndex(window.name); //获取当前窗口的name
  102. parent.layer.close(index);
  103. parent.layui.table.reload('freight-lists');
  104. return true;
  105. });
  106. });
  107. </script>