截流自动化的商城平台
Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

index.html 7.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  1. {layout name="layout1" /}
  2. <style>
  3. .layui-form-label {
  4. width: 220px;
  5. }
  6. </style>
  7. <div class="wrapper">
  8. <div class="layui-card">
  9. <div class="layui-card-body">
  10. <div class="layui-collapse like-layui-collapse" lay-accordion="" style="border:1px dashed #c4c4c4">
  11. <div class="layui-colla-item">
  12. <h2 class="layui-colla-title like-layui-colla-title" style="background-color: #fff">操作提示</h2>
  13. <div class="layui-colla-content layui-show">
  14. <p>*设置订单自动取消、完成时间,订单售后退款时长等信息</p>
  15. </div>
  16. </div>
  17. </div>
  18. <!-- 表单区域-->
  19. <div class="layui-form" style="margin-top: 15px;">
  20. <div class="layui-form-item">
  21. <lable class="layui-form-label">商品库存显示:</lable>
  22. <div class="layui-input-block">
  23. <input type="radio" name="is_show_stock" value="1" title="显示" {if $config.is_show_stock ==1 }checked{/if} />
  24. <input type="radio" name="is_show_stock" value="0" title="不显示" {if $config.is_show_stock == 0 }checked{/if} />
  25. </div>
  26. </div>
  27. <div class="layui-form-item">
  28. <lable class="layui-form-label"></lable>
  29. <div class="layui-input-block">
  30. <span class="layui-word-aux">商品详情显示剩余库存数量</span>
  31. </div>
  32. </div>
  33. <div class="layui-form-item">
  34. <lable class="layui-form-label">成长值赠送比例:</lable>
  35. <div class="layui-inline">
  36. <input type="number" min="0" name="money_to_growth" value="{$config.money_to_growth}" class="layui-input" step="0.01" min="0" onkeyup="this.value= this.value.match(/\d+(\.\d{0,2})?/) ? this.value.match(/\d+(\.\d{0,2})?/)[0] : ''">
  37. </div>
  38. <div class="layui-inline">
  39. 元可赠送1成长值
  40. </div>
  41. </div>
  42. <div class="layui-form-item">
  43. <lable class="layui-form-label"></lable>
  44. <div class="layui-input-block">
  45. <span class="layui-word-aux">填写消费多少元可以赠送1成长值,不填或填0表示消费不送成长值</span>
  46. </div>
  47. </div>
  48. <div class="layui-form-item">
  49. <lable class="layui-form-label">未付款订单自动取消时长:</lable>
  50. <div class="layui-inline">
  51. <input type="number" min="0" lay-verify="number|Ndouble|max" name="unpaid_order_cancel_time" value="{$config.unpaid_order_cancel_time}" class="layui-input" step="0.01" min="0" onkeyup="this.value= this.value.match(/\d+(\.\d{0,2})?/) ? this.value.match(/\d+(\.\d{0,2})?/)[0] : ''">
  52. </div>
  53. <div class="layui-inline">
  54. 分钟
  55. </div>
  56. </div>
  57. <div class="layui-form-item">
  58. <lable class="layui-form-label"></lable>
  59. <div class="layui-input-block">
  60. <span class="layui-word-aux">未付款订单多久时间后自动关闭,不填或填0表示订单不自动关闭</span>
  61. </div>
  62. </div>
  63. <div class="layui-form-item">
  64. <lable class="layui-form-label">已支付订单允许取消时长:</lable>
  65. <div class="layui-inline">
  66. <input type="number" min="0" lay-verify="number|Ndouble|max" name="paid_order_cancel_time" value="{$config.paid_order_cancel_time}" class="layui-input" step="0.01" min="0" onkeyup="this.value= this.value.match(/\d+(\.\d{0,2})?/) ? this.value.match(/\d+(\.\d{0,2})?/)[0] : ''">
  67. </div>
  68. <div class="layui-inline">
  69. 分钟
  70. </div>
  71. </div>
  72. <div class="layui-form-item">
  73. <lable class="layui-form-label"></lable>
  74. <div class="layui-input-block">
  75. <span class="layui-word-aux">已支付未发货的订单多久时间内允许客户自行取消</span>
  76. </div>
  77. </div>
  78. <div class="layui-form-item">
  79. <lable class="layui-form-label">已发货订单自动完成时长:</lable>
  80. <div class="layui-inline">
  81. <input type="number" min="0" name="order_auto_receipt_days" value="{$config.order_auto_receipt_days}" class="layui-input" step="0.01" min="0" onkeyup="this.value= this.value.match(/\d+(\.\d{0,2})?/) ? this.value.match(/\d+(\.\d{0,2})?/)[0] : ''">
  82. </div>
  83. <div class="layui-inline">
  84. </div>
  85. </div>
  86. <div class="layui-form-item">
  87. <lable class="layui-form-label"></lable>
  88. <div class="layui-input-block">
  89. <span class="layui-word-aux">已发货订单多久时间后自动收货完成订单,不填或填0表示订单不自动收货完成订单</span>
  90. </div>
  91. </div>
  92. <div class="layui-form-item">
  93. <lable class="layui-form-label">已完成订单售后退款时长:</lable>
  94. <div class="layui-inline">
  95. <input type="number" min="0" name="order_after_sale_days" value="{$config.order_after_sale_days}" class="layui-input" step="0.01" min="0" onkeyup="this.value= this.value.match(/\d+(\.\d{0,2})?/) ? this.value.match(/\d+(\.\d{0,2})?/)[0] : ''">
  96. </div>
  97. <div class="layui-inline">
  98. </div>
  99. </div>
  100. <div class="layui-form-item">
  101. <lable class="layui-form-label"></lable>
  102. <div class="layui-input-block">
  103. <span class="layui-word-aux">已完成订单多久时间内允许售后退款,不填或填0表示订单不限制售后退款时长</span>
  104. </div>
  105. </div>
  106. <div class="layui-form-item">
  107. <lable class="layui-form-label"></lable>
  108. <div class="layui-input-block">
  109. <button class="layui-btn layui-btn-normal" lay-submit lay-filter="set">确定</button>
  110. </div>
  111. </div>
  112. </div>
  113. </div>
  114. </div>
  115. </div>
  116. <script>
  117. layui.config({
  118. version:"{$front_version}",
  119. base: '/static/lib/' //静态资源所在路径
  120. }).use(['form','element'], function(){
  121. var $ = layui.$,form = layui.form,element = layui.element;
  122. form.verify({
  123. Ndouble:[
  124. /^[0-9]+([.]{1}[0-9]+){0,1}$/
  125. ,'只能输入正数哦'
  126. ],
  127. max: function (value) {
  128. if (value > 60) {
  129. return '最大值不能超过60';
  130. }
  131. }
  132. });
  133. form.on('submit(set)', function(data) {
  134. like.ajax({
  135. url:'{:url("setting.transaction/set")}',
  136. data: data.field,
  137. type:"post",
  138. success:function(res)
  139. {
  140. if(res.code == 1)
  141. {
  142. layui.layer.msg(res.msg, {
  143. offset: '15px'
  144. , icon: 1
  145. , time: 1000
  146. });
  147. }
  148. }
  149. });
  150. });
  151. });
  152. </script>