mirror of
https://gitee.com/zhc02/timely_service.git
synced 2025-06-17 02:49:58 +08:00
增加部署地址
This commit is contained in:
parent
310da6ad5d
commit
73079a18dd
12
application/admin/controller/Arrange.php
Executable file
12
application/admin/controller/Arrange.php
Executable file
@ -0,0 +1,12 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace app\admin\controller;
|
||||
|
||||
|
||||
class Arrange extends Base
|
||||
{
|
||||
public function index(){
|
||||
return $this->fetch();
|
||||
}
|
||||
}
|
118
application/admin/view/arrange/index.html
Executable file
118
application/admin/view/arrange/index.html
Executable file
@ -0,0 +1,118 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>layui</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, maximum-scale=1">
|
||||
<link rel="stylesheet" href="/static/lib/layui-v2.5.4/css/layui.css" media="all">
|
||||
<link rel="stylesheet" href="/static/css/public.css" media="all">
|
||||
</head>
|
||||
<style>
|
||||
#currentTableId + .layui-table-view .layui-table-body tbody > tr > td {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
#currentTableId + .layui-table-view .layui-table-body tbody > tr > td > .layui-table-cell {
|
||||
height: 60px;
|
||||
line-height: 60px;
|
||||
}
|
||||
|
||||
.tdImg {
|
||||
width: 50px;
|
||||
height: 50px;
|
||||
max-width: none;
|
||||
cursor: zoom-in;
|
||||
}
|
||||
|
||||
.layui-table-view {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
</style>
|
||||
<body>
|
||||
<div class="layuimini-container">
|
||||
<div class="layuimini-main">
|
||||
|
||||
<fieldset class="layui-elem-field layuimini-search">
|
||||
<legend>连接中心</legend>
|
||||
</fieldset>
|
||||
<!-- {$_SERVER['SERVER_NAME']}-->
|
||||
<div class="layui-tab">
|
||||
<ul class="layui-tab-title">
|
||||
<li class="layui-this">客服地址</li>
|
||||
<li>直连地址</li>
|
||||
|
||||
</ul>
|
||||
<div class="layui-tab-content">
|
||||
<div class="layui-tab-item layui-show">
|
||||
<pre class="layui-code " style="margin-top: 50px;height: 50px;line-height: 50px;"><p>http://{$_SERVER['SERVER_NAME']}/index/kefu/login</p><a class="layui-btn layui-btn-normal" style="float: left" href="http://{$_SERVER['SERVER_NAME']}/index/kefu/login" target="_bank">登陆</a></pre>
|
||||
</div>
|
||||
<div class="layui-tab-item">内容2</div>
|
||||
<div class="layui-tab-item">内容3</div>
|
||||
<div class="layui-tab-item">内容4</div>
|
||||
<div class="layui-tab-item">内容5</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<script src="/static/lib/layui-v2.5.4/layui.js" charset="utf-8"></script>
|
||||
<script>
|
||||
layui.use(['form', 'table','layer','element'], function () {
|
||||
var $ = layui.jquery,
|
||||
form = layui.form,
|
||||
table = layui.table
|
||||
,element = layui.element;
|
||||
var layer = layui.layer;
|
||||
|
||||
// 点击图片放大
|
||||
$(document).off('click.tbImg').on('click.tbImg', '[tb-img]', function () {
|
||||
layer.photos({photos: {data: [{src: $(this).attr('src')}]}, shade: .1, closeBtn: true});
|
||||
});
|
||||
table.render({
|
||||
elem: '#currentTableId',
|
||||
url: '/chatLogList',
|
||||
limit:20,
|
||||
limits:[20,30,50],
|
||||
cellMinWidth: 100,
|
||||
response: {
|
||||
statusCode: 1000 //规定成功的状态码,默认:0
|
||||
},
|
||||
cols: [[
|
||||
{field: 'log_id', width: 80, title: 'ID', align: 'center'},
|
||||
{field: 'from_name', width: 200, title: '发送人'},
|
||||
{field: 'message', title: '消息',align: 'center'},
|
||||
{field: 'to_name', title: '接收人',align: 'center', width: 200,},
|
||||
{field: 'create_time', title: '创建时间', width: 200,align: 'center'},
|
||||
|
||||
]],
|
||||
page: true
|
||||
});
|
||||
|
||||
// 监听搜索操作
|
||||
form.on('submit(data-search-btn)', function (data) {
|
||||
//执行搜索重载
|
||||
table.reload('currentTableId', {
|
||||
page: {
|
||||
curr: 1
|
||||
}
|
||||
, where: data.field
|
||||
}, 'data');
|
||||
|
||||
return false;
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
</script>
|
||||
<script>
|
||||
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
2
application/admin/view/index/home.html
Normal file → Executable file
2
application/admin/view/index/home.html
Normal file → Executable file
@ -160,7 +160,7 @@
|
||||
<td>演示地址</td>
|
||||
<td>
|
||||
单商户版(开源):<a href="http://www.cnavd.com" target="_blank">点击查看</a><br>
|
||||
多商户版:<a href="http://www.chat.cnavd.com/" target="_blank">点击查看</a>
|
||||
多商户版:<a href="https://www.timelyim.com/" target="_blank">点击查看</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
2
route/route.php
Normal file → Executable file
2
route/route.php
Normal file → Executable file
@ -25,6 +25,8 @@ Route::rule('resetPassword', 'admin/Kefu/resetPassword');
|
||||
Route::rule('visitorList', 'admin/Visitor/visitorList');
|
||||
Route::rule('serviceList', 'admin/Visitor/serviceList');
|
||||
Route::rule('chatLogList', 'admin/Visitor/chatLogList');
|
||||
|
||||
Route::rule('arrange', 'admin/Arrange/index');
|
||||
return [
|
||||
|
||||
];
|
||||
|
Loading…
x
Reference in New Issue
Block a user