截流自动化的商城平台
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

settlement.html 3.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. {layout name="layout1" /}
  2. <style>
  3. .layui-panel {
  4. margin: 5px;
  5. }
  6. .layui-form-label {
  7. width: 120px;
  8. text-align: left;
  9. padding-left:30px;
  10. }
  11. </style>
  12. <div class="wrapper">
  13. <!-- 面板 -->
  14. <div class="layui-panel">
  15. <!-- 表单 -->
  16. <form class="layui-form">
  17. <!-- 字段集区块 -->
  18. <fieldset class="layui-elem-field layui-field-title">
  19. <legend>结算设置</legend>
  20. <div class="layui-field-box">
  21. <div class="layui-form-item">
  22. <label class="layui-form-label">佣金计算方式</label>
  23. <div class="layui-input-block">
  24. <input type="radio" name="cale_method" value="1" title="商品实际支付金额" {if $config.cale_method == 1}checked{/if}>
  25. </div>
  26. </div>
  27. <div class="layui-form-item">
  28. <label class="layui-form-label"></label>
  29. <div class="layui-input-block layui-word-aux">
  30. 根据商品实际支付金额及相应的佣金比例计算佣金
  31. </div>
  32. </div>
  33. <div class="layui-form-item">
  34. <label class="layui-form-label">结算时机</label>
  35. <div class="layui-inline">
  36. <input type="radio" name="settlement" value="1" title="订单完成后" {if $config.settlement == 1}checked{/if}>
  37. </div>
  38. <div class="layui-inline">
  39. <input type="number" min="0" name="settlement_days" value="{$config.settlement_days}" class="layui-input" />
  40. </div>
  41. <div class="layui-inline">
  42. </div>
  43. </div>
  44. <div class="layui-form-item">
  45. <label class="layui-form-label"></label>
  46. <div class="layui-input-block layui-word-aux">
  47. 预估佣金结算后无法进行回收,请谨慎设置结算天数
  48. </div>
  49. </div>
  50. <div class="layui-form-item">
  51. <label class="layui-form-label"></label>
  52. <div class="layui-input-block">
  53. <button class="layui-btn layui-bg-blue layui-btn layui-btn-sm" lay-submit lay-filter="*">保存设置</button>
  54. </div>
  55. </div>
  56. </div>
  57. </fieldset>
  58. </form>
  59. </div>
  60. </div>
  61. <script>
  62. layui.config({
  63. version: "{$front_version}",
  64. base: '/static/lib/'
  65. }).use(['element', 'form'], function () {
  66. var $ = layui.$
  67. , form = layui.form
  68. , layer = layui.layer;
  69. form.on('submit(*)', function (data) {
  70. like.ajax({
  71. url: '{:url("distribution.distribution_setting/set")}'
  72. , data: data.field
  73. , type: 'post'
  74. , success: function (res) {
  75. layer.msg(res.msg);
  76. },
  77. });
  78. return false; //阻止表单跳转
  79. });
  80. });
  81. </script>