截流自动化的商城平台
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.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. {layout name="layout1" /}
  2. <style>
  3. .copy {
  4. margin-top: 5px;
  5. margin-left: 30px
  6. }
  7. </style>
  8. <div class="wrapper">
  9. <div class="layui-card">
  10. <div class="layui-card-body">
  11. <div class="layui-card-body">
  12. <div class="layui-collapse like-layui-collapse" lay-accordion="" style="border:1px dashed #c4c4c4">
  13. <div class="layui-colla-item">
  14. <h2 class="layui-colla-title like-layui-colla-title" style="background-color: #fff">操作提示</h2>
  15. <div class="layui-colla-content layui-show">
  16. <p>*APP相关设置,包括登录设置,下载链接设置</p>
  17. </div>
  18. </div>
  19. </div>
  20. </div>
  21. <div class="layui-form" lay-filter="">
  22. <div class="layui-form-item">
  23. <label class="layui-form-label" style="white-space: nowrap">苹果APP下载链接:</label>
  24. <div class="layui-input-inline" style="width: 300px;left: 30px">
  25. <input type="text" name="line_ios" lay-verType="tips" autocomplete="off"
  26. value="{$config.line_ios}" class="layui-input">
  27. <label class="layui-form-mid layui-word-aux"
  28. style="white-space: nowrap">苹果APP下载链接,可以配置应用宝下载链接</label>
  29. </div>
  30. <button type="button" class="layui-btn layui-btn-primary layui-btn-sm copy">复制</button>
  31. </div>
  32. <div class="layui-form-item">
  33. <label class="layui-form-label" style="white-space: nowrap">安卓APP下载链接:</label>
  34. <div class="layui-input-inline" style="width: 300px;left: 30px">
  35. <input type="text" name="line_android" lay-verType="tips" autocomplete="off"
  36. value="{$config.line_android}" class="layui-input">
  37. <label class="layui-form-mid layui-word-aux"
  38. style="white-space: nowrap">安卓APP下载链接,可以配置应用宝下载链接</label>
  39. </div>
  40. <button type="button" class="layui-btn layui-btn-primary layui-btn-sm copy">复制</button>
  41. </div>
  42. <div class="layui-form-item">
  43. <label class="layui-form-label" style="white-space: nowrap">APP下载引导文案:</label>
  44. <div class="layui-input-inline" style="width: 300px;left: 30px">
  45. <input type="text" name="download_doc" lay-verType="tips" autocomplete="off"
  46. value="{$config.download_doc}" class="layui-input">
  47. <label class="layui-form-mid layui-word-aux" style="white-space: nowrap">APP下载引导文案,默认文案:欢迎点击下载APP~</label>
  48. </div>
  49. <button type="button" class="layui-btn layui-btn-primary layui-btn-sm copy">复制</button>
  50. </div>
  51. <div class="layui-form-item">
  52. <label class="layui-form-label" style="white-space: nowrap;left: 45px">弹出协议:</label>
  53. <div class="layui-input-block" style="left: 30px">
  54. <input type="checkbox" name="agreement" lay-skin="switch" lay-text="是|否" {if
  55. condition="$config.agreement eq 1" }checked{/if}>
  56. </div>
  57. <label class="layui-form-mid layui-word-aux"
  58. style="white-space: nowrap;left: 30px">APP启动后强制弹窗同意隐私协议</label>
  59. </div>
  60. <div class="layui-form-item">
  61. <label class="layui-form-label" style="white-space: nowrap;left:30px">开启微信登录:</label>
  62. <div class="layui-input-block" style="left: 30px">
  63. <input type="checkbox" name="wechat_login" lay-skin="switch" lay-text="是|否" {if
  64. condition="$config.wechat_login eq 1" }checked{/if}>
  65. </div>
  66. <label class="layui-form-mid layui-word-aux" style="white-space: nowrap;left: 30px">选择开启,则表示APP允许微信授权登录</label>
  67. </div>
  68. <div class="layui-form-item">
  69. <div class="layui-input-block" style="left: 30px">
  70. <button class="layui-btn {$view_theme_color}" lay-submit lay-filter="addSubmit">确认</button>
  71. </div>
  72. </div>
  73. </div>
  74. </div>
  75. </div>
  76. </div>
  77. <script>
  78. layui.use(['table', 'form'], function () {
  79. var $ = layui.$
  80. , form = layui.form;
  81. form.on('submit(addSubmit)', function (data) {
  82. like.ajax({
  83. url: '{:url("setting.Basic/setApp")}'
  84. , data: data.field
  85. , type: 'post'
  86. , success: function (res) {
  87. if (res.code == 1) {
  88. layer.msg(res.msg, {
  89. offset: '15px'
  90. , icon: 1
  91. , time: 1500
  92. }, function () {
  93. location.href = location.href;
  94. });
  95. }
  96. }
  97. });
  98. });
  99. //复制
  100. $(document).on('click', '.copy', function () {
  101. var copyText = $(this).prev().children();
  102. copyText.select();
  103. document.execCommand("Copy");
  104. });
  105. });
  106. </script>