123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119 |
- {layout name="layout1" /}
- <style>
- .copy {
- margin-top: 5px;
- margin-left: 30px
- }
- </style>
-
- <div class="wrapper">
- <div class="layui-card">
- <div class="layui-card-body">
- <div class="layui-card-body">
- <div class="layui-collapse like-layui-collapse" lay-accordion="" style="border:1px dashed #c4c4c4">
- <div class="layui-colla-item">
- <h2 class="layui-colla-title like-layui-colla-title" style="background-color: #fff">操作提示</h2>
- <div class="layui-colla-content layui-show">
- <p>*APP相关设置,包括登录设置,下载链接设置</p>
- </div>
- </div>
- </div>
- </div>
- <div class="layui-form" lay-filter="">
- <div class="layui-form-item">
- <label class="layui-form-label" style="white-space: nowrap">苹果APP下载链接:</label>
- <div class="layui-input-inline" style="width: 300px;left: 30px">
- <input type="text" name="line_ios" lay-verType="tips" autocomplete="off"
- value="{$config.line_ios}" class="layui-input">
- <label class="layui-form-mid layui-word-aux"
- style="white-space: nowrap">苹果APP下载链接,可以配置应用宝下载链接</label>
- </div>
- <button type="button" class="layui-btn layui-btn-primary layui-btn-sm copy">复制</button>
- </div>
-
- <div class="layui-form-item">
- <label class="layui-form-label" style="white-space: nowrap">安卓APP下载链接:</label>
- <div class="layui-input-inline" style="width: 300px;left: 30px">
- <input type="text" name="line_android" lay-verType="tips" autocomplete="off"
- value="{$config.line_android}" class="layui-input">
- <label class="layui-form-mid layui-word-aux"
- style="white-space: nowrap">安卓APP下载链接,可以配置应用宝下载链接</label>
- </div>
- <button type="button" class="layui-btn layui-btn-primary layui-btn-sm copy">复制</button>
- </div>
-
- <div class="layui-form-item">
- <label class="layui-form-label" style="white-space: nowrap">APP下载引导文案:</label>
- <div class="layui-input-inline" style="width: 300px;left: 30px">
- <input type="text" name="download_doc" lay-verType="tips" autocomplete="off"
- value="{$config.download_doc}" class="layui-input">
- <label class="layui-form-mid layui-word-aux" style="white-space: nowrap">APP下载引导文案,默认文案:欢迎点击下载APP~</label>
- </div>
- <button type="button" class="layui-btn layui-btn-primary layui-btn-sm copy">复制</button>
- </div>
-
- <div class="layui-form-item">
- <label class="layui-form-label" style="white-space: nowrap;left: 45px">弹出协议:</label>
- <div class="layui-input-block" style="left: 30px">
- <input type="checkbox" name="agreement" lay-skin="switch" lay-text="是|否" {if
- condition="$config.agreement eq 1" }checked{/if}>
-
- </div>
- <label class="layui-form-mid layui-word-aux"
- style="white-space: nowrap;left: 30px">APP启动后强制弹窗同意隐私协议</label>
- </div>
-
- <div class="layui-form-item">
- <label class="layui-form-label" style="white-space: nowrap;left:30px">开启微信登录:</label>
- <div class="layui-input-block" style="left: 30px">
- <input type="checkbox" name="wechat_login" lay-skin="switch" lay-text="是|否" {if
- condition="$config.wechat_login eq 1" }checked{/if}>
- </div>
- <label class="layui-form-mid layui-word-aux" style="white-space: nowrap;left: 30px">选择开启,则表示APP允许微信授权登录</label>
- </div>
-
- <div class="layui-form-item">
- <div class="layui-input-block" style="left: 30px">
- <button class="layui-btn {$view_theme_color}" lay-submit lay-filter="addSubmit">确认</button>
- </div>
- </div>
- </div>
-
- </div>
- </div>
- </div>
-
- <script>
- layui.use(['table', 'form'], function () {
- var $ = layui.$
- , form = layui.form;
-
- form.on('submit(addSubmit)', function (data) {
- like.ajax({
- url: '{:url("setting.Basic/setApp")}'
- , data: data.field
- , type: 'post'
- , success: function (res) {
- if (res.code == 1) {
- layer.msg(res.msg, {
- offset: '15px'
- , icon: 1
- , time: 1500
- }, function () {
- location.href = location.href;
- });
- }
- }
- });
- });
-
- //复制
- $(document).on('click', '.copy', function () {
- var copyText = $(this).prev().children();
- copyText.select();
- document.execCommand("Copy");
- });
-
- });
-
- </script>
|