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.
109 lines
4.6 KiB
109 lines
4.6 KiB
<?php /*a:2:{s:62:"D:\waibao\ahbcqz\server\app\admin\view\setting\map\config.html";i:1679478874;s:51:"D:\waibao\ahbcqz\server\app\admin\view\layout2.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 style="background-color: #FFFFFF;">
|
|
<?php echo $js_code; ?>
|
|
<script src="/static/admin/js/jquery.min.js"></script>
|
|
<script src="/static/admin/js/function.js"></script>
|
|
|
|
<style>
|
|
.layui-form-label {
|
|
width: 120px
|
|
}
|
|
#key-inline {
|
|
width: 350px;
|
|
}
|
|
</style>
|
|
<div class="wrapper">
|
|
<div class="layui-card">
|
|
<div class="layui-card-body">
|
|
<div class="layui-collapse like-layui-collapse" style="border:1px dashed #c4c4c4; margin-bottom: 30px;">
|
|
<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">
|
|
*设置地图相关配置。
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="layui-card-body" pad15>
|
|
<div class="layui-form" lay-filter="">
|
|
<div class="layui-form-item">
|
|
<label class="layui-form-label">腾讯地图key:</label>
|
|
<div class="layui-input-inline" id="key-inline">
|
|
<input type="text" name="tx_map_key" value="<?php echo htmlentities((isset($config['tx_map_key']) && ($config['tx_map_key'] !== '')?$config['tx_map_key']: '')); ?>" lay-verify="required" lay-verType="tips" class="layui-input">
|
|
</div>
|
|
</div>
|
|
<div class="layui-form-item">
|
|
<label class="layui-form-label">附近店铺</label>
|
|
<div class="layui-input-block">
|
|
<input type="radio" name="is_open_nearby" value="0" title="关闭" <?php if($config['is_open_nearby'] == 0): ?>checked<?php endif; ?>>
|
|
<input type="radio" name="is_open_nearby" value="1" title="开启" <?php if($config['is_open_nearby'] == 1): ?>checked<?php endif; ?>>
|
|
</div>
|
|
</div>
|
|
<div class="layui-form-item">
|
|
<label class="layui-form-label"></label>
|
|
<div class="layui-input-block layui-word-aux">
|
|
关闭则表示商城首页城市定位不显示及附近店铺板块不显示 <a href="javascript:;" id="img_show">查看效果 <img id="img" style="position: absolute;max-width: 500px;display: none;" src="/static/admin/images/nearby_shops.png"></a>
|
|
</div>
|
|
</div>
|
|
<div class="layui-form-item">
|
|
<div class="layui-input-block">
|
|
<button class="layui-btn <?php echo htmlentities($view_theme_color); ?>" lay-submit lay-filter="setMap">确定</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<script>
|
|
|
|
layui.use(['table'], function () {
|
|
var $ = layui.$
|
|
, form = layui.form;
|
|
|
|
form.on('submit(setMap)', function (data) {
|
|
like.ajax({
|
|
url: '<?php echo url(); ?>'
|
|
, data: data.field
|
|
, type: 'post'
|
|
, success: function (res) {
|
|
if (res.code == 1) {
|
|
layui.layer.msg(res.msg, {
|
|
offset: '15px'
|
|
, icon: 1
|
|
, time: 1000
|
|
}, function () {
|
|
location.href = location.href;
|
|
});
|
|
}
|
|
}
|
|
});
|
|
});
|
|
});
|
|
|
|
|
|
$('#img_show').hover(function() {
|
|
$("#img").show();
|
|
}, function() {
|
|
$("#img").hide();
|
|
});
|
|
|
|
</script>
|
|
</body>
|
|
</html>
|