addbts.html 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. {include file="common/header"/}
  2. <div class="LM-container">
  3. <div class="LM-main">
  4. <fieldset class="layui-elem-field layui-field-title">
  5. </fieldset>
  6. <form class="layui-form layui-form-pane" lay-filter="form">
  7. <input type="hidden" name="id" id="id">
  8. <div class="layui-form-item">
  9. <label class="layui-form-label">数量</label>
  10. <div class="layui-input-inline">
  11. <input type="text" name="num" lay-verify="required" placeholder="数量" class="layui-input">
  12. </div>
  13. </div>
  14. <div class="layui-form-item">
  15. <label class="layui-form-label">矿池数量</label>
  16. <div class="layui-input-inline">
  17. <input type="text" name="mining" lay-verify="required" placeholder="矿池数量" class="layui-input">
  18. </div>
  19. </div>
  20. <div class="layui-form-item">
  21. <label class="layui-form-label">放大额度</label>
  22. <div class="layui-input-inline">
  23. <input type="text" name="enlarge_quota" lay-verify="required" placeholder="放大额度" class="layui-input">
  24. </div>
  25. </div>
  26. <div class="layui-form-item">
  27. <label class="layui-form-label">保证金</label>
  28. <div class="layui-input-inline">
  29. <input type="text" name="ensure_money" lay-verify="required" placeholder="保证金" class="layui-input">
  30. </div>
  31. </div>
  32. <div class="layui-form-item">
  33. <label class="layui-form-label">通证余额 手续费</label>
  34. <div class="layui-input-inline">
  35. <input type="text" name="tong_money" lay-verify="required" placeholder="通证余额 手续费" class="layui-input">
  36. </div>
  37. </div>
  38. <div class="layui-form-item">
  39. <label class="layui-form-label">出局手续费</label>
  40. <div class="layui-input-inline">
  41. <input type="text" name="out_game" lay-verify="required" placeholder="出局手续费" class="layui-input">
  42. </div>
  43. </div>
  44. <div class="layui-form-item">
  45. <label class="layui-form-label">直推获得</label>
  46. <div class="layui-input-inline">
  47. <input type="text" name="direct_push" lay-verify="required" placeholder="直推获得" class="layui-input">
  48. </div>
  49. </div>
  50. <div class="layui-form-item">
  51. <label class="layui-form-label">次推获得</label>
  52. <div class="layui-input-inline">
  53. <input type="text" name="second_push" lay-verify="required" placeholder="次推获得" class="layui-input">
  54. </div>
  55. </div>
  56. <div class="layui-form-item">
  57. <label class="layui-form-label">违约金</label>
  58. <div class="layui-input-inline">
  59. <input type="text" name="breach_money" lay-verify="required" placeholder="违约金" class="layui-input">
  60. </div>
  61. </div>
  62. <div class="layui-form-item">
  63. <div class="layui-input-inline">
  64. <button type="button" class="layui-btn" lay-submit="" lay-filter="submit">{:lang('submit')}</button>
  65. <a href="{:url('bts')}" class="layui-btn layui-btn-primary">{:lang('back')}</a>
  66. </div>
  67. </div>
  68. </form>
  69. </div>
  70. </div>
  71. {include file="common/footer"/}
  72. <script>
  73. layui.use(['form', 'layer','upload','laydate'], function () {
  74. var form = layui.form, laydate=layui.laydate,layer = layui.layer,$= layui.jquery,upload = layui.upload;
  75. var info = '';
  76. //日期范围
  77. laydate.render({
  78. elem: '#date'
  79. ,range: true
  80. });
  81. info = {:json_encode($info)};
  82. console.log("info",info)
  83. if(info){
  84. form.val("form", info);
  85. }
  86. form.render();
  87. form.on('submit(submit)', function (data) {
  88. loading =layer.load(1, {shade: [0.1,'#fff']});
  89. $.post("", data.field, function (res) {
  90. layer.close(loading);
  91. if (res.code== 200) {
  92. layer.msg(res.msg, {time: 1800, icon: 1}, function () {
  93. });
  94. } else {
  95. layer.msg(res.msg, {time: 1800, icon: 2});
  96. }
  97. },"json");
  98. });
  99. });
  100. </script>