安徽博创起重服务端程序
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.
 
 
 
 
 

140 lines
6.9 KiB

<?php /*a:2:{s:61:"D:\waibao\ahbcqz\server\app\admin\view\setting\basic\app.html";i:1679478874;s:51:"D:\waibao\ahbcqz\server\app\admin\view\layout1.html";i:1679478874;}*/ ?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title><?php echo url(); ?></title>
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
<link rel="stylesheet" href="/static/lib/layui/css/layui.css?v=<?php echo htmlentities($front_version); ?>">
<link rel="stylesheet" href="/static/admin/css/app.css?v=<?php echo htmlentities($front_version); ?>">
<link rel="stylesheet" href="/static/admin/css/like.css?v=<?php echo htmlentities($front_version); ?>">
<script src="/static/lib/layui/layui.js?v=<?php echo htmlentities($front_version); ?>"></script>
<script src="/static/admin/js/app.js"></script>
</head>
<body>
<?php echo $js_code; ?>
<script src="/static/admin/js/jquery.min.js"></script>
<script src="/static/admin/js/function.js"></script>
<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="<?php echo htmlentities($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="<?php echo htmlentities($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="<?php echo htmlentities($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="是|否" <?php if($config['agreement'] == 1): ?>checked<?php endif; ?>>
</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="是|否" <?php if($config['wechat_login'] == 1): ?>checked<?php endif; ?>>
</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 <?php echo htmlentities($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: '<?php echo 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>
</body>
</html>