截流自动化的商城平台
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

copyright.html 6.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  1. {layout name="layout1" /}
  2. <div class="wrapper">
  3. <div class="layui-card">
  4. <div class="layui-card-body">
  5. <!--操作提示-->
  6. <div class="layui-card-body">
  7. <div class="layui-collapse like-layui-collapse" lay-accordion="" style="border:1px dashed #c4c4c4">
  8. <div class="layui-colla-item">
  9. <h2 class="layui-colla-title like-layui-colla-title" style="background-color: #fff">操作提示</h2>
  10. <div class="layui-colla-content layui-show">
  11. <p>*填写的备案信息将会在小程序里展示,请填写完整信息</p>
  12. <p>*上传的资质信息将会在小程序里显示,请上传清晰的图片</p>
  13. </div>
  14. </div>
  15. </div>
  16. </div>
  17. <div class="layui-form" lay-filter="">
  18. <div class="layui-form-item">
  19. <fieldset class="layui-elem-field layui-field-title">
  20. <legend>备案信息</legend>
  21. </fieldset>
  22. </div>
  23. <div class="layui-form-item layui-col-sm6 layui-col-md4">
  24. <label class="layui-form-label">版权信息:</label>
  25. <div class="layui-input-block">
  26. <input type="text" name="company_name" lay-verType="tips" autocomplete="off"
  27. value="{$config.company_name}" class="layui-input">
  28. </div>
  29. <div class=" layui-form-mid layui-word-aux" style="left:110px">Copyright © 2019-2020 公司名称</div>
  30. </div>
  31. <div class="layui-form-item layui-col-sm6 layui-col-md4">
  32. <label class="layui-form-label" style="white-space: nowrap;">ICP备案号:</label>
  33. <div class="layui-input-block">
  34. <input type="text" name="number" lay-verType="tips" autocomplete="off" value="{$config.number}"
  35. class="layui-input">
  36. </div>
  37. </div>
  38. <div class="layui-form-item layui-col-sm6 layui-col-md4">
  39. <label class="layui-form-label" style="white-space: nowrap;">备案号链接:</label>
  40. <div class="layui-input-block">
  41. <input type="text" name="link" lay-verType="tips" autocomplete="off" value="{$config.link}"
  42. class="layui-input">
  43. </div>
  44. <div class=" layui-form-mid layui-word-aux" style="left:110px">
  45. 域名信息备案系统链接。http://beian.miit.gov.cn/
  46. </div>
  47. </div>
  48. <div class="layui-form-item">
  49. <fieldset class="layui-elem-field layui-field-title">
  50. <legend>资质信息</legend>
  51. </fieldset>
  52. </div>
  53. <div class="layui-form-item">
  54. <label class="layui-form-label">营业执照:</label>
  55. <div class="layui-input-inline">
  56. <div class="like-upload-image">
  57. {if !empty($config.business_license)}
  58. <div class="upload-image-div">
  59. <img src="{$config.business_license}" alt="img" style="background-color:#EEEEEE;height: 80px;width:auto">
  60. <input name="business_license" type="hidden" value="{$config.business_license}">
  61. <div class="del-upload-btn">x</div>
  62. </div>
  63. <div class="upload-image-elem" style="display:none;"><a class="add-upload-image business_license"> + 添加图片</a></div>
  64. {else}
  65. <div class="upload-image-elem"><a class="add-upload-image business_license"> + 添加图片</a></div>
  66. {/if}
  67. </div>
  68. </div>
  69. </div>
  70. <div class="layui-form-item" style="margin-bottom: 0px">
  71. <label class="layui-form-label">其他资质:</label>
  72. <div class="layui-input-block" id="qualifications_images">
  73. {if !empty($config.other_qualifications)}
  74. {foreach $config.other_qualifications as $val}
  75. <div class="upload-image-div">
  76. <img src="{$val}" alt="img" />
  77. <input type="hidden" name="other_qualifications[]" value="{$val}">
  78. <div class="del-upload-btn">x</div>
  79. </div>
  80. {/foreach}
  81. {/if}
  82. <div class="like-upload-image">
  83. <div class="upload-image-elem"><a class="add-upload-image" id="other_qualifications"> + 添加图片</a></div>
  84. </div>
  85. </div>
  86. </div>
  87. <div class="layui-form-item">
  88. <label class="layui-form-label"></label>
  89. <span style="color: #a3a3a3;font-size: 9px">最多上传5张</span>
  90. </div>
  91. <div class="layui-form-item">
  92. <div class="layui-input-block">
  93. <button class="layui-btn layui-btn-sm {$view_theme_color}" lay-submit lay-filter="setSubmit">确认
  94. </button>
  95. </div>
  96. </div>
  97. </div>
  98. </div>
  99. </div>
  100. </div>
  101. <script>
  102. layui.use(['table'], function () {
  103. var $ = layui.$
  104. , form = layui.form;
  105. form.on('submit(setSubmit)', function (data) {
  106. like.ajax({
  107. url: '{:url("setting.Basic/setCopyright")}'
  108. , data: data.field
  109. , type: 'post'
  110. , success: function (res) {
  111. layer.msg(res.msg, {
  112. offset: '15px'
  113. , icon: 1
  114. , time: 1500
  115. }, function () {
  116. location.href = location.href;
  117. });
  118. }
  119. });
  120. });
  121. like.delUpload();
  122. $(document).on("click", ".business_license", function () {
  123. like.imageUpload({
  124. limit: 1,
  125. field: "business_license",
  126. that: $(this)
  127. });
  128. });
  129. $(document).on("click", "#other_qualifications", function () {
  130. like.imageUpload({
  131. limit: 5,
  132. field: "other_qualifications[]",
  133. that: $(this),
  134. content: '/cY0aK2sG/file/lists?type=10'
  135. });
  136. })
  137. });
  138. </script>