platform-set.html 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. <form onsubmit="return false;" data-auto="true" action="{:url('save')}" method="post" class='layui-form layui-card' autocomplete="off">
  2. <div class="layui-card-body padding-40">
  3. <label class="layui-form-item block relative">
  4. <span class="color-green margin-right-10">首页公告</span><span class="nowrap color-desc">IndexNotice</span>
  5. <input name="index_notice" required placeholder="请输首页公告内容" value="{:sysconf('index_notice')}" class="layui-input">
  6. </label>
  7. <label class="layui-form-item block relative">
  8. <span class="color-green margin-right-10">会员体验</span><span class="nowrap color-desc">VipExperience</span>
  9. <select name="vip_experience" class="layui-select">
  10. <option value="0">请选择</option>
  11. {foreach $user_level as $k=>$v}
  12. <option {if $vip_experience == $k}selected{/if} value="{$k}">{$v}</option>
  13. {/foreach}
  14. </select>
  15. </label>
  16. <label class="layui-form-item block relative">
  17. <span class="color-green margin-right-10">平台名称</span><span class="nowrap color-desc">AppName</span>
  18. <input name="app_name" required placeholder="请输平台名称" value="{:sysconf('app_name')}" class="layui-input">
  19. </label>
  20. <div class="layui-form-item">
  21. <span class="color-green margin-right-10">平台LOGO</span><span class="nowrap color-desc">AppLogo</span>
  22. <div class="layui-input-line">
  23. <input name="app_logo" type="hidden" value="{:sysconf('app_logo')}">
  24. </div>
  25. </div>
  26. <div class="layui-form-item">
  27. <span class="color-green margin-right-10">客服二维码</span><span class="nowrap color-desc">ServiceQrCode</span>
  28. <div class="layui-input-line">
  29. <input name="service_qr_code" type="hidden" value="{:sysconf('service_qr_code')}">
  30. </div>
  31. </div>
  32. <label class="layui-form-item block relative">
  33. <span class="color-green margin-right-10">客服电话</span><span class="nowrap color-desc">ServicePhone</span>
  34. <input name="service_phone" required placeholder="请输首页公告内容" value="{:sysconf('service_phone')}" class="layui-input">
  35. </label>
  36. <label class="layui-form-item block relative">
  37. <span class="color-green margin-right-10">客服邮件</span><span class="nowrap color-desc">ServiceEmail</span>
  38. <input name="service_email" required placeholder="请输首页公告内容" value="{:sysconf('service_email')}" class="layui-input">
  39. </label>
  40. <div class="layui-form-item text-center margin-top-20">
  41. <button class="layui-btn" type="submit">保存配置</button>
  42. </div>
  43. </div>
  44. </form>
  45. <script>
  46. layui.use('laydate', function(){
  47. var laydate = layui.laydate;
  48. //时间选择器
  49. laydate.render({
  50. elem: '#start_time_cost'
  51. ,type: 'time'
  52. });
  53. laydate.render({
  54. elem: '#end_time_cost'
  55. ,type: 'time'
  56. });
  57. })
  58. $('[name="service_qr_code"]').uploadOneImage();
  59. $('[name="app_logo"]').uploadOneImage();
  60. </script>