123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118 |
- {include file="common/header"/}
- <div class="LM-container">
- <div class="LM-main">
- <fieldset class="layui-elem-field layui-field-title">
- </fieldset>
- <form class="layui-form layui-form-pane" lay-filter="form">
- <input type="hidden" name="id" id="id">
- <div class="layui-form-item">
- <label class="layui-form-label">数量</label>
- <div class="layui-input-inline">
- <input type="text" name="num" lay-verify="required" placeholder="数量" class="layui-input">
- </div>
- </div>
- <div class="layui-form-item">
- <label class="layui-form-label">矿池数量</label>
- <div class="layui-input-inline">
- <input type="text" name="mining" lay-verify="required" placeholder="矿池数量" class="layui-input">
- </div>
- </div>
- <div class="layui-form-item">
- <label class="layui-form-label">放大额度</label>
- <div class="layui-input-inline">
- <input type="text" name="enlarge_quota" lay-verify="required" placeholder="放大额度" class="layui-input">
- </div>
- </div>
- <div class="layui-form-item">
- <label class="layui-form-label">保证金</label>
- <div class="layui-input-inline">
- <input type="text" name="ensure_money" lay-verify="required" placeholder="保证金" class="layui-input">
- </div>
- </div>
- <div class="layui-form-item">
- <label class="layui-form-label">通证余额 手续费</label>
- <div class="layui-input-inline">
- <input type="text" name="tong_money" lay-verify="required" placeholder="通证余额 手续费" class="layui-input">
- </div>
- </div>
- <div class="layui-form-item">
- <label class="layui-form-label">出局手续费</label>
- <div class="layui-input-inline">
- <input type="text" name="out_game" lay-verify="required" placeholder="出局手续费" class="layui-input">
- </div>
- </div>
- <div class="layui-form-item">
- <label class="layui-form-label">直推获得</label>
- <div class="layui-input-inline">
- <input type="text" name="direct_push" lay-verify="required" placeholder="直推获得" class="layui-input">
- </div>
- </div>
- <div class="layui-form-item">
- <label class="layui-form-label">次推获得</label>
- <div class="layui-input-inline">
- <input type="text" name="second_push" lay-verify="required" placeholder="次推获得" class="layui-input">
- </div>
- </div>
- <div class="layui-form-item">
- <label class="layui-form-label">违约金</label>
- <div class="layui-input-inline">
- <input type="text" name="breach_money" lay-verify="required" placeholder="违约金" class="layui-input">
- </div>
- </div>
- <div class="layui-form-item">
- <div class="layui-input-inline">
- <button type="button" class="layui-btn" lay-submit="" lay-filter="submit">{:lang('submit')}</button>
- <a href="{:url('bts')}" class="layui-btn layui-btn-primary">{:lang('back')}</a>
- </div>
- </div>
- </form>
- </div>
- </div>
- {include file="common/footer"/}
- <script>
- layui.use(['form', 'layer','upload','laydate'], function () {
- var form = layui.form, laydate=layui.laydate,layer = layui.layer,$= layui.jquery,upload = layui.upload;
- var info = '';
- //日期范围
- laydate.render({
- elem: '#date'
- ,range: true
- });
- info = {:json_encode($info)};
- console.log("info",info)
- if(info){
- form.val("form", info);
- }
- form.render();
- form.on('submit(submit)', function (data) {
- loading =layer.load(1, {shade: [0.1,'#fff']});
- $.post("", data.field, function (res) {
- layer.close(loading);
- if (res.code== 200) {
- layer.msg(res.msg, {time: 1800, icon: 1}, function () {
- });
- } else {
- layer.msg(res.msg, {time: 1800, icon: 2});
- }
- },"json");
- });
- });
- </script>
|