截流自动化的商城平台
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

edit.html 5.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. {layout name="layout2" /}
  2. <style>
  3. .layui-form {
  4. margin: 5px;
  5. }
  6. .layui-form-label {
  7. width: 120px;
  8. text-align: left;
  9. padding-left:30px;
  10. }
  11. .layui-input {
  12. width: 300px;
  13. }
  14. .layui-textarea {
  15. width: 300px;
  16. }
  17. .reqRed:before {
  18. content: '*';
  19. color: red;
  20. margin-right: 5px;
  21. }
  22. .checkbox-width{
  23. width: 120px;
  24. }
  25. </style>
  26. <form class="layui-form">
  27. <input type="hidden" name="id" value="{$detail.id}" />
  28. <div class="layui-form-item">
  29. <label class="layui-form-label reqRed">等级名称</label>
  30. <div class="layui-input-block">
  31. <input type="text" name="name" value="{$detail.name}" required lay-verify="required" autocomplete="off" class="layui-input" />
  32. </div>
  33. </div>
  34. <div class="layui-form-item">
  35. <label class="layui-form-label reqRed">等级级别</label>
  36. <div class="layui-inline">
  37. <input type="number" min="2" name="weights" value="{$detail.weights}" required lay-verify="required" autocomplete="off" class="layui-input" />
  38. </div>
  39. <div class="layui-inline">
  40. </div>
  41. </div>
  42. <div class="layui-form-item">
  43. <label class="layui-form-label">等级描述</label>
  44. <div class="layui-input-block">
  45. <textarea name="remark" class="layui-textarea">{$detail.remark}</textarea>
  46. </div>
  47. </div>
  48. <div class="layui-form-item">
  49. <label class="layui-form-label reqRed">一级佣金比例</label>
  50. <div class="layui-inline">
  51. <input type="number" min="0" name="first_ratio" value="{$detail.first_ratio}" required lay-verify="required" autocomplete="off" class="layui-input" />
  52. </div>
  53. <div class="layui-inline">
  54. %
  55. </div>
  56. </div>
  57. <div class="layui-form-item">
  58. <label class="layui-form-label reqRed">二级佣金比例</label>
  59. <div class="layui-inline">
  60. <input type="number" min="0" name="second_ratio" value="{$detail.second_ratio}" required lay-verify="required" autocomplete="off" class="layui-input" />
  61. </div>
  62. <div class="layui-inline">
  63. %
  64. </div>
  65. </div>
  66. <div class="layui-form-item">
  67. <label class="layui-form-label reqRed">等级条件</label>
  68. <div class="layui-inline">
  69. <input type="radio" name="update_relation" value="1" {if $detail.update_relation == 1}checked{/if} title="满足以下任一条件">
  70. <input type="radio" name="update_relation" value="2" {if $detail.update_relation == 2}checked{/if} title="满足以下全部条件">
  71. </div>
  72. </div>
  73. <div class="layui-form-item">
  74. <label class="layui-form-label"></label>
  75. <div class="layui-inline checkbox-width">
  76. <input type="checkbox" lay-skin="primary" name="update_condition[]" value="singleConsumptionAmount" title="单笔消费金额" {if in_array('singleConsumptionAmount', $detail.update_condition.keys)}checked{/if}>
  77. </div>
  78. <div class="layui-inline">
  79. <input type="number" min="0" name="singleConsumptionAmount" value="{$detail.update_condition.data.singleConsumptionAmount}" class="layui-input" />
  80. </div>
  81. <div class="layui-inline">
  82. </div>
  83. </div>
  84. <div class="layui-form-item">
  85. <label class="layui-form-label"></label>
  86. <div class="layui-inline checkbox-width">
  87. <input type="checkbox" lay-skin="primary" name="update_condition[]" value="cumulativeConsumptionAmount" title="累计消费金额" {if in_array('cumulativeConsumptionAmount', $detail.update_condition.keys)}checked{/if}>
  88. </div>
  89. <div class="layui-inline">
  90. <input type="number" min="0" name="cumulativeConsumptionAmount" value="{$detail.update_condition.data.cumulativeConsumptionAmount}" class="layui-input" />
  91. </div>
  92. <div class="layui-inline">
  93. </div>
  94. </div>
  95. <div class="layui-form-item">
  96. <label class="layui-form-label"></label>
  97. <div class="layui-inline checkbox-width">
  98. <input type="checkbox" lay-skin="primary" name="update_condition[]" value="cumulativeConsumptionTimes" title="累计消费次数" {if in_array('cumulativeConsumptionTimes', $detail.update_condition.keys)}checked{/if}>
  99. </div>
  100. <div class="layui-inline">
  101. <input type="number" min="0" name="cumulativeConsumptionTimes" value="{$detail.update_condition.data.cumulativeConsumptionTimes}" class="layui-input" />
  102. </div>
  103. <div class="layui-inline">
  104. </div>
  105. </div>
  106. <div class="layui-form-item">
  107. <label class="layui-form-label"></label>
  108. <div class="layui-inline checkbox-width">
  109. <input type="checkbox" lay-skin="primary" name="update_condition[]" value="returnedCommission" title="已结算佣金收入" {if in_array('returnedCommission', $detail.update_condition.keys)}checked{/if}>
  110. </div>
  111. <div class="layui-inline">
  112. <input type="number" min="0" name="returnedCommission" value="{$detail.update_condition.data.returnedCommission}" class="layui-input" />
  113. </div>
  114. <div class="layui-inline">
  115. </div>
  116. </div>
  117. <div class="layui-form-item">
  118. <div class="layui-input-block layui-hide">
  119. <button class="layui-btn" lay-submit lay-filter="editSubmit" id="editSubmit">立即提交</button>
  120. </div>
  121. </div>
  122. </form>
  123. <script>
  124. layui.config({
  125. version: "{$front_version}",
  126. base: '/static/lib/'
  127. }).use(['element', 'form'], function () {
  128. var $ = layui.$
  129. , form = layui.form
  130. , layer = layui.layer;
  131. });
  132. </script>