config.html 1.1 KB

123456789101112131415161718192021222324252627282930
  1. <!-- 辅助空白 -->
  2. <form onchange="changeForm($(this),16)">
  3. <input type="hidden" name="model_id" value="16" />
  4. <h2 class="attr-title">辅助空白</h2>
  5. <div class="layui-form-item">
  6. <label class="layui-form-label sm">背景颜色</label>
  7. <div class="layui-input-block">
  8. <div class="color-wrapper">
  9. <input data-js="color" type="text" name="back_color" value="{$config_info.back_color|default=''}" />
  10. </div>
  11. </div>
  12. </div>
  13. <div class="layui-form-item">
  14. <label class="layui-form-label sm">空白高度</label>
  15. <div class="layui-input-block">
  16. <div class="range-wrapper">
  17. <input type="range" name="height" value="{$config_info.height|default='10'}" min="10" onchange="$(this).next().text($(this).val())">
  18. <span>{$config_info.height|default='10'}</span>
  19. </div>
  20. </div>
  21. </div>
  22. </form>
  23. <script>
  24. if(typeof(loadConfig16)=='undefined'){
  25. function loadConfig16(obj){
  26. obj.find('[data-js="color"]').colorpicker({showOn: 'both'});
  27. }
  28. }
  29. </script>