my.html 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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" disabled name="code" lay-verify="required" value="{$code}" class="layui-input">
  12. </div>
  13. </div>
  14. </form>
  15. </div>
  16. </div>
  17. {include file="common/footer"/}
  18. <script>
  19. layui.use(['form', 'layer','upload','laydate'], function () {
  20. var form = layui.form, laydate=layui.laydate,layer = layui.layer,$= layui.jquery,upload = layui.upload;
  21. var info = '';
  22. var config = {$code|raw};
  23. console.log("code",config)
  24. //日期范围
  25. laydate.render({
  26. elem: '#date'
  27. ,range: true
  28. });
  29. form.val("form", config);
  30. // $('#site_logo').attr('src',config.code);
  31. if(info){
  32. }
  33. form.render();
  34. // form.on('submit(submit)', function (data) {
  35. // console.log("data",data.field)
  36. //
  37. // loading =layer.load(1, {shade: [0.1,'#fff']});
  38. // $.post("push", data.field, function (res) {
  39. // layer.close(loading);
  40. // if (res.code== 200) {
  41. // layer.msg(res.msg, {time: 1800, icon: 1}, function () {
  42. // // location.href = res.url;
  43. // // location.href = res.url;
  44. // });
  45. // } else {
  46. // layer.msg(res.msg, {time: 1800, icon: 2});
  47. // }
  48. // },"json");
  49. //
  50. // });
  51. });
  52. </script>