dggzichahu/runtime/temp/a7ee199946fbc200596fd868e23...

138 lines
7.1 KiB
PHP
Executable File
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php /*a:2:{s:60:"E:\www\hcysshop\server\application\admin\view\basic\app.html";i:1628618358;s:58:"E:\www\hcysshop\server\application\admin\view\layout1.html";i:1628618358;}*/ ?>
<!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/plug/layui-admin/dist/layuiadmin/layui/css/layui.css?v=<?php echo htmlentities($front_version); ?>" media="all">
<link rel="stylesheet" href="/static/plug/layui-admin/dist/layuiadmin/style/admin.css?v=<?php echo htmlentities($front_version); ?>" media="all">
<link rel="stylesheet" href="/static/plug/layui-admin/dist/layuiadmin/style/like.css?v=<?php echo htmlentities($front_version); ?>" media="all">
</head>
<body>
<?php echo $js_code; ?>
<script src="/static/plug/layui-admin/dist/layuiadmin/layui/layui.js?v=<?php echo htmlentities($front_version); ?>"></script>
<script src="/static/common/js/function.js?v=<?php echo htmlentities($front_version); ?>"></script>
<script src="/static/common/js/Time.js?v=<?php echo htmlentities($front_version); ?>"></script>
<style>
.copy{
margin-top: 5px;
margin-left:30px
}
</style>
<div class="layui-col-md12">
<div class="layui-fluid">
<div class="layui-card">
<div class="layui-card-body" >
<div class="layui-form" lay-filter="">
<div class="layui-form-item div-flex" style="margin-top: 20px">
<fieldset class="layui-elem-field layui-field-title" style="margin-top: 50px;">
<legend>APP设置</legend>
</fieldset>
</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_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="setapp">确认</button>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<script>
layui.config({
version:"<?php echo htmlentities($front_version); ?>",
base: '/static/plug/layui-admin/dist/layuiadmin/' //静态资源所在路径
}).extend({
index: 'lib/index' //主入口模块
}).use(['index','table','like'], function(){
var $ = layui.$
,form = layui.form
,like = layui.like;
form.on('submit(setapp)',function (data) {
like.ajax({
url: '<?php echo url("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>