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.
119 lines
4.8 KiB
119 lines
4.8 KiB
<?php /*a:2:{s:57:"E:\waibao\ahbcqz\server\app\admin\view\kefu\kefu\add.html";i:1679478874;s:51:"E:\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>
|
|
.input-inline-width {
|
|
width: 250px;
|
|
}
|
|
</style>
|
|
|
|
<div class="layui-card layui-form">
|
|
<div class="layui-card-body">
|
|
|
|
<div class="layui-form-item">
|
|
<label class="layui-form-label">管理员:</label>
|
|
<div class="layui-inline">
|
|
<button class="layui-btn layui-btn-sm layui-bg-blue" id="show-admin">选择管理员</button>
|
|
</div>
|
|
<div class="layui-inline">
|
|
<span id="admin_selected"></span>
|
|
</div>
|
|
<input type="hidden" name="admin_id" id="admin_id">
|
|
</div>
|
|
|
|
<div class="layui-form-item">
|
|
<label class="layui-form-label">客服头像:</label>
|
|
<div class="layui-input-block">
|
|
<div class="like-upload-image" switch-tab="0" lay-verType="tips">
|
|
<div class="upload-image-elem"><a class="add-upload-image"> + 添加</a></div>
|
|
</div>
|
|
<div class="layui-form-mid layui-word-aux">建议尺寸:500*500像</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="layui-form-item">
|
|
<label for="nickname" class="layui-form-label">客服昵称:</label>
|
|
<div class="layui-input-inline input-inline-width">
|
|
<input type="text" id="nickname" name="nickname" lay-verify="required" autocomplete="off"
|
|
class="layui-input">
|
|
</div>
|
|
</div>
|
|
|
|
<div class="layui-form-item">
|
|
<label class="layui-form-label">排序:</label>
|
|
<div class="layui-input-inline input-inline-width">
|
|
<input type="number" name="sort" autocomplete="off" class="layui-input" value="1">
|
|
<label class="layui-form-mid layui-word-aux">排序值越小越靠前,默认值为1</label>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="layui-form-item">
|
|
<label class="layui-form-label">状态:</label>
|
|
<div class="layui-input-block">
|
|
<input type="checkbox" name="disable" lay-skin="switch" lay-text="开启|关闭" checked>
|
|
</div>
|
|
<label class="layui-form-mid layui-word-aux">客服账号状态,默认开启,关闭后禁止登录客服工作台</label>
|
|
</div>
|
|
|
|
<div class="layui-form-item layui-hide">
|
|
<input type="button" lay-submit lay-filter="addSubmit" id="addSubmit" value="确认">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<script>
|
|
layui.config({
|
|
version: "<?php echo htmlentities($front_version); ?>",
|
|
base: '/static/lib/' //静态资源所在路径
|
|
}).use(['form'], function () {
|
|
var form = layui.form;
|
|
|
|
|
|
$('#show-admin').click(function () {
|
|
layer.open({
|
|
type: 2
|
|
, title: "选择管理员"
|
|
, content: "<?php echo url('kefu.kefu/adminLists'); ?>"
|
|
, area: ["90%", "90%"]
|
|
, btn: ["确定", "取消"]
|
|
, yes: function (index, layero) {
|
|
var iframeWindow = window["layui-layer-iframe" + index];
|
|
let admin_selected = iframeWindow.admin_selected();
|
|
$('#admin_selected').html(admin_selected.name + '(' + admin_selected.account + ')');
|
|
$('#admin_id').val(admin_selected.id);
|
|
layer.close(index);
|
|
}
|
|
});
|
|
return false;
|
|
});
|
|
|
|
like.delUpload();
|
|
$(document).on("click", ".add-upload-image", function () {
|
|
like.imageUpload({
|
|
limit: 1,
|
|
field: "avatar",
|
|
that: $(this)
|
|
});
|
|
});
|
|
});
|
|
</script>
|
|
</body>
|
|
</html>
|