截流自动化的商城平台
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

index.html 3.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. {layout name="layout1" /}
  2. <style>
  3. .layui-form-label {
  4. width: 120px;
  5. }
  6. .layui-input-block {
  7. margin-left: 150px;
  8. }
  9. </style>
  10. <div class="wrapper">
  11. <div class="layui-card">
  12. <div class="layui-card-body">
  13. <div class="layui-collapse like-layui-collapse" lay-accordion="" style="border:1px dashed #c4c4c4">
  14. <div class="layui-colla-item">
  15. <h2 class="layui-colla-title like-layui-colla-title" style="background-color: #fff">操作提示</h2>
  16. <div class="layui-colla-content layui-show">
  17. <p>钉钉消息提醒</p>
  18. </div>
  19. </div>
  20. </div>
  21. <!-- 表单区域-->
  22. <div class="layui-form" style="margin-top: 15px;">
  23. <fieldset class="layui-elem-field">
  24. <legend>钉钉设置</legend>
  25. <br/>
  26. <div class="layui-form-item">
  27. <lable class="layui-form-label">钉钉地址:</lable>
  28. <div class="layui-input-block" style="width:800px;">
  29. <input type="text" name="dingding_url" value="{$config.dingding_url}" class="layui-input" />
  30. </div>
  31. </div>
  32. <div class="layui-form-item">
  33. <lable class="layui-form-label">钉钉秘钥:</lable>
  34. <div class="layui-input-block" style="width:800px;">
  35. <input type="text" name="dingding_pass" value="{$config.dingding_pass}" class="layui-input" />
  36. </div>
  37. </div>
  38. <div class="layui-form-item">
  39. <lable class="layui-form-label">钉钉用户:</lable>
  40. <div class="layui-input-block" style="width:800px;">
  41. <input type="text" name="dingding_user" value="{$config.dingding_user}" class="layui-input" />
  42. </div>
  43. </div>
  44. <div class="layui-form-item">
  45. <lable class="layui-form-label"></lable>
  46. <div class="layui-input-block">
  47. <span class="layui-word-aux">手机号码</span>
  48. </div>
  49. </div>
  50. </fieldset>
  51. <div class="layui-form-item">
  52. <lable class="layui-form-label"></lable>
  53. <div class="layui-input-block">
  54. <button class="layui-btn layui-btn-normal" lay-submit lay-filter="set">确定</button>
  55. </div>
  56. </div>
  57. </div>
  58. </div>
  59. </div>
  60. </div>
  61. <script>
  62. layui.config({
  63. version:"{$front_version}",
  64. base: '/static/lib/' //静态资源所在路径
  65. }).use(['form','element'], function(){
  66. var $ = layui.$,form = layui.form,element = layui.element;
  67. // 图片上传
  68. like.delUpload();
  69. $(document).on("click", "#image", function () {
  70. like.imageUpload({
  71. limit: 1,
  72. field: "image",
  73. that: $(this),
  74. content: '/shop/file/lists?type=10',
  75. });
  76. })
  77. form.on('submit(set)', function(data) {
  78. like.ajax({
  79. url:'{:url("content.app_service/set")}',
  80. data: data.field,
  81. type:"post",
  82. success:function(res)
  83. {
  84. if(res.code == 1)
  85. {
  86. layui.layer.msg(res.msg, {
  87. offset: '15px'
  88. , icon: 1
  89. , time: 1000
  90. });
  91. }
  92. }
  93. });
  94. });
  95. });
  96. </script>